summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorMiaohe Lin <linmiaohe@huawei.com>2020-08-31 09:26:10 +0300
committerDavid S. Miller <davem@davemloft.net>2020-08-31 23:08:10 +0300
commit3f7d820bad6cace3ecb859bf3fa5bc56fe8bb1c6 (patch)
tree619cdad538886cd655b04f5ba20d5dd32051fe14 /include/linux
parent10eb4667946068e34f0cde1485f030aa68c89275 (diff)
downloadlinux-3f7d820bad6cace3ecb859bf3fa5bc56fe8bb1c6.tar.xz
net: ipv6: remove unused arg exact_dif in compute_score
The arg exact_dif is not used anymore, remove it. inet6_exact_dif_match() is no longer needed after the above is removed, remove it too. Signed-off-by: Miaohe Lin <linmiaohe@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/ipv6.h11
1 files changed, 0 insertions, 11 deletions
diff --git a/include/linux/ipv6.h b/include/linux/ipv6.h
index bac8f4fffbd6..dda61d150a13 100644
--- a/include/linux/ipv6.h
+++ b/include/linux/ipv6.h
@@ -177,17 +177,6 @@ static inline int inet6_sdif(const struct sk_buff *skb)
return 0;
}
-/* can not be used in TCP layer after tcp_v6_fill_cb */
-static inline bool inet6_exact_dif_match(struct net *net, struct sk_buff *skb)
-{
-#if defined(CONFIG_NET_L3_MASTER_DEV)
- if (!net->ipv4.sysctl_tcp_l3mdev_accept &&
- skb && ipv6_l3mdev_skb(IP6CB(skb)->flags))
- return true;
-#endif
- return false;
-}
-
struct tcp6_request_sock {
struct tcp_request_sock tcp6rsk_tcp;
};