[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1318921469-25599-1-git-send-email-gaofeng@cn.fujitsu.com>
Date: Tue, 18 Oct 2011 15:04:29 +0800
From: Gao feng <gaofeng@...fujitsu.com>
To: davem@...emloft.net, kuznet@....inr.ac.ru, jmorris@...ei.org,
eric.dumazet@...il.com
Cc: netdev@...r.kernel.org, Gao feng <gaofeng@...fujitsu.com>
Subject: [PATCH] route:ip_rt_frag_needed always return unzero
int function ip_rt_frag_need,if peer is null,
there is no need to do ipprot->err_handler.
I am right?
Signed-off-by: Gao feng <gaofeng@...fujitsu.com>
---
net/ipv4/route.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/net/ipv4/route.c b/net/ipv4/route.c
index 075212e..6cde0fa 100644
--- a/net/ipv4/route.c
+++ b/net/ipv4/route.c
@@ -1574,7 +1574,7 @@ unsigned short ip_rt_frag_needed(struct net *net, const struct iphdr *iph,
atomic_inc(&__rt_peer_genid);
}
- return est_mtu ? : new_mtu;
+ return est_mtu;
}
static void check_peer_pmtu(struct dst_entry *dst, struct inet_peer *peer)
--
1.7.1
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists