Skip to content

Commit 2982571

Browse files
Jakub Sitnickidavem330
authored andcommitted
net: Extend struct flowi6 with multipath hash
Allow for functions that fill out the IPv6 flow info to also pass a hash computed over the skb contents. The hash value will drive the multipath routing decisions. This is intended for special treatment of ICMPv6 errors, where we would like to make a routing decision based on the flow identifying the offending IPv6 datagram that triggered the error, rather than the flow of the ICMP error itself. Signed-off-by: Jakub Sitnicki <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 790c605 commit 2982571

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

include/net/flow.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,7 @@ struct flowi6 {
149149
#define fl6_ipsec_spi uli.spi
150150
#define fl6_mh_type uli.mht.type
151151
#define fl6_gre_key uli.gre_key
152+
__u32 mp_hash;
152153
} __attribute__((__aligned__(BITS_PER_LONG/8)));
153154

154155
struct flowidn {

0 commit comments

Comments
 (0)