From patchwork Thu Apr 20 11:00:09 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Boris Pismenny X-Patchwork-Id: 9690087 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 5668D60383 for ; Thu, 20 Apr 2017 11:00:30 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 31F8828464 for ; Thu, 20 Apr 2017 11:00:30 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 26ADE28471; Thu, 20 Apr 2017 11:00:30 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9358C28464 for ; Thu, 20 Apr 2017 11:00:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S944240AbdDTLA1 (ORCPT ); Thu, 20 Apr 2017 07:00:27 -0400 Received: from mail-il-dmz.mellanox.com ([193.47.165.129]:36223 "EHLO mellanox.co.il" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1764492AbdDTLAY (ORCPT ); Thu, 20 Apr 2017 07:00:24 -0400 Received: from Internal Mail-Server by MTLPINE1 (envelope-from borisp@mellanox.com) with ESMTPS (AES256-SHA encrypted); 20 Apr 2017 14:00:14 +0300 Received: from gen-l-vrt-098.mtl.labs.mlnx (gen-l-vrt-098.mtl.labs.mlnx [10.137.170.1]) by labmailer.mlnx (8.13.8/8.13.8) with ESMTP id v3KB0EG1022280; Thu, 20 Apr 2017 14:00:14 +0300 From: Boris Pismenny To: dledford@redhat.com, sean.hefty@intel.com, hal.rosenstock@gmail.com, borisp@mellanox.com Cc: linux-rdma@vger.kernel.org, leonro@mellanox.com, ronye@mellanox.com, matanb@mellanox.com, aviadye@mellanox.com, alexr@mellanox.com Subject: [RFC 1/2] Introduce egress IB flow steering flag Date: Thu, 20 Apr 2017 14:00:09 +0300 Message-Id: <8539540c4130ea91bbd128f2ec2845082d6000f8.1492685328.git.borisp@mellanox.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: References: In-Reply-To: References: Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: borisp This commit introduces egress flow steering. Egress flow steering is useful for specifying actions that might be applied by hardware to outgoing flows on a specific QP. Signed-off-by: borisp --- include/rdma/ib_verbs.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/rdma/ib_verbs.h b/include/rdma/ib_verbs.h index 99e4423..6c1c867 100644 --- a/include/rdma/ib_verbs.h +++ b/include/rdma/ib_verbs.h @@ -1679,7 +1679,8 @@ enum ib_flow_domain { enum ib_flow_flags { IB_FLOW_ATTR_FLAGS_DONT_TRAP = 1UL << 1, /* Continue match, no steal */ - IB_FLOW_ATTR_FLAGS_RESERVED = 1UL << 2 /* Must be last */ + IB_FLOW_ATTR_FLAGS_EGRESS = 1UL << 2, /* Egress steering rule */ + IB_FLOW_ATTR_FLAGS_RESERVED = 1UL << 3 /* Must be last */ }; struct ib_flow_eth_filter {