summaryrefslogtreecommitdiffstats
path: root/net/ipv4/route.c
diff options
context:
space:
mode:
authorJohn Dykstra2009-10-20 06:53:53 +0200
committerDavid S. Miller2009-10-20 08:22:52 +0200
commit0eae750e6019a93643063924209c1daf9cb9b4a7 (patch)
treea9c85a1561be628ed6bd45e70ebd833fdd1828a9 /net/ipv4/route.c
parenti2400m-sdio: select IWMC3200TOP in Kconfig (diff)
downloadkernel-qcow2-linux-0eae750e6019a93643063924209c1daf9cb9b4a7.tar.gz
kernel-qcow2-linux-0eae750e6019a93643063924209c1daf9cb9b4a7.tar.xz
kernel-qcow2-linux-0eae750e6019a93643063924209c1daf9cb9b4a7.zip
IP: Cleanups
Use symbols instead of magic constants while checking PMTU discovery setsockopt. Remove redundant test in ip_rt_frag_needed() (done by caller). Signed-off-by: John Dykstra <john.dykstra1@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/route.c')
-rw-r--r--net/ipv4/route.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/net/ipv4/route.c b/net/ipv4/route.c
index bb4199252026..68fb22702051 100644
--- a/net/ipv4/route.c
+++ b/net/ipv4/route.c
@@ -1628,9 +1628,6 @@ unsigned short ip_rt_frag_needed(struct net *net, struct iphdr *iph,
__be32 daddr = iph->daddr;
unsigned short est_mtu = 0;
- if (ipv4_config.no_pmtu_disc)
- return 0;
-
for (k = 0; k < 2; k++) {
for (i = 0; i < 2; i++) {
unsigned hash = rt_hash(daddr, skeys[i], ikeys[k],