|
@@ -707,25 +707,6 @@ static inline void iph_to_flow_copy_v6addrs(struct flow_keys *flow,
|
|
|
}
|
|
|
|
|
|
#if IS_ENABLED(CONFIG_IPV6)
|
|
|
-static inline void ip6_set_txhash(struct sock *sk)
|
|
|
-{
|
|
|
- struct inet_sock *inet = inet_sk(sk);
|
|
|
- struct ipv6_pinfo *np = inet6_sk(sk);
|
|
|
- struct flow_keys keys;
|
|
|
-
|
|
|
- memset(&keys, 0, sizeof(keys));
|
|
|
-
|
|
|
- memcpy(&keys.addrs.v6addrs.src, &np->saddr,
|
|
|
- sizeof(keys.addrs.v6addrs.src));
|
|
|
- memcpy(&keys.addrs.v6addrs.dst, &sk->sk_v6_daddr,
|
|
|
- sizeof(keys.addrs.v6addrs.dst));
|
|
|
- keys.control.addr_type = FLOW_DISSECTOR_KEY_IPV6_ADDRS;
|
|
|
- keys.ports.src = inet->inet_sport;
|
|
|
- keys.ports.dst = inet->inet_dport;
|
|
|
-
|
|
|
- sk->sk_txhash = flow_hash_from_keys(&keys);
|
|
|
-}
|
|
|
-
|
|
|
static inline __be32 ip6_make_flowlabel(struct net *net, struct sk_buff *skb,
|
|
|
__be32 flowlabel, bool autolabel)
|
|
|
{
|