From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.7 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id BF210C31E49 for ; Wed, 19 Jun 2019 06:41:48 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 933782084A for ; Wed, 19 Jun 2019 06:41:48 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="aUXRvQ95" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731029AbfFSGlr (ORCPT ); Wed, 19 Jun 2019 02:41:47 -0400 Received: from out4-smtp.messagingengine.com ([66.111.4.28]:50077 "EHLO out4-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725892AbfFSGlr (ORCPT ); Wed, 19 Jun 2019 02:41:47 -0400 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id B73B720CA5; Wed, 19 Jun 2019 02:41:45 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Wed, 19 Jun 2019 02:41:45 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :message-id:mime-version:subject:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=ERGIrIcl3trOjgz7n RJynhXfi6+CTGGMYyV7l0ADM2w=; b=aUXRvQ95q+Wzia+H/qFx+Mle6EKWr8NVU BeVCvLiHIMIRjFyLH4IY+qEYVsG4psqwAfFeu7yDyQyA0hgiDG2vyHzZGT9aI1/H zRWaMPLiTlKPqDPczvjCeI3wXUyeniTQ96qdW+tjqKz3HGIPSvrGwWm8Whcmg8wh zM4Mc72hkGqg6coxcSEk+aibSvZpd7Y5J1amjBLSY9wKn412LqA2i7ZRDewE9Pee GkU7Xxdh6jgOatIR5G1fY2BYFnS8ZvT8WIh/eNj9fgrLLBo27PuA4c+AvIbnw2db u/CPhZSdiZ+zLUBTLzVwM+iIYpMJuQp8D2IZj9B+1bRqp4ZJb1izw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduvddrtddugdduudduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvffufffkofgggfestdekredtre dttdenucfhrhhomhepkfguohcuufgthhhimhhmvghluceoihguohhstghhsehiughoshgt hhdrohhrgheqnecukfhppeduleefrdegjedrudeihedrvdehudenucfrrghrrghmpehmrg hilhhfrhhomhepihguohhstghhsehiughoshgthhdrohhrghenucevlhhushhtvghrufhi iigvpedt X-ME-Proxy: Received: from splinter.mtl.com (unknown [193.47.165.251]) by mail.messagingengine.com (Postfix) with ESMTPA id 5D36A8005A; Wed, 19 Jun 2019 02:41:41 -0400 (EDT) From: Ido Schimmel To: netdev@vger.kernel.org Cc: davem@davemloft.net, jiri@mellanox.com, jhs@mojatatu.com, xiyou.wangcong@gmail.com, pablo@netfilter.org, ecree@solarflare.com, jakub.kicinski@netronome.com, Ido Schimmel Subject: [PATCH net-next 0/8] mlxsw: Implement flower ingress device matching offload Date: Wed, 19 Jun 2019 09:41:01 +0300 Message-Id: <20190619064109.849-1-idosch@idosch.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org From: Ido Schimmel Jiri says: In case of using shared block, user might find it handy to be able to insert filters to match on particular ingress device. This patchset exposes the ingress ifindex through flow_dissector and flow_offload so mlxsw can use it to push down to HW. See the selftests for examples of usage. Jiri Pirko (8): flow_dissector: add support for ingress ifindex dissection net: sched: cls_flower: use flow_dissector for ingress ifindex net: flow_offload: implement support for meta key mlxsw: spectrum_acl: Write RX_ACL_SYSTEM_PORT acl element correctly mlxsw: spectrum_acl: Avoid size check for RX_ACL_SYSTEM_PORT element mlxsw: spectrum_acl: Fix SRC_SYS_PORT element size mlxsw: spectrum_flower: Implement support for ingress device matching selftests: tc: add ingress device matching support .../mellanox/mlxsw/core_acl_flex_keys.c | 18 +- .../mellanox/mlxsw/core_acl_flex_keys.h | 22 ++- .../net/ethernet/mellanox/mlxsw/spectrum.h | 9 + .../ethernet/mellanox/mlxsw/spectrum_acl.c | 9 +- .../mellanox/mlxsw/spectrum_acl_flex_keys.c | 10 +- .../ethernet/mellanox/mlxsw/spectrum_flower.c | 50 ++++- include/linux/skbuff.h | 4 + include/net/flow_dissector.h | 9 + include/net/flow_offload.h | 6 + net/core/flow_dissector.c | 16 ++ net/core/flow_offload.c | 7 + net/sched/cls_flower.c | 14 +- .../selftests/net/forwarding/tc_flower.sh | 26 ++- .../net/forwarding/tc_flower_router.sh | 172 ++++++++++++++++++ .../selftests/net/forwarding/tc_shblocks.sh | 29 ++- 15 files changed, 367 insertions(+), 34 deletions(-) create mode 100755 tools/testing/selftests/net/forwarding/tc_flower_router.sh -- 2.20.1