[lkml]   [2018]   [Feb]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [RFC PATCH v2] ptr_ring: linked list fallback

On 2018年02月28日 11:28, Jason Wang wrote:
>>> Well I believe the main user for this is qdisc, which use skb array.
>>> And we
>>> can not use what implemented in this patch directly for sk_buff
>>> without some
>>> changes on the data structure.
>> Why not? skb has next and prev pointers at 1st two fields:
>> struct sk_buff {
>>          union {
>>                  struct {
>>                          /* These two members must be first. */
>>                          struct sk_buff          *next;
>>                          struct sk_buff          *prev;
>> ...
>> }
>> so it's just a question of casting to struct plist.
> Well, then the casting can only be done in skb_array implementation?

Ok, could be done in ptr ring. But still looks tricky, because of the
different meaning of prev and last.


 \ /
  Last update: 2018-02-28 04:40    [W:0.113 / U:3.556 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site