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

2016-02-15 Thread Paul Durrant
: Re: [PATCH net-next v1 1/8] skbuff: store hash type in socket > buffer... > > 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_type

Re: [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 whether that hash type is PKT

[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