numam-dpdk/drivers/net/ice
Qi Zhang fb69492c04 net/ice: fix Tx threshold setup
Tx desc's DD status is not cleaned by NIC automatically after packets
have been transmitted until software refill a new packet during next
loop. So when tx_free_thresh + tx_rs_thresh > nb_desc, it is possible
that an outdated DD status be checked as tx_next_dd, then segment fault
happen due to free a NULL mbuf pointer.

Then patch fixes this issue by
1. try to adapt tx_rs_thresh to an aggressive tx_free_thresh.
2. queue setup fail when tx_free_thresh + tx_rs_thresh > nb_desc

Fixes: 50370662b7 ("net/ice: support device and queue ops")
Cc: stable@dpdk.org

Signed-off-by: Qi Zhang <qi.z.zhang@intel.com>
Acked-by: Beilei Xing <beilei.xing@intel.com>
2019-05-21 18:40:06 +02:00
..
base net/ice: send driver version to firmware 2019-04-05 17:45:22 +02:00
ice_ethdev.c net/ice: set min and max MTU 2019-05-21 18:40:06 +02:00
ice_ethdev.h net/ice: fix max frame size 2019-04-12 11:02:02 +02:00
ice_logs.h net/ice: support device initialization 2018-12-21 16:22:41 +01:00
ice_rxtx_vec_avx2.c net/ice: support vector AVX2 in Tx 2019-03-29 17:25:31 +01:00
ice_rxtx_vec_common.h net/ice: support Tx SSE vector 2019-03-29 17:25:31 +01:00
ice_rxtx_vec_sse.c net/ice: support Tx SSE vector 2019-03-29 17:25:31 +01:00
ice_rxtx.c net/ice: fix Tx threshold setup 2019-05-21 18:40:06 +02:00
ice_rxtx.h net/ice: fix Tx function selection 2019-04-19 14:51:55 +02:00
Makefile net/ice/base: support FDIR 2019-03-29 17:25:31 +01:00
meson.build net/ice: support Rx AVX2 vector 2019-03-29 17:25:31 +01:00
rte_pmd_ice_version.map net/ice: support device initialization 2018-12-21 16:22:41 +01:00