DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH 0/3] fix invalid Tx threshhold setup
@ 2019-05-04  9:29 Qi Zhang
  2019-05-04  9:29 ` Qi Zhang
                   ` (4 more replies)
  0 siblings, 5 replies; 12+ messages in thread
From: Qi Zhang @ 2019-05-04  9:29 UTC (permalink / raw)
  To: beilei.xing, wenzhuo.lu, qiming.yang, konstantin.ananyev; +Cc: dev, Qi Zhang

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.

The issue usually happens with an aggresive tx_free_thresh, for example:

./testpmd -c 0x3 -n 4 -- -i --rxq=16 --txq=16 --rxd=1024 --txd=1024 --txfreet=1020

The patchset fix this issue on i40e, ixgbe and ice.

Qi Zhang (3):
  net/i40e: fix invalid Tx threshold setup
  net/ice: fix invalid Tx threshold setup
  net/ixgbe: fix invalid Tx threshold setup

 drivers/net/i40e/i40e_rxtx.c   | 19 +++++++++++++++++--
 drivers/net/ice/ice_rxtx.c     | 21 ++++++++++++++++++---
 drivers/net/ixgbe/ixgbe_rxtx.c | 19 +++++++++++++++++--
 3 files changed, 52 insertions(+), 7 deletions(-)

-- 
2.13.6

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2019-05-15  7:09 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-04  9:29 [dpdk-dev] [PATCH 0/3] fix invalid Tx threshhold setup Qi Zhang
2019-05-04  9:29 ` Qi Zhang
2019-05-04  9:29 ` [dpdk-dev] [PATCH 1/3] net/i40e: fix invalid Tx threshold setup Qi Zhang
2019-05-04  9:29   ` Qi Zhang
2019-05-04  9:29 ` [dpdk-dev] [PATCH 2/3] net/ice: " Qi Zhang
2019-05-04  9:29   ` Qi Zhang
2019-05-04  9:29 ` [dpdk-dev] [PATCH 3/3] net/ixgbe: " Qi Zhang
2019-05-04  9:29   ` Qi Zhang
2019-05-15  6:36 ` [dpdk-dev] [PATCH 0/3] fix invalid Tx threshhold setup Xing, Beilei
2019-05-15  6:36   ` Xing, Beilei
2019-05-15  7:09   ` Zhang, Qi Z
2019-05-15  7:09     ` Zhang, Qi Z

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).