From patchwork Mon Jul 20 02:42:14 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Peng, ZhihongX" X-Patchwork-Id: 74457 X-Patchwork-Delegate: qi.z.zhang@intel.com Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 4C292A0540; Mon, 20 Jul 2020 04:40:24 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id D2186E07; Mon, 20 Jul 2020 04:40:22 +0200 (CEST) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id E94133B5 for ; Mon, 20 Jul 2020 04:40:20 +0200 (CEST) IronPort-SDR: I6UrHH1NyNZiR2PbzxEeG5IZOUJ/b1bcZ1MevPOILgTf3wA9jHM//u282VtKHFKcvaiytKnmS2 HaXnMp4UmqZg== X-IronPort-AV: E=McAfee;i="6000,8403,9687"; a="148998538" X-IronPort-AV: E=Sophos;i="5.75,373,1589266800"; d="scan'208";a="148998538" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Jul 2020 19:40:19 -0700 IronPort-SDR: m5DjjL/nU3a6KNTXbeAxVy26zo0T2rjWMP3tmdcR/yg7hcBHdJuO6FghBcyT2ehygJEt1eEd8f r4voB2Ap2s1w== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,373,1589266800"; d="scan'208";a="319382407" Received: from ubuntu.sh.intel.com ([10.240.183.163]) by fmsmga002.fm.intel.com with ESMTP; 19 Jul 2020 19:40:17 -0700 From: zhihongx.peng@intel.com To: beilei.xing@intel.com, jia.guo@intel.com Cc: dev@dpdk.org, Peng Zhihong , declan.doherty@intel.com Date: Sun, 19 Jul 2020 22:42:14 -0400 Message-Id: <20200720024214.13972-1-zhihongx.peng@intel.com> X-Mailer: git-send-email 2.17.1 Subject: [dpdk-dev] [DPDK] net/i40e: add the VLAN capabilities of NIC 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" From: Peng Zhihong The rte_eth_dev_set_vlan_offload function will check whether the NIC has the set vlan feature. If it has not, it will return failure. So need to add all the vlan feature flags of the NIC. Fixes: e0cb96204b71 (net/i40e: add support for representor ports) Cc: declan.doherty@intel.com Signed-off-by: Peng Zhihong --- drivers/net/i40e/i40e_vf_representor.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/i40e/i40e_vf_representor.c b/drivers/net/i40e/i40e_vf_representor.c index b07b35c03..083bc1a5f 100644 --- a/drivers/net/i40e/i40e_vf_representor.c +++ b/drivers/net/i40e/i40e_vf_representor.c @@ -46,7 +46,8 @@ i40e_vf_representor_dev_infos_get(struct rte_eth_dev *ethdev, DEV_RX_OFFLOAD_QINQ_STRIP | DEV_RX_OFFLOAD_IPV4_CKSUM | DEV_RX_OFFLOAD_UDP_CKSUM | - DEV_RX_OFFLOAD_TCP_CKSUM; + DEV_RX_OFFLOAD_TCP_CKSUM | + DEV_RX_OFFLOAD_VLAN_FILTER; dev_info->tx_offload_capa = DEV_TX_OFFLOAD_MULTI_SEGS | DEV_TX_OFFLOAD_VLAN_INSERT |