From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Zhao1, Wei" Subject: Re: [PATCH] net/ixgbe: Restore vlan filter/extend for ixgbvef Date: Fri, 8 Mar 2019 06:35:19 +0000 Message-ID: References: <20190306152355.1697-1-dharton@cisco.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable To: David Harton , "dev@dpdk.org" , "Lu, Wenzhuo" , "Ananyev, Konstantin" Return-path: Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by dpdk.org (Postfix) with ESMTP id 6164827D for ; Fri, 8 Mar 2019 07:35:23 +0100 (CET) In-Reply-To: <20190306152355.1697-1-dharton@cisco.com> Content-Language: en-US List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Hi, David Harton > -----Original Message----- > From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of David Harton > Sent: Wednesday, March 6, 2019 11:24 PM > To: dev@dpdk.org; Lu, Wenzhuo ; Ananyev, > Konstantin > Cc: David Harton > Subject: [dpdk-dev] [PATCH] net/ixgbe: Restore vlan filter/extend for > ixgbvef >=20 > ixgevf vlan strip and extend capabilities were removed when migrating to = the > bit flags implementation. >=20 > Restoring the capbility to enable these offloads at configuration time. >=20 > Fixes: ec3b1124d14d (\"net/ixgbe: convert to new Rx offloads API\") > Signed-off-by: David Harton > --- > drivers/net/ixgbe/ixgbe_rxtx.c | 6 ++---- > 1 file changed, 2 insertions(+), 4 deletions(-) >=20 > diff --git a/drivers/net/ixgbe/ixgbe_rxtx.c b/drivers/net/ixgbe/ixgbe_rxt= x.c > index e92a70fb3..95c32257c 100644 > --- a/drivers/net/ixgbe/ixgbe_rxtx.c > +++ b/drivers/net/ixgbe/ixgbe_rxtx.c > @@ -2853,15 +2853,13 @@ ixgbe_get_rx_port_offloads(struct rte_eth_dev > *dev) > DEV_RX_OFFLOAD_TCP_CKSUM | > DEV_RX_OFFLOAD_KEEP_CRC | > DEV_RX_OFFLOAD_JUMBO_FRAME | > + DEV_RX_OFFLOAD_VLAN_FILTER | > + DEV_RX_OFFLOAD_VLAN_EXTEND | > DEV_RX_OFFLOAD_SCATTER; >=20 Why do we set DEV_RX_OFFLOAD_VLAN_EXTEND for ixgbevf ? =20 It seems Ixgbevf do not support this configuration. Only pf does. But this ixgbe_get_rx_port_offloads () is used by both vf and pf.=20 > if (hw->mac.type =3D=3D ixgbe_mac_82598EB) > offloads |=3D DEV_RX_OFFLOAD_VLAN_STRIP; >=20 > - if (ixgbe_is_vf(dev) =3D=3D 0) > - offloads |=3D (DEV_RX_OFFLOAD_VLAN_FILTER | > - DEV_RX_OFFLOAD_VLAN_EXTEND); > - > /* > * RSC is only supported by 82599 and x540 PF devices in a non-SR- > IOV > * mode. > -- > 2.19.1