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=-3.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=no 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 46761C7618B for ; Sat, 27 Jul 2019 17:35:21 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 1FA432083B for ; Sat, 27 Jul 2019 17:35:21 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="ws3Her+F" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387962AbfG0Rdw (ORCPT ); Sat, 27 Jul 2019 13:33:52 -0400 Received: from out4-smtp.messagingengine.com ([66.111.4.28]:53753 "EHLO out4-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725263AbfG0Rdw (ORCPT ); Sat, 27 Jul 2019 13:33:52 -0400 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id C679F210A8; Sat, 27 Jul 2019 13:33:48 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Sat, 27 Jul 2019 13:33:48 -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=MpLIXhWJeDFRjA+th T8fBzeCifmJaGOKSnJA/6Fa/5c=; b=ws3Her+Fz05ZxKdkwEwM1QqjAW5zHCGwH nba8w8UcfUpBDIMI9MQJ2NXlzXWEBae1ZqOSaG1GXKGSpJFImuVnJae1Nc/2QH9g QdmQICED5wcHgzA9dRpuGfSgdh65jWdTL6ZAmoj0E6ms7xwluUPW3Epp675PuXHW Cy0hEf7Nek+9Wct3DXGxAvnQYc5d5HsNbC8zYmjCTyD5fqW9GE8iX8/t5Sd6rpA2 1o4XyrOJcpwx3mfn+0On2gVUy3ZzrgU/E4sznUKAOYSB1L5ecbipsgMI4tNF0ukF /S/mp7mmcCE/Mr/Bf/fur41SWP2QOZ1PZHo2nXjs5HdtF8QvGjGTg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduvddrkeeigdduudejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvffufffkofgggfestdekredtre dttdenucfhrhhomhepkfguohcuufgthhhimhhmvghluceoihguohhstghhsehiughoshgt hhdrohhrgheqnecukfhppeejjedrudefkedrvdegledrvddtleenucfrrghrrghmpehmrg hilhhfrhhomhepihguohhstghhsehiughoshgthhdrohhrghenucevlhhushhtvghrufhi iigvpedt X-ME-Proxy: Received: from splinter.mtl.com (unknown [77.138.249.209]) by mail.messagingengine.com (Postfix) with ESMTPA id C3622380074; Sat, 27 Jul 2019 13:33:46 -0400 (EDT) From: Ido Schimmel To: netdev@vger.kernel.org Cc: davem@davemloft.net, jiri@mellanox.com, mlxsw@mellanox.com, Ido Schimmel Subject: [PATCH net-next 0/3] mlxsw: spectrum_acl: Forbid unsupported filters Date: Sat, 27 Jul 2019 20:32:54 +0300 Message-Id: <20190727173257.6848-1-idosch@idosch.org> X-Mailer: git-send-email 2.21.0 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 Patches #1-#2 make mlxsw reject unsupported egress filters. These include filters that match on VLAN and filters associated with a redirect action. Patch #1 rejects such filters when they are configured on egress and patch #2 rejects such filters when they are configured in a shared block that user tries to bind to egress. Patch #3 forbids matching on reserved TCP flags as this is not supported by the current keys that mlxsw uses. Jiri Pirko (3): mlxsw: spectrum_flower: Forbid to offload mirred redirect on egress mlxsw: spectrum_acl: Track rules that forbid egress block bind mlxsw: spectrum_flower: Forbid to offload match on reserved TCP flags bits .../net/ethernet/mellanox/mlxsw/spectrum.c | 2 +- .../net/ethernet/mellanox/mlxsw/spectrum.h | 7 ++++-- .../ethernet/mellanox/mlxsw/spectrum_acl.c | 17 ++++++++++---- .../ethernet/mellanox/mlxsw/spectrum_flower.c | 22 +++++++++++++++++++ 4 files changed, 41 insertions(+), 7 deletions(-) -- 2.21.0