From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Zhao1, Wei" Subject: Re: [PATCH v4] net/ixgbe: Restore vlan filter for ixgbevf Date: Mon, 18 Mar 2019 03:05:08 +0000 Message-ID: References: <20190315122650.11660-1-dharton@cisco.com> <20190315160832.34127-1-dharton@cisco.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Cc: "Lu, Wenzhuo" , "Ananyev, Konstantin" , "Zhang, Qi Z" To: David Harton , "dev@dpdk.org" Return-path: Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by dpdk.org (Postfix) with ESMTP id D572F11A4 for ; Mon, 18 Mar 2019 04:05:11 +0100 (CET) In-Reply-To: <20190315160832.34127-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" Acked-by: Wei Zhao > -----Original Message----- > From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of David Harton > Sent: Saturday, March 16, 2019 12:09 AM > To: dev@dpdk.org > Cc: Lu, Wenzhuo ; Ananyev, Konstantin > ; Zhang, Qi Z ; > David Harton > Subject: [dpdk-dev] [PATCH v4] net/ixgbe: Restore vlan filter for ixgbevf >=20 > ixgbevf vlan strip and extend capabilities were removed when migrating to > the bit flags implementation. >=20 > Restoring the capbility to enable the vlan strip offload at configuration= time. >=20 > Fixes: ec3b1124d14d (\"net/ixgbe: convert to new Rx offloads API\") > Signed-off-by: David Harton > --- >=20 > v4: fixed commit headline/log > v3: restored ixgbe_is_vf() and only restore VLAN_FILTER > v2: removed unused function ixgbe_is_vf() >=20 > drivers/net/ixgbe/ixgbe_rxtx.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) >=20 > diff --git a/drivers/net/ixgbe/ixgbe_rxtx.c b/drivers/net/ixgbe/ixgbe_rxt= x.c > index e92a70fb3..e71d3c188 100644 > --- a/drivers/net/ixgbe/ixgbe_rxtx.c > +++ b/drivers/net/ixgbe/ixgbe_rxtx.c > @@ -2853,14 +2853,14 @@ 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_SCATTER; >=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); > + offloads |=3D DEV_RX_OFFLOAD_VLAN_EXTEND; >=20 > /* > * RSC is only supported by 82599 and x540 PF devices in a non-SR- > IOV > -- > 2.19.1