]> git.droids-corp.org - dpdk.git/commit
net/iavf: fix data path selection
authorYiding Zhou <yidingx.zhou@intel.com>
Sat, 7 May 2022 19:52:39 +0000 (03:52 +0800)
committerQi Zhang <qi.z.zhang@intel.com>
Tue, 17 May 2022 00:43:08 +0000 (02:43 +0200)
commit865df516f931827580f00e65f246f49838c722bb
tree9b2f6d951d9ee9c5cf1500aee347e096fe4cda93
parentf3548646dbad2cd6a01c2c1c1394a53ece5f513a
net/iavf: fix data path selection

If PF driver don't support a flex Rx descriptor that required by VF,
legacy descriptor format will be negotiated to configure the hardware
queue.

The patch fixes the issue that an Rx data path that handle flexible
descriptor  (e.g.:
iavf_recv_scattered_pkts_vec_avx512_flex_rxd) is selected while the
actual hardware queues are configured as legacy due to above scenario,
which will cause following coredump.

Fixes: 12b435bf8f2f ("net/iavf: support flex desc metadata extraction")
Cc: stable@dpdk.org
Signed-off-by: Yiding Zhou <yidingx.zhou@intel.com>
Acked-by: Qi Zhang <qi.z.zhang@intel.com>
drivers/net/iavf/iavf_rxtx.c