From mboxrd@z Thu Jan 1 00:00:00 1970 From: Slava Ovsiienko Subject: [PATCH 0/4] net/mlx5: prepare to add E-switch rule flags check Date: Mon, 12 Nov 2018 20:01:39 +0000 Message-ID: <1542052877-41512-1-git-send-email-viacheslavo@mellanox.com> References: <1541225876-8817-2-git-send-email-viacheslavo@mellanox.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Cc: "dev@dpdk.org" , Slava Ovsiienko To: Shahaf Shuler , Yongseok Koh Return-path: Received: from EUR04-VI1-obe.outbound.protection.outlook.com (mail-eopbgr80044.outbound.protection.outlook.com [40.107.8.44]) by dpdk.org (Postfix) with ESMTP id 5891F3256 for ; Mon, 12 Nov 2018 21:01:40 +0100 (CET) In-Reply-To: <1541225876-8817-2-git-send-email-viacheslavo@mellanox.com> Content-Language: en-US List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" The tc flower filter rules are used to control E-switch from the application side. In order to gain garanteed rule hardware offload the skip_sw flag should be specified while applying the rule. Some tc rules is rejected by kernel if skip_sw flag is set by design. Currently this regards VXLAN tunneling rules only, which are applied to special VXLAN virtual devices. Albeit these rules should be applied with no skip_sw flag set the kernel tries to perform hardware offload. If kernel succeeded the in_hw flag is set in rule properties and application may check this flag to get know whether the applied rule is actually hardware offloaded. Signed-off-by: Viacheslav Ovsiienko Viacheslav Ovsiienko (4): net/mlx5: prepare Netlink communication routine to fix net/mlx5: fix Netlink communication routine net/mlx5: prepare to add E-switch rule flags check net/mlx5: add E-switch rule hardware offload flag check drivers/net/mlx5/mlx5_flow.h | 1 + drivers/net/mlx5/mlx5_flow_tcf.c | 316 +++++++++++++++++++++++++++++------= ---- 2 files changed, 236 insertions(+), 81 deletions(-) --=20 1.8.3.1