Thread (5 messages) flat view 5 messages, 2 authors, 2021-11-16

Re: [RFC net-next] net: guard drivers against shared skbs

From: Jakub Kicinski <kuba@kernel.org>
Date: 2021-11-16 01:28:07

On Mon, 15 Nov 2021 09:59:56 -0800 Eric Dumazet wrote:
quoted
The IFF_TX_SKB_SHARING flag is pretty toothless as it stands.
skb_padto() needs to be replaced by something better.
so that skb can be cloned if needed.


static inline int skb_padto(struct sk_buff *skb, unsigned int len)

->  

static inline struct sk_buff *skb_padto(struct sk_buff *skb, unsigned int len)
Indeed, that was my first instinct but I wasn't up for fixing up all
the drivers which call skb_pad(), skb_cow_head() etc.

Let me leave this be for now..
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help