From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id 136E82C6B; Fri, 13 Jan 2017 16:16:36 +0100 (CET) Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga104.fm.intel.com with ESMTP; 13 Jan 2017 07:16:35 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.33,222,1477983600"; d="scan'208";a="52896497" Received: from sivswdev02.ir.intel.com ([10.237.217.46]) by fmsmga005.fm.intel.com with ESMTP; 13 Jan 2017 07:16:34 -0800 From: Ferruh Yigit To: dev@dpdk.org Cc: stable@dpdk.org, Alejandro Lucero , Ferruh Yigit , Olivier Matz Date: Fri, 13 Jan 2017 15:16:25 +0000 Message-Id: <20170113151625.18656-1-ferruh.yigit@intel.com> X-Mailer: git-send-email 2.8.4 In-Reply-To: References: Subject: [dpdk-dev] [PATCH] net/nfp: fix VLAN offload flags check X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Jan 2017 15:16:37 -0000 From: Olivier Matz Fix typo when checking that no VLAN offload flags are passed at port initialization. By the way, also fix a typo in the log. Fixes: d4a27a3b092a ("nfp: add basic features") Signed-off-by: Olivier Matz Acked-by: Alejandro Lucero --- drivers/net/nfp/nfp_net.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/net/nfp/nfp_net.c b/drivers/net/nfp/nfp_net.c index 31e72e2..ab2d331 100644 --- a/drivers/net/nfp/nfp_net.c +++ b/drivers/net/nfp/nfp_net.c @@ -2174,9 +2174,9 @@ nfp_net_vlan_offload_set(struct rte_eth_dev *dev, int mask) new_ctrl = 0; if ((mask & ETH_VLAN_FILTER_OFFLOAD) || - (mask & ETH_VLAN_FILTER_OFFLOAD)) - RTE_LOG(INFO, PMD, "Not support for ETH_VLAN_FILTER_OFFLOAD or" - " ETH_VLAN_FILTER_EXTEND"); + (mask & ETH_VLAN_EXTEND_OFFLOAD)) + RTE_LOG(INFO, PMD, "No support for ETH_VLAN_FILTER_OFFLOAD or" + " ETH_VLAN_EXTEND_OFFLOAD"); /* Enable vlan strip if it is not configured yet */ if ((mask & ETH_VLAN_STRIP_OFFLOAD) && -- 2.9.3