copy_skb_header() and sk_buff flags (question)

2 messages, 2 authors, 2012-08-22 · open the first message on its own page

copy_skb_header() and sk_buff flags (question)

From: Kevin Wilson <hidden>
Date: 2012-08-22 04:55:33

Hello,

I have a question if I may, as I cannot understand this point:

I try to understand why in __copy_skb_header() we copy various flags
(like ip_summed,
local_df, pkt_type, priority, ipvs_property, and more. But there are
flags which we do
not copy, like nohdr, or fclone, or peeked.

 Aren't these flags part of the sk_buff header?

regards,
Kevin

Re: copy_skb_header() and sk_buff flags (question)

From: Eric Dumazet <hidden>
Date: 2012-08-22 05:21:25

On Wed, 2012-08-22 at 07:55 +0300, Kevin Wilson wrote:
Hello,

I have a question if I may, as I cannot understand this point:

I try to understand why in __copy_skb_header() we copy various flags
(like ip_summed,
local_df, pkt_type, priority, ipvs_property, and more. But there are
flags which we do
not copy, like nohdr, or fclone, or peeked.

 Aren't these flags part of the sk_buff header?
Caller should take care of said bits.

peeked is probably always 0 at this point...

I tried to use a single memcpy() to speedup things, but found out
it was not a trivial thing...
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help