From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Zhang, Qi Z" Subject: Re: [PATCH v2] net/ixgbe: Restore vlan filter/extend for ixgbevf Date: Thu, 14 Mar 2019 15:14:25 +0000 Message-ID: <039ED4275CED7440929022BC67E706115334CA1F@SHSMSX103.ccr.corp.intel.com> References: <20190306152355.1697-1-dharton@cisco.com> <20190308203430.31742-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" , "dev@dpdk.org" To: "David Harton (dharton)" Return-path: Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id 3E5EA374E for ; Thu, 14 Mar 2019 16:14:29 +0100 (CET) In-Reply-To: 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" > -----Original Message----- > From: David Harton (dharton) [mailto:dharton@cisco.com] > Sent: Thursday, March 14, 2019 9:38 PM > To: David Harton (dharton) ; Zhang, Qi Z > > Cc: Lu, Wenzhuo ; Ananyev, Konstantin > ; dev@dpdk.org > Subject: RE: [PATCH v2] net/ixgbe: Restore vlan filter/extend for ixgbevf >=20 > Hi Qi, >=20 > This patch was rejected with no feedback. >=20 > Can you share why? Because as Zhao Wei explained in v1 thread, in ixgbe_vlan_offload_config , = ETH_VLAN_FILTER_MASK and DEV_RX_OFFLOAD_VLAN_EXTEND are ignored This looks like VLAN_FILTER AND VLAN_EXTEND offload is not supported and I = didn't see you reply for that, so I assume you agree with that.=20 >=20 > Without this patch users are not able to call the rte_eth_dev_vlan_filter= () API for > ixgbevf based ports because VLAN_FILTER cannot be enabled when calling > rte_eth_dev_configure(). OK, seems vlan filter is able to be configured for ixgbevf, but I don't kno= w how this will work because vlan filter table needs to be enabled first (i= xgbe_vlan_hw_filter_enable) So at least when it work with a DPDK PF, vlan filter will not work, maybe k= ernel PF driver will enable it by default? Could you share more insight?=20 =20 And same question to VLAN_EXTEND >=20 > Or, am I missing something? >=20 > Thanks, > Dave >=20 > > -----Original Message----- > > From: David Harton > > Sent: Friday, March 08, 2019 3:35 PM > > To: dev@dpdk.org > > Cc: wenzhuo.lu@intel.com; konstantin.ananyev@intel.com; > > qi.z.zhang@intel.com; David Harton (dharton) > > Subject: [PATCH v2] net/ixgbe: Restore vlan filter/extend for ixgbevf > > > > ixgbevf vlan strip and extend capabilities were removed when migrating > > to the bit flags implementation. > > > > Restoring the capbility to enable these offloads at configuration time. > > > > Fixes: ec3b1124d14d (\"net/ixgbe: convert to new Rx offloads API\") > > Signed-off-by: David Harton > > --- > > > > v2: removed unused function ixgbe_is_vf() > > > > drivers/net/ixgbe/ixgbe_rxtx.c | 23 ++--------------------- > > 1 file changed, 2 insertions(+), 21 deletions(-) > > > > diff --git a/drivers/net/ixgbe/ixgbe_rxtx.c > > b/drivers/net/ixgbe/ixgbe_rxtx.c index e92a70fb3..b1b83613e 100644 > > --- a/drivers/net/ixgbe/ixgbe_rxtx.c > > +++ b/drivers/net/ixgbe/ixgbe_rxtx.c > > @@ -2813,23 +2813,6 @@ ixgbe_reset_rx_queue(struct ixgbe_adapter > > *adapter, struct ixgbe_rx_queue *rxq) #endif } > > > > -static int > > -ixgbe_is_vf(struct rte_eth_dev *dev) > > -{ > > - struct ixgbe_hw *hw =3D IXGBE_DEV_PRIVATE_TO_HW(dev->data- > > >dev_private); > > - > > - switch (hw->mac.type) { > > - case ixgbe_mac_82599_vf: > > - case ixgbe_mac_X540_vf: > > - case ixgbe_mac_X550_vf: > > - case ixgbe_mac_X550EM_x_vf: > > - case ixgbe_mac_X550EM_a_vf: > > - return 1; > > - default: > > - return 0; > > - } > > -} > > - > > uint64_t > > ixgbe_get_rx_queue_offloads(struct rte_eth_dev *dev) { @@ -2853,15 > > +2836,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; > >=09 > > if (hw->mac.type =3D=3D ixgbe_mac_82598EB) > > offloads |=3D DEV_RX_OFFLOAD_VLAN_STRIP; > > > > - 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