From: Xiao Wang Date: Mon, 6 Jan 2020 14:09:40 +0000 (-0500) Subject: net/af_xdp: fix redundant check for wakeup need X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=fdf69a8179245b01de3a736938166331487f4257;p=dpdk.git 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: d8a210774e1d ("net/af_xdp: support unaligned umem chunks") Cc: stable@dpdk.org Signed-off-by: Xiao Wang Tested-by: Ciara Loftus --- diff --git a/drivers/net/af_xdp/rte_eth_af_xdp.c b/drivers/net/af_xdp/rte_eth_af_xdp.c index 2b1245ee4f..d903e6c28a 100644 --- a/drivers/net/af_xdp/rte_eth_af_xdp.c +++ b/drivers/net/af_xdp/rte_eth_af_xdp.c @@ -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);