ipv6.h (1bd758eb1cab2fa5b71a23f9e5d3c8076f4ed650) | ipv6.h (06635a35d13d42b95422bba6633f175245cc644e) |
---|---|
1/* 2 * Linux INET6 implementation 3 * 4 * Authors: 5 * Pedro Roque <roque@di.fc.ul.pt> 6 * 7 * This program is free software; you can redistribute it and/or 8 * modify it under the terms of the GNU General Public License --- 684 unchanged lines hidden (view full) --- 693 694#if IS_ENABLED(CONFIG_IPV6) 695static inline void ip6_set_txhash(struct sock *sk) 696{ 697 struct inet_sock *inet = inet_sk(sk); 698 struct ipv6_pinfo *np = inet6_sk(sk); 699 struct flow_keys keys; 700 | 1/* 2 * Linux INET6 implementation 3 * 4 * Authors: 5 * Pedro Roque <roque@di.fc.ul.pt> 6 * 7 * This program is free software; you can redistribute it and/or 8 * modify it under the terms of the GNU General Public License --- 684 unchanged lines hidden (view full) --- 693 694#if IS_ENABLED(CONFIG_IPV6) 695static inline void ip6_set_txhash(struct sock *sk) 696{ 697 struct inet_sock *inet = inet_sk(sk); 698 struct ipv6_pinfo *np = inet6_sk(sk); 699 struct flow_keys keys; 700 |
701 keys.src = (__force __be32)ipv6_addr_hash(&np->saddr); 702 keys.dst = (__force __be32)ipv6_addr_hash(&sk->sk_v6_daddr); 703 keys.port16[0] = inet->inet_sport; 704 keys.port16[1] = inet->inet_dport; | 701 keys.addrs.src = (__force __be32)ipv6_addr_hash(&np->saddr); 702 keys.addrs.dst = (__force __be32)ipv6_addr_hash(&sk->sk_v6_daddr); 703 keys.ports.port16[0] = inet->inet_sport; 704 keys.ports.port16[1] = inet->inet_dport; |
705 706 sk->sk_txhash = flow_hash_from_keys(&keys); 707} 708 709static inline __be32 ip6_make_flowlabel(struct net *net, struct sk_buff *skb, 710 __be32 flowlabel, bool autolabel) 711{ 712 if (!flowlabel && (autolabel || net->ipv6.sysctl.auto_flowlabels)) { --- 240 unchanged lines hidden --- | 705 706 sk->sk_txhash = flow_hash_from_keys(&keys); 707} 708 709static inline __be32 ip6_make_flowlabel(struct net *net, struct sk_buff *skb, 710 __be32 flowlabel, bool autolabel) 711{ 712 if (!flowlabel && (autolabel || net->ipv6.sysctl.auto_flowlabels)) { --- 240 unchanged lines hidden --- |