* [PATCH net-next] inet: remove now unused flag DST_NOPEER
@ 2014-03-06 8:11 Hannes Frederic Sowa
2014-03-06 11:59 ` Eric Dumazet
2014-03-06 18:17 ` David Miller
0 siblings, 2 replies; 3+ messages in thread
From: Hannes Frederic Sowa @ 2014-03-06 8:11 UTC (permalink / raw)
To: netdev; +Cc: eric.dumazet
Commit e688a604807647 ("net: introduce DST_NOPEER dst flag") introduced
DST_NOPEER because because of crashes in ipv6_select_ident called from
udp6_ufo_fragment.
Since commit 916e4cf46d0204 ("ipv6: reuse ip6_frag_id from
ip6_ufo_append_data") we don't call ipv6_select_ident any more from
ip6_ufo_append_data, thus this flag lost its purpose and can be removed.
Cc: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: Hannes Frederic Sowa <hannes@stressinduktion.org>
---
include/net/dst.h | 7 +++----
net/bridge/br_netfilter.c | 2 +-
net/ipv6/output_core.c | 2 +-
3 files changed, 5 insertions(+), 6 deletions(-)
diff --git a/include/net/dst.h b/include/net/dst.h
index 77eb53f..e01a826 100644
--- a/include/net/dst.h
+++ b/include/net/dst.h
@@ -54,10 +54,9 @@ struct dst_entry {
#define DST_NOHASH 0x0008
#define DST_NOCACHE 0x0010
#define DST_NOCOUNT 0x0020
-#define DST_NOPEER 0x0040
-#define DST_FAKE_RTABLE 0x0080
-#define DST_XFRM_TUNNEL 0x0100
-#define DST_XFRM_QUEUE 0x0200
+#define DST_FAKE_RTABLE 0x0040
+#define DST_XFRM_TUNNEL 0x0080
+#define DST_XFRM_QUEUE 0x0100
unsigned short pending_confirm;
diff --git a/net/bridge/br_netfilter.c b/net/bridge/br_netfilter.c
index df0f114..80e1b0f 100644
--- a/net/bridge/br_netfilter.c
+++ b/net/bridge/br_netfilter.c
@@ -167,7 +167,7 @@ void br_netfilter_rtable_init(struct net_bridge *br)
rt->dst.dev = br->dev;
rt->dst.path = &rt->dst;
dst_init_metrics(&rt->dst, br_dst_default_metrics, true);
- rt->dst.flags = DST_NOXFRM | DST_NOPEER | DST_FAKE_RTABLE;
+ rt->dst.flags = DST_NOXFRM | DST_FAKE_RTABLE;
rt->dst.ops = &fake_dst_ops;
}
diff --git a/net/ipv6/output_core.c b/net/ipv6/output_core.c
index 827f795..d1b35d3 100644
--- a/net/ipv6/output_core.c
+++ b/net/ipv6/output_core.c
@@ -13,7 +13,7 @@ void ipv6_select_ident(struct frag_hdr *fhdr, struct rt6_info *rt)
int old, new;
#if IS_ENABLED(CONFIG_IPV6)
- if (rt && !(rt->dst.flags & DST_NOPEER)) {
+ if (rt) {
struct inet_peer *peer;
struct net *net;
--
1.8.5.3
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH net-next] inet: remove now unused flag DST_NOPEER
2014-03-06 8:11 [PATCH net-next] inet: remove now unused flag DST_NOPEER Hannes Frederic Sowa
@ 2014-03-06 11:59 ` Eric Dumazet
2014-03-06 18:17 ` David Miller
1 sibling, 0 replies; 3+ messages in thread
From: Eric Dumazet @ 2014-03-06 11:59 UTC (permalink / raw)
To: Hannes Frederic Sowa; +Cc: netdev
On Thu, 2014-03-06 at 09:11 +0100, Hannes Frederic Sowa wrote:
> Commit e688a604807647 ("net: introduce DST_NOPEER dst flag") introduced
> DST_NOPEER because because of crashes in ipv6_select_ident called from
> udp6_ufo_fragment.
>
> Since commit 916e4cf46d0204 ("ipv6: reuse ip6_frag_id from
> ip6_ufo_append_data") we don't call ipv6_select_ident any more from
> ip6_ufo_append_data, thus this flag lost its purpose and can be removed.
>
> Cc: Eric Dumazet <eric.dumazet@gmail.com>
> Signed-off-by: Hannes Frederic Sowa <hannes@stressinduktion.org>
> ---
SGTM
Acked-by: Eric Dumazet <edumazet@google.com>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH net-next] inet: remove now unused flag DST_NOPEER
2014-03-06 8:11 [PATCH net-next] inet: remove now unused flag DST_NOPEER Hannes Frederic Sowa
2014-03-06 11:59 ` Eric Dumazet
@ 2014-03-06 18:17 ` David Miller
1 sibling, 0 replies; 3+ messages in thread
From: David Miller @ 2014-03-06 18:17 UTC (permalink / raw)
To: hannes; +Cc: netdev, eric.dumazet
From: Hannes Frederic Sowa <hannes@stressinduktion.org>
Date: Thu, 6 Mar 2014 09:11:07 +0100
> Commit e688a604807647 ("net: introduce DST_NOPEER dst flag") introduced
> DST_NOPEER because because of crashes in ipv6_select_ident called from
> udp6_ufo_fragment.
>
> Since commit 916e4cf46d0204 ("ipv6: reuse ip6_frag_id from
> ip6_ufo_append_data") we don't call ipv6_select_ident any more from
> ip6_ufo_append_data, thus this flag lost its purpose and can be removed.
>
> Cc: Eric Dumazet <eric.dumazet@gmail.com>
> Signed-off-by: Hannes Frederic Sowa <hannes@stressinduktion.org>
Applied, thanks.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-03-06 18:18 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-06 8:11 [PATCH net-next] inet: remove now unused flag DST_NOPEER Hannes Frederic Sowa
2014-03-06 11:59 ` Eric Dumazet
2014-03-06 18:17 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).