From patchwork Tue Nov 19 22:05:51 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pablo Neira Ayuso X-Patchwork-Id: 1197644 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=netfilter-devel-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=netfilter.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 47HfzZ0YqRz9sPf for ; Wed, 20 Nov 2019 09:06:17 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727336AbfKSWGF (ORCPT ); Tue, 19 Nov 2019 17:06:05 -0500 Received: from correo.us.es ([193.147.175.20]:35128 "EHLO mail.us.es" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727038AbfKSWGF (ORCPT ); Tue, 19 Nov 2019 17:06:05 -0500 Received: from antivirus1-rhel7.int (unknown [192.168.2.11]) by mail.us.es (Postfix) with ESMTP id 40D9D8C3C6B for ; Tue, 19 Nov 2019 23:06:01 +0100 (CET) Received: from antivirus1-rhel7.int (localhost [127.0.0.1]) by antivirus1-rhel7.int (Postfix) with ESMTP id 326A3D2B1F for ; Tue, 19 Nov 2019 23:06:01 +0100 (CET) Received: by antivirus1-rhel7.int (Postfix, from userid 99) id 284CEDA3A9; Tue, 19 Nov 2019 23:06:01 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on antivirus1-rhel7.int X-Spam-Level: X-Spam-Status: No, score=-108.2 required=7.5 tests=ALL_TRUSTED,BAYES_50, SMTPAUTH_US2,USER_IN_WHITELIST autolearn=disabled version=3.4.1 Received: from antivirus1-rhel7.int (localhost [127.0.0.1]) by antivirus1-rhel7.int (Postfix) with ESMTP id 41B2EB8007; Tue, 19 Nov 2019 23:05:59 +0100 (CET) Received: from 192.168.1.97 (192.168.1.97) by antivirus1-rhel7.int (F-Secure/fsigk_smtp/550/antivirus1-rhel7.int); Tue, 19 Nov 2019 23:05:59 +0100 (CET) X-Virus-Status: clean(F-Secure/fsigk_smtp/550/antivirus1-rhel7.int) Received: from salvia.here (sys.soleta.eu [212.170.55.40]) (Authenticated sender: pneira@us.es) by entrada.int (Postfix) with ESMTPA id 0B11942EE38E; Tue, 19 Nov 2019 23:05:59 +0100 (CET) X-SMTPAUTHUS: auth mail.us.es From: Pablo Neira Ayuso To: netfilter-devel@vger.kernel.org Cc: davem@davemloft.net, netdev@vger.kernel.org Subject: [PATCH net-next 0/4] nf_tables_offload: vlan matching support Date: Tue, 19 Nov 2019 23:05:51 +0100 Message-Id: <20191119220555.17391-1-pablo@netfilter.org> X-Mailer: git-send-email 2.11.0 X-Virus-Scanned: ClamAV using ClamSMTP Sender: netfilter-devel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netfilter-devel@vger.kernel.org Hi David, The following patchset contains Netfilter support for vlan matching offloads: 1) Constify nft_reg_load() as a preparation patch. 2) Restrict rule matching to ingress interface type ARPHRD_ETHER. 3) Add new vlan_tci field to flow_dissector_key_vlan structure, to allow to set up vlan_id, vlan_dei and vlan_priority in one go. 4) C-VLAN matching support. Please, directly apply to net-next if you are OK with this batch. Thank you. Pablo Neira Ayuso (4): netfilter: nf_tables: constify nft_reg_load{8,16,64}() netfilter: nf_tables_offload: allow ethernet interface type only netfilter: nft_payload: add VLAN offload support netfilter: nft_payload: add C-VLAN offload support include/net/flow_dissector.h | 11 ++++++++--- include/net/netfilter/nf_tables.h | 6 +++--- net/netfilter/nft_cmp.c | 6 ++++++ net/netfilter/nft_meta.c | 4 ++++ net/netfilter/nft_payload.c | 38 ++++++++++++++++++++++++++++++++++++++ 5 files changed, 59 insertions(+), 6 deletions(-)