From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 723F0A0527 for ; Tue, 21 Jul 2020 04:41:49 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 5520B1BFEF; Tue, 21 Jul 2020 04:41:49 +0200 (CEST) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id EB3F91BFE3; Tue, 21 Jul 2020 04:41:45 +0200 (CEST) IronPort-SDR: fYQEZ5hRPhdzCkI9dujmUdjABvhCGegQIce+Bm2tNYoLg8fhbzr+GyfEgOCAqnCyJcZtUNf3pX GBv23w2xq0Fw== X-IronPort-AV: E=McAfee;i="6000,8403,9688"; a="151395627" X-IronPort-AV: E=Sophos;i="5.75,377,1589266800"; d="scan'208";a="151395627" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Jul 2020 19:41:44 -0700 IronPort-SDR: Xzsv+ZhvAkC7LjTm9f2YB9gRfcvPnsbDstMytvPOuMhFNLXZQ8BHJwZYYZZPD81imupOFHsw7Z OjGXpjktsQMA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,377,1589266800"; d="scan'208";a="392213458" Received: from ubuntu.sh.intel.com ([10.240.183.163]) by fmsmga001.fm.intel.com with ESMTP; 20 Jul 2020 19:41:42 -0700 From: zhihongx.peng@intel.com To: beilei.xing@intel.com, jia.guo@intel.com Cc: dev@dpdk.org, Peng Zhihong , stable@dpdk.org Date: Mon, 20 Jul 2020 22:45:28 -0400 Message-Id: <20200721024528.1520-1-zhihongx.peng@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200720024214.13972-1-zhihongx.peng@intel.com> References: <20200720024214.13972-1-zhihongx.peng@intel.com> Subject: [dpdk-stable] [DPDK v2] net/i40e: add VLAN filter feature to capability X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Sender: "stable" From: Peng Zhihong The rte_eth_dev_set_vlan_offload function will check vlan rx offload capability, the i40e vf has vlan filter feature but DEV_RX_OFFLOAD_VLAN_FILTER is not set into the capability, that will cause setting fail. So need to add this capability in i40e_vf_representor_dev_infos_get function. Fixes: e0cb96204b71 (net/i40e: add support for representor ports) Cc: stable@dpdk.org 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 | -- 2.17.1