Hi Daiwei: > -----Original Message----- > From: Dai, Wei > Sent: Friday, May 18, 2018 7:07 PM > To: Zhang, Qi Z <qi.z.zh...@intel.com>; Wu, Yanglong > <yanglong...@intel.com>; dev@dpdk.org > Subject: RE: [PATCH v2] net/ixgbe: fix VLAN strip setting fail for per port > > > -----Original Message----- > > From: Zhang, Qi Z > > Sent: Friday, May 18, 2018 3:46 PM > > To: Wu, Yanglong <yanglong...@intel.com>; dev@dpdk.org > > Cc: Dai, Wei <wei....@intel.com> > > Subject: RE: [PATCH v2] net/ixgbe: fix VLAN strip setting fail for per > > port > > > > > -----Original Message----- > > > From: Wu, Yanglong > > > Sent: Friday, May 18, 2018 3:24 PM > > > To: dev@dpdk.org > > > Cc: Zhang, Qi Z <qi.z.zh...@intel.com>; Dai, Wei > > > <wei....@intel.com>; Wu, Yanglong <yanglong...@intel.com> > > > Subject: [PATCH v2] net/ixgbe: fix VLAN strip setting fail for per > > > port > > > > > > rxq->offload should synchronize with dev_conf > > > > > > Fixes: 860a94d3c692 ("net/ixgbe: support VLAN strip per queue > > > offloading in > > > VF") > > > Signed-off-by: Yanglong Wu <yanglong...@intel.com> > > > > Acked-by: Qi Zhang <qi.z.zh...@intel.com> > > The release date is coming soon. > Sorry, I have to NACK it. > VLAN strip is per-queue feature, > If it is disabled on port level, it still can be enabled on queue level. > So the else branches still should be removed.
Remove the else branch will not disable all queues if some queue is enabled at queue configure level, I think this is not user expected. The purpose of i40e_vlan_offload_set here is to disable all queue's vlan strip, though vlan strip is per queue offload and some queue may be enabled at queue configure level, I don't know why we can't disable them in this function. Thanks Qi