[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <21c752a196bae3977cc0f91182b6ae9cef9ed532.camel@redhat.com>
Date: Wed, 07 Dec 2022 11:29:46 +0100
From: Paolo Abeni <pabeni@...hat.com>
To: Gerhard Engleder <gerhard@...leder-embedded.com>,
netdev@...r.kernel.org, bpf@...r.kernel.org
Cc: davem@...emloft.net, kuba@...nel.org, edumazet@...gle.com,
ast@...nel.org, daniel@...earbox.net, hawk@...nel.org,
john.fastabend@...il.com
Subject: Re: [PATCH net-next 4/6] tsnep: Prepare RX buffer for XDP support
On Sat, 2022-12-03 at 22:54 +0100, Gerhard Engleder wrote:
> @@ -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!
Paolo
Powered by blists - more mailing lists