Thread (26 messages) 26 messages, 4 authors, 2023-01-07

Re: [PATCH net-next v3 4/9] tsnep: Add XDP TX support

From: Jakub Kicinski <kuba@kernel.org>
Date: 2023-01-06 22:13:53

On Thu, 5 Jan 2023 22:13:00 +0100 Gerhard Engleder wrote:
quoted
quoted
-	if (entry->skb) {
+	if (entry->skb || entry->xdpf) {
  		entry->properties = length & TSNEP_DESC_LENGTH_MASK;
  		entry->properties |= TSNEP_DESC_INTERRUPT_FLAG;
-		if (skb_shinfo(entry->skb)->tx_flags & SKBTX_IN_PROGRESS)
+		if (entry->type == TSNEP_TX_TYPE_SKB &&
+		    skb_shinfo(entry->skb)->tx_flags & SKBTX_IN_PROGRESS)  
Please enclose bitops (& here) hanging around any logical ops (&& here
in their own set of braces ().  
Will be done.
Dunno if that's strictly required in the kernel coding style.
Don't we expect a good understanding of operator precedence
from people reading the code?
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help