Re: [PATCH net-next v2 5/6] net: stmmac: Add support for XDP_TX action

From
Jakub Kicinski <kuba@kernel.org>
Date
2021-03-31 02:49:41
Also in
bpf, linux-arm-kernel, lkml
Reply to
Ong Boon Leong, 2021-03-30
On Tue, 30 Mar 2021 10:49:48 +0800 Ong Boon Leong wrote:
quoted hunk ↗ jump to hunk
+	__netif_tx_lock(nq, cpu);
+	res = stmmac_xdp_xmit_xdpf(priv, queue, xdpf);
+	if (res == STMMAC_XDP_TX) {
+		stmmac_flush_tx_descriptors(priv, queue);
+		stmmac_tx_timer_arm(priv, queue);
+	}
+	__netif_tx_unlock(nq);
You may want to update nq->trans_start, see commit ec107e775d843
Thread (11 messages) 11 messages, 3 authors, last reply 2021-03-31
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help