From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from proxy.6wind.com (host.76.145.23.62.rev.coltfrance.com [62.23.145.76]) by dpdk.org (Postfix) with ESMTP id E9A5F5A44 for ; Thu, 12 Jan 2017 14:05:10 +0100 (CET) Received: from glumotte.dev.6wind.com (unknown [10.16.0.195]) by proxy.6wind.com (Postfix) with ESMTP id A05FD23DF2; Thu, 12 Jan 2017 14:05:06 +0100 (CET) From: Olivier Matz To: dev@dpdk.org, alejandro.lucero@netronome.com Date: Thu, 12 Jan 2017 14:04:56 +0100 Message-Id: <1484226296-540-1-git-send-email-olivier.matz@6wind.com> X-Mailer: git-send-email 2.8.1 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: Thu, 12 Jan 2017 13:05:11 -0000 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 --- drivers/net/nfp/nfp_net.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/nfp/nfp_net.c b/drivers/net/nfp/nfp_net.c index 65ba09f..ed3c9b8 100644 --- a/drivers/net/nfp/nfp_net.c +++ b/drivers/net/nfp/nfp_net.c @@ -2174,8 +2174,8 @@ 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" + (mask & ETH_VLAN_FILTER_EXTEND)) + RTE_LOG(INFO, PMD, "No support for ETH_VLAN_FILTER_OFFLOAD or" " ETH_VLAN_FILTER_EXTEND"); /* Enable vlan strip if it is not configured yet */ -- 2.8.1