diff options
author | Tim Beale | 2019-06-14 06:41:27 +0200 |
---|---|---|
committer | David S. Miller | 2019-06-15 04:52:07 +0200 |
commit | f48d2ccee1ba3b2bdb0901d4e5bb3cfe2edd7b36 (patch) | |
tree | e05c5a93209b47c8a417e3f6624a893316373ada /net/ipv4 | |
parent | udp: Remove unused parameter (exact_dif) (diff) | |
download | kernel-qcow2-linux-f48d2ccee1ba3b2bdb0901d4e5bb3cfe2edd7b36.tar.gz kernel-qcow2-linux-f48d2ccee1ba3b2bdb0901d4e5bb3cfe2edd7b36.tar.xz kernel-qcow2-linux-f48d2ccee1ba3b2bdb0901d4e5bb3cfe2edd7b36.zip |
udp: Remove unused variable/function (exact_dif)
This was originally passed through to the VRF logic in compute_score().
But that logic has now been replaced by udp_sk_bound_dev_eq() and so
this code is no longer used or needed.
Signed-off-by: Tim Beale <timbeale@catalyst.net.nz>
Reviewed-by: David Ahern <dsahern@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4')
-rw-r--r-- | net/ipv4/udp.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/net/ipv4/udp.c b/net/ipv4/udp.c index 21febf129736..211a8f3e478f 100644 --- a/net/ipv4/udp.c +++ b/net/ipv4/udp.c @@ -125,17 +125,6 @@ EXPORT_SYMBOL(udp_memory_allocated); #define MAX_UDP_PORTS 65536 #define PORTS_PER_CHAIN (MAX_UDP_PORTS / UDP_HTABLE_SIZE_MIN) -/* IPCB reference means this can not be used from early demux */ -static bool udp_lib_exact_dif_match(struct net *net, struct sk_buff *skb) -{ -#if IS_ENABLED(CONFIG_NET_L3_MASTER_DEV) - if (!net->ipv4.sysctl_udp_l3mdev_accept && - skb && ipv4_l3mdev_skb(IPCB(skb)->flags)) - return true; -#endif - return false; -} - static int udp_lib_lport_inuse(struct net *net, __u16 num, const struct udp_hslot *hslot, unsigned long *bitmap, @@ -460,7 +449,6 @@ struct sock *__udp4_lib_lookup(struct net *net, __be32 saddr, unsigned short hnum = ntohs(dport); unsigned int hash2, slot2; struct udp_hslot *hslot2; - bool exact_dif = udp_lib_exact_dif_match(net, skb); hash2 = ipv4_portaddr_hash(net, daddr, hnum); slot2 = hash2 & udptable->mask; |