net/af_xdp: fix redundant check for wakeup need
Function kick_tx() has built-in detection on NEED_WAKEUP flag, so just
call it directly, like elsewhere in the driver.
Fixes: d8a210774e
("net/af_xdp: support unaligned umem chunks")
Cc: stable@dpdk.org
Signed-off-by: Xiao Wang <xiao.w.wang@intel.com>
Tested-by: Ciara Loftus <ciara.loftus@intel.com>
This commit is contained in:
parent
9d1ef6b2e7
commit
fdf69a8179
@ -480,10 +480,7 @@ af_xdp_tx_zc(void *queue, struct rte_mbuf **bufs, uint16_t nb_pkts)
|
||||
tx_bytes += mbuf->pkt_len;
|
||||
}
|
||||
|
||||
#if defined(XDP_USE_NEED_WAKEUP)
|
||||
if (xsk_ring_prod__needs_wakeup(&txq->tx))
|
||||
#endif
|
||||
kick_tx(txq);
|
||||
kick_tx(txq);
|
||||
|
||||
out:
|
||||
xsk_ring_prod__submit(&txq->tx, count);
|
||||
|
Loading…
Reference in New Issue
Block a user