From: Tom Herbert <hidden> Date: 2015-02-15 18:37:37
This patch allows a driver to request that the receive hash it provides
to the stack is reflected back in skb->hash for packets transmitted
on the associated connection. The hash value returned by a device could
have meaning when used in transmit to identify a flow, for instance
the hash may by a flow ID for a flow created in a (virtual) device.
With the flow ID provided on transmit this can obviate the need
to create the hash and do the lookup on the fly in transmit.
Note that this is an opportunistic optimization, there is no
separate negotiation between the stack and driver/device for
the hash used in either TX or RX.
Signed-off-by: Tom Herbert <redacted>
---
include/linux/skbuff.h | 3 ++-
include/net/sock.h | 2 ++
2 files changed, 4 insertions(+), 1 deletion(-)
@@ -605,7 +605,8 @@ struct sk_buff {__u8ipvs_property:1;__u8inner_protocol_type:1;__u8remcsum_offload:1;-/* 3 or 5 bit hole */+__u8reflect_hash:1;+/* 2 or 4 bit hole */#ifdef CONFIG_NET_SCHED__u16tc_index;/* traffic control index */
From: Daniel Borkmann <daniel@iogearbox.net> Date: 2015-02-15 19:59:35
On 02/15/2015 07:37 PM, Tom Herbert wrote:
This patch allows a driver to request that the receive hash it provides
to the stack is reflected back in skb->hash for packets transmitted
on the associated connection.
From: Tom Herbert <hidden> Date: 2015-02-15 20:19:35
On Sun, Feb 15, 2015 at 11:59 AM, Daniel Borkmann [off-list ref] wrote:
On 02/15/2015 07:37 PM, Tom Herbert wrote:
quoted
This patch allows a driver to request that the receive hash it provides
to the stack is reflected back in skb->hash for packets transmitted
on the associated connection.
From: Daniel Borkmann <daniel@iogearbox.net> Date: 2015-02-15 20:27:29
On 02/15/2015 09:19 PM, Tom Herbert wrote:
On Sun, Feb 15, 2015 at 11:59 AM, Daniel Borkmann [off-list ref] wrote:
quoted
On 02/15/2015 07:37 PM, Tom Herbert wrote:
quoted
This patch allows a driver to request that the receive hash it provides
to the stack is reflected back in skb->hash for packets transmitted
on the associated connection.
From: Eric Dumazet <hidden> Date: 2015-02-16 12:29:59
On Sun, 2015-02-15 at 10:37 -0800, Tom Herbert wrote:
This patch allows a driver to request that the receive hash it provides
to the stack is reflected back in skb->hash for packets transmitted
on the associated connection. The hash value returned by a device could
have meaning when used in transmit to identify a flow, for instance
the hash may by a flow ID for a flow created in a (virtual) device.
With the flow ID provided on transmit this can obviate the need
to create the hash and do the lookup on the fly in transmit.
Note that this is an opportunistic optimization, there is no
separate negotiation between the stack and driver/device for
the hash used in either TX or RX.
Signed-off-by: Tom Herbert <redacted>
---
It is not clear to me why we would want to consume yet another skb->bit
for this.
This seems it might be a socket attribute, rather than a device provided
one on every packet.
Anyway, this seems a premature change, as no driver currently needs this
yet ?
From: David Miller <davem@davemloft.net> Date: 2015-02-19 20:54:51
From: Tom Herbert <redacted>
Date: Sun, 15 Feb 2015 10:37:18 -0800
This patch allows a driver to request that the receive hash it provides
to the stack is reflected back in skb->hash for packets transmitted
on the associated connection. The hash value returned by a device could
have meaning when used in transmit to identify a flow, for instance
the hash may by a flow ID for a flow created in a (virtual) device.
With the flow ID provided on transmit this can obviate the need
to create the hash and do the lookup on the fly in transmit.
Note that this is an opportunistic optimization, there is no
separate negotiation between the stack and driver/device for
the hash used in either TX or RX.
Signed-off-by: Tom Herbert <redacted>
Like Eric, I'd like to see this resubmitted alongside an actual user
of the new facility.
Thanks!