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 18D0DA0526 for ; Tue, 21 Jul 2020 05:11:50 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id C35E01BFCA; Tue, 21 Jul 2020 05:11:49 +0200 (CEST) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id D4EB91BFEC; Tue, 21 Jul 2020 05:11:48 +0200 (CEST) IronPort-SDR: SJHYBLXoN2Oh6y/6BNsety1DDK0a9iFkFm1CoygAyKVMN/z/L6cKivjWIRwHp33Sv9Ibw4Rfn7 PMUYudProPIw== X-IronPort-AV: E=McAfee;i="6000,8403,9688"; a="214717945" X-IronPort-AV: E=Sophos;i="5.75,377,1589266800"; d="scan'208";a="214717945" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Jul 2020 20:11:47 -0700 IronPort-SDR: 2tysUyN8AGiLBS9lHpSZZ7JkYhckGOpuES6fZh/Zb41TIRgH03r0znQoWaSwORb29FjMrjw4fo pnzrKrp9hy3w== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,377,1589266800"; d="scan'208";a="461920378" Received: from jguo15x-mobl.ccr.corp.intel.com (HELO [10.67.68.145]) ([10.67.68.145]) by orsmga005.jf.intel.com with ESMTP; 20 Jul 2020 20:11:46 -0700 To: zhihongx.peng@intel.com, beilei.xing@intel.com Cc: dev@dpdk.org, stable@dpdk.org References: <20200720024214.13972-1-zhihongx.peng@intel.com> <20200721024528.1520-1-zhihongx.peng@intel.com> From: Jeff Guo Message-ID: <0e15997b-cbee-a04a-cbcb-09e437e79442@intel.com> Date: Tue, 21 Jul 2020 11:11:45 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <20200721024528.1520-1-zhihongx.peng@intel.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Subject: Re: [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" Acked-by: Jeff Guo On 7/21/2020 10:45 AM, zhihongx.peng@intel.com wrote: > 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 |