Thread (15 messages) 15 messages, 2 authors, 2022-12-07

Re: [PATCH net-next 4/6] tsnep: Prepare RX buffer for XDP support

flat view

From: Gerhard Engleder <hidden>
Date: 2022-12-07 20:09:46
Also in: bpf

On 07.12.22 11:29, Paolo Abeni wrote:
On Sat, 2022-12-03 at 22:54 +0100, Gerhard Engleder wrote:
quoted
@@ -808,6 +809,16 @@ static void tsnep_tx_close(struct tsnep_tx *tx)
  	tsnep_tx_ring_cleanup(tx);
  }
  
+static inline unsigned int tsnep_rx_offset(struct tsnep_rx *rx)
+{
+	struct tsnep_adapter *adapter = rx->adapter;
+
+	if (tsnep_xdp_is_enabled(adapter))
+		return XDP_PACKET_HEADROOM;
+
+	return TSNEP_SKB_PAD;
+}
please, no 'inline' in .c files, thanks!
Will be fixed.

Gerhard
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help