Message ID | 20210816135433.1922261-2-elibr@nvidia.com |
---|---|
State | Deferred |
Headers | show
Return-Path: <ovs-dev-bounces@openvswitch.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=openvswitch.org (client-ip=140.211.166.137; helo=smtp4.osuosl.org; envelope-from=ovs-dev-bounces@openvswitch.org; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=Nvidia.com header.i=@Nvidia.com header.a=rsa-sha256 header.s=selector2 header.b=qmL/63NJ; dkim-atps=neutral Received: from smtp4.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4GpG0g1hyYz9sWd for <incoming@patchwork.ozlabs.org>; Mon, 16 Aug 2021 23:56:19 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id 45C4040317; Mon, 16 Aug 2021 13:56:17 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id BJlnChDTS-Tr; Mon, 16 Aug 2021 13:56:12 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [IPv6:2605:bc80:3010:104::8cd3:938]) by smtp4.osuosl.org (Postfix) with ESMTPS id 8C7A84015A; Mon, 16 Aug 2021 13:56:09 +0000 (UTC) Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id A983BC0024; Mon, 16 Aug 2021 13:56:07 +0000 (UTC) X-Original-To: dev@openvswitch.org Delivered-To: ovs-dev@lists.linuxfoundation.org Received: from smtp2.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by lists.linuxfoundation.org (Postfix) with ESMTP id 443A0C0023 for <dev@openvswitch.org>; Mon, 16 Aug 2021 13:56:07 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id 50956402E7 for <dev@openvswitch.org>; Mon, 16 Aug 2021 13:55:04 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Authentication-Results: smtp2.osuosl.org (amavisd-new); dkim=pass (2048-bit key) header.d=nvidia.com Received: from smtp2.osuosl.org ([127.0.0.1]) by localhost (smtp2.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id vjfWCuqr5xl8 for <dev@openvswitch.org>; Mon, 16 Aug 2021 13:55:00 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.8.0 Received: from NAM11-BN8-obe.outbound.protection.outlook.com (mail-bn8nam11on2043.outbound.protection.outlook.com [40.107.236.43]) by smtp2.osuosl.org (Postfix) with ESMTPS id 5EE3340264 for <dev@openvswitch.org>; Mon, 16 Aug 2021 13:55:00 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=UCIcplIx3vIx0S/kVNk/R64SRJefTtNFQPpFTYnALcU4+u/KJcwRUfs0ZI/y3iBOeuvBfQrQLzZqYmFBgsWLwmgouDa2cqYo0g6qVn0YWukUXH1Mpiqk/j2Nn28fSNXsYVJ+TPUCOYHWXmOzHyAYusrn1XGTuUAisVn+Ksz7BYaideOy5j+1Nv0qC8+56HsjAjHUSddrgaO4ttA3waS610kiEgYz6R7nWj0ZMjIMrGXwbXc1cseTRSmz3JUCP77uzBgIxlRu7WFqon1c60CCum252oB8pg9Rn+uu1lVGY/TXr2+ur1h2B92ZmmaUF3ZLVll52T+xJUaHm8DA5Stwjw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=0YbTdWsHLj9kI/32JhD4kcen4fbaqdzbaq8Rh5i87b4=; b=Ic+oG2ygKJ1H0lMUs+UZXYAy/cU/TOpavrimfdmSowht9P0QyD6t30jJDxJ3moubBgsh3zk7fK/EOVeMszkHnrtVr6SMdUPzKYtURVEo8Fv4ZSxsT5k6Z3b7Zf+2wwF6wz/dkEqdBzq5cAP0Z23sBhlZsOJW0arvJ82QsB67qb/6uRyL3xnPY0BnSaENxdRS+ySn19hURBzKveXh6bi9C2B60gQVifxn2ltKh8yvVR5KvFEzQaOcnMdepO3HMG1SDK/tRwA0K963bB4O3s3ot8FSNzNIA7JxjRL7YxOMroHyYyYynsdA9CCbG2Y1h5MTrl7NPHwSGETwo7YLNmAyEg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.112.34) smtp.rcpttodomain=intel.com smtp.mailfrom=nvidia.com; dmarc=pass (p=quarantine sp=none pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=0YbTdWsHLj9kI/32JhD4kcen4fbaqdzbaq8Rh5i87b4=; b=qmL/63NJsq2WVOrC7by4t6aDNL718Ms+e2t0OuGdYLiA30eW1EOx53Bj4TASANeXwHltaoYPzQy+mkAt0NKLsXFgGAGmOuD2Fy2j4o4ii1HDFWvQY5OrLihVH/p0QNaxKCAcea6f/3OWyEOuJZodYjJuc3WNvfK0gNdAxulbqV6rngLoyc+lqLPa0WdYRP49aXeMLmvKRnUEr8n2MXBc/9vRPn/5mgI15hL0/oF6DM70t81XimJhIVRdsipyzo+mrsPAvnbehiAF0gFSVtlvWSeooudbWWnbBtcQKKkkbvGvRmmDkQRR3UoNcrmeZ4tRSIpdnV3ZyKUBYYn9+ZshGA== Received: from BN6PR17CA0016.namprd17.prod.outlook.com (2603:10b6:404:65::26) by SN6PR12MB2848.namprd12.prod.outlook.com (2603:10b6:805:77::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4415.15; Mon, 16 Aug 2021 13:54:57 +0000 Received: from BN8NAM11FT036.eop-nam11.prod.protection.outlook.com (2603:10b6:404:65:cafe::1b) by BN6PR17CA0016.outlook.office365.com (2603:10b6:404:65::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4415.14 via Frontend Transport; Mon, 16 Aug 2021 13:54:57 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.112.34) smtp.mailfrom=nvidia.com; intel.com; dkim=none (message not signed) header.d=none;intel.com; dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.112.34 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.112.34; helo=mail.nvidia.com; Received: from mail.nvidia.com (216.228.112.34) by BN8NAM11FT036.mail.protection.outlook.com (10.13.177.168) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.4415.14 via Frontend Transport; Mon, 16 Aug 2021 13:54:57 +0000 Received: from nvidia.com (172.20.187.5) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 16 Aug 2021 13:54:54 +0000 To: <dev@openvswitch.org>, Ilya Maximets <i.maximets@ovn.org> Date: Mon, 16 Aug 2021 16:54:33 +0300 Message-ID: <20210816135433.1922261-2-elibr@nvidia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210816135433.1922261-1-elibr@nvidia.com> References: <20210816135433.1922261-1-elibr@nvidia.com> MIME-Version: 1.0 X-Originating-IP: [172.20.187.5] X-ClientProxiedBy: HQMAIL101.nvidia.com (172.20.187.10) To HQMAIL107.nvidia.com (172.20.187.13) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: c003609d-de7c-466c-45d0-08d960bd6ed3 X-MS-TrafficTypeDiagnostic: SN6PR12MB2848: X-Microsoft-Antispam-PRVS: <SN6PR12MB28485AE5559DA2222C488D2FD8FD9@SN6PR12MB2848.namprd12.prod.outlook.com> X-MS-Exchange-Transport-Forked: True X-MS-Oob-TLC-OOBClassifiers: OLM:6108; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: xhGHoLLLf3smcqp2OI6SgaJjKLDQc9cwpqZOvvvPBJAwX0t5dZP56316kU1KeIppAIpzS8aGXeomRM/zxjb9moUQW76IMoh4pNVLlfWJ0fyyxKoNH69S0rTb9YzDK7USDf2W7Q2kpZVo0vg2TiZHgWGFKhm8muCZE6y/h6JpaTkVZ1v36gJSOwDvkHf/4wjMtJQX1nSIc765V2Zhm44iQLMsJ0RJv7uHh20RZJ+Bjb3Rjh1p3G2Ghk7F5JyI0/tBrniNa9e2UNZ8qam8/rBI+CDPEJiN+hIvd/Cv2SZtlX+IMfnz2ZrOIYro9HNd58/EeupbWg8Y0PC4iItfkyzsXU0CgAclV4+ggx7oK4LTsyLlULBrs9lnzR4hcWkz0wijQWOL75HP3pZe48RhPP8klG/6930FDm8gFECNvdApaXPtF5mwyO/LyLhDPJ3I/0A0I6KCUZDb2+V/A7KQ9HOjslwsM98ArWZgesIlr50p02hHs3EUmvLG2pAhm3/ZAwbgRB4c8phjTG1fsWZCocNOIgoR4BmV79UKmg/qm8ocwlwhbGR0flcfX9TBnacm+AVYuakGCUeaJ9JpLXPq34g2lFRI+5ih2w0OcFfBCCTGLIYjsDLLwoZVbgbnxq6ikB+qw78Tc4rgJyvnN44JvVBlMR7aZie3s3sCA7/XKJtL6CXKah46iIU1F4H9jNJ4OA4BlnEP7F1V9i2zwqNeX7DHUw== X-Forefront-Antispam-Report: CIP:216.228.112.34; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:schybrid03.nvidia.com; CAT:NONE; SFS:(4636009)(396003)(376002)(346002)(39860400002)(136003)(36840700001)(46966006)(7636003)(107886003)(7696005)(2616005)(55016002)(83380400001)(426003)(6666004)(356005)(36756003)(82740400003)(1076003)(8936002)(478600001)(4326008)(36860700001)(16526019)(70206006)(110136005)(70586007)(26005)(82310400003)(336012)(2906002)(5660300002)(186003)(8676002)(54906003)(86362001)(6286002)(316002)(47076005); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Aug 2021 13:54:57.2561 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: c003609d-de7c-466c-45d0-08d960bd6ed3 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[216.228.112.34]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: BN8NAM11FT036.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN6PR12MB2848 Cc: Eli Britstein <elibr@nvidia.com>, Majd Dibbiny <majd@nvidia.com> Subject: [ovs-dev] [PATCH V3 2/2] netdev-offload-dpdk: Fix ethernet type for VLANs X-BeenThere: ovs-dev@openvswitch.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: <ovs-dev.openvswitch.org> List-Unsubscribe: <https://mail.openvswitch.org/mailman/options/ovs-dev>, <mailto:ovs-dev-request@openvswitch.org?subject=unsubscribe> List-Archive: <http://mail.openvswitch.org/pipermail/ovs-dev/> List-Post: <mailto:ovs-dev@openvswitch.org> List-Help: <mailto:ovs-dev-request@openvswitch.org?subject=help> List-Subscribe: <https://mail.openvswitch.org/mailman/listinfo/ovs-dev>, <mailto:ovs-dev-request@openvswitch.org?subject=subscribe> From: Eli Britstein via dev <ovs-dev@openvswitch.org> Reply-To: Eli Britstein <elibr@nvidia.com> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ovs-dev-bounces@openvswitch.org Sender: "dev" <ovs-dev-bounces@openvswitch.org> |
Series |
[ovs-dev,V3,1/2] netdev-offload-dpdk: Use has_vlan match attribute
|
expand
|
Context | Check | Description |
---|---|---|
ovsrobot/apply-robot | success | apply and check: success |
ovsrobot/github-robot-_Build_and_Test | success | github build: passed |
diff --git a/lib/netdev-offload-dpdk.c b/lib/netdev-offload-dpdk.c index 28c4ba276..9298032aa 100644 --- a/lib/netdev-offload-dpdk.c +++ b/lib/netdev-offload-dpdk.c @@ -1116,12 +1116,13 @@ parse_flow_match(struct netdev *netdev, spec->tci = match->flow.vlans[0].tci & ~htons(VLAN_CFI); mask->tci = match->wc.masks.vlans[0].tci & ~htons(VLAN_CFI); - /* Match any protocols. */ - mask->inner_type = 0; - if (eth_spec && eth_mask) { eth_spec->has_vlan = 1; eth_mask->has_vlan = 1; + spec->inner_type = eth_spec->type; + mask->inner_type = eth_mask->type; + eth_spec->type = match->flow.vlans[0].tpid; + eth_mask->type = match->wc.masks.vlans[0].tpid; } add_flow_pattern(patterns, RTE_FLOW_ITEM_TYPE_VLAN, spec, mask);