aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpiutil.c
diff options
context:
space:
mode:
authorMaciej Fijalkowski <[email protected]>2022-03-17 19:36:29 +0100
committerTony Nguyen <[email protected]>2022-04-05 09:09:06 -0700
commite19778e6c911691856447c3bf9617f00b3e1347f (patch)
treef2821ac1c8a9cb7025eda9ae5e6fba1bae8e0cf8 /lib/mpi/mpiutil.c
parent72b915a2b444e9247c9d424a840e94263db07c27 (diff)
ice: clear cmd_type_offset_bsz for TX rings
Currently when XDP rings are created, each descriptor gets its DD bit set, which turns out to be the wrong approach as it can lead to a situation where more descriptors get cleaned than it was supposed to, e.g. when AF_XDP busy poll is run with a large batch size. In this situation, the driver would request for more buffers than it is able to handle. Fix this by not setting the DD bits in ice_xdp_alloc_setup_rings(). They should be initialized to zero instead. Fixes: 9610bd988df9 ("ice: optimize XDP_TX workloads") Signed-off-by: Maciej Fijalkowski <[email protected]> Tested-by: Shwetha Nagaraju <[email protected]> Signed-off-by: Tony Nguyen <[email protected]>
Diffstat (limited to 'lib/mpi/mpiutil.c')
0 files changed, 0 insertions, 0 deletions