Re: Struct sk_buff_head

2017-06-16 Thread Kamil Konieczny
Hi,

On 06/07/2017 09:36 PM, wiktoria.lewicka wrote:
> I read code from file include/linux/skbuff.h and I have question about 
> sk_buff_head structure. 
> [...]
> Is this union replace sk_buff_head structure? 
> I didn`t found any field in sk_buff, which may use sk_buff_head, [...]

As I can see it, sk_buff can be on double-linked list,
and then it is linked by next and prev,
or it is referenced by red-black tree, rb_node,
depending of some network logic (packet type ?)

Both are used by functions operating on structures.

-- 
Best regards,
Kamil Konieczny
Samsung R&D Institute Poland


___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Struct sk_buff_head

2017-06-07 Thread wiktoria.lewicka
Hello!
I read code from file include/linux/skbuff.h and I have question about 
sk_buff_head structure. This structure is pointing to next and prev sk_buff 
structure on list. But I found the same pointers in first field structure 
sk_buff- it is union, which has pointers to next and prev sk_buff structures on 
list. Is this union replace sk_buff_head structure? I didn`t found any field in 
sk_buff, which may use sk_buff_head, but I found some functions which uses this 
structure. 

___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies