Re: [Xen-devel] [PATCH net-next v1 1/8] skbuff: store hash type in socket buffer...

2016-02-15 Thread Paul Durrant
> -Original Message- > From: Tom Herbert [mailto:t...@herbertland.com] > Sent: 14 February 2016 22:25 > To: Paul Durrant > Cc: Linux Kernel Network Developers; xen-de...@lists.xenproject.org; David > S. Miller; Jay Vosburgh; Veaceslav Falico; Andy Gospodarek > Subject: Re: [PATCH net-next

Re: [Xen-devel] [PATCH net-next v1 1/8] skbuff: store hash type in socket buffer...

2016-02-14 Thread Tom Herbert
On Fri, Feb 12, 2016 at 11:13 AM, Paul Durrant wrote: > ...rather than a boolean merely indicating a canonical L4 hash. > > skb_set_hash() takes a hash type (from enum pkt_hash_types) as an > argument but information is lost since only a single bit in the skb > stores

[Xen-devel] [PATCH net-next v1 1/8] skbuff: store hash type in socket buffer...

2016-02-12 Thread Paul Durrant
...rather than a boolean merely indicating a canonical L4 hash. skb_set_hash() takes a hash type (from enum pkt_hash_types) as an argument but information is lost since only a single bit in the skb stores whether that hash type is PKT_HASH_TYPE_L4 or not. By using two bits it's possible to store