netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next 1/1] ipv6: remove the destination condition on flow label sharing
@ 2013-11-01 16:11 Florent Fourcot
  2013-11-01 21:40 ` Hannes Frederic Sowa
  0 siblings, 1 reply; 3+ messages in thread
From: Florent Fourcot @ 2013-11-01 16:11 UTC (permalink / raw)
  To: netdev; +Cc: Florent Fourcot

In case of label sharing, it should be possible to use
one label to more than one destination. This
old restriction is not mandatory, so we can remove it.

Signed-off-by: Florent Fourcot <florent.fourcot@enst-bretagne.fr>
---
 net/ipv6/ip6_flowlabel.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/net/ipv6/ip6_flowlabel.c b/net/ipv6/ip6_flowlabel.c
index 46e8843..f8102d0 100644
--- a/net/ipv6/ip6_flowlabel.c
+++ b/net/ipv6/ip6_flowlabel.c
@@ -604,8 +604,7 @@ recheck:
 					goto release;

 				err = -EINVAL;
-				if (!ipv6_addr_equal(&fl1->dst, &fl->dst) ||
-				    ipv6_opt_cmp(fl1->opt, fl->opt))
+				if (ipv6_opt_cmp(fl1->opt, fl->opt))
 					goto release;

 				err = -ENOMEM;
--
1.8.4.rc3

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH net-next 1/1] ipv6: remove the destination condition on flow label sharing
  2013-11-01 16:11 [PATCH net-next 1/1] ipv6: remove the destination condition on flow label sharing Florent Fourcot
@ 2013-11-01 21:40 ` Hannes Frederic Sowa
  2013-11-02 13:37   ` Florent Fourcot
  0 siblings, 1 reply; 3+ messages in thread
From: Hannes Frederic Sowa @ 2013-11-01 21:40 UTC (permalink / raw)
  To: Florent Fourcot; +Cc: netdev

On Fri, Nov 01, 2013 at 05:11:26PM +0100, Florent Fourcot wrote:
> In case of label sharing, it should be possible to use
> one label to more than one destination. This
> old restriction is not mandatory, so we can remove it.

Why?

Maybe I am not the only one up to date with recent advances in flow label
management but I guess others want to know why, too?

Please reflect this in your changelog.

Greetings,

  Hannes

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH net-next 1/1] ipv6: remove the destination condition on flow label sharing
  2013-11-01 21:40 ` Hannes Frederic Sowa
@ 2013-11-02 13:37   ` Florent Fourcot
  0 siblings, 0 replies; 3+ messages in thread
From: Florent Fourcot @ 2013-11-02 13:37 UTC (permalink / raw)
  To: Hannes Frederic Sowa; +Cc: netdev


> Why?
> 
> Maybe I am not the only one up to date with recent advances in flow label
> management but I guess others want to know why, too?
> 

Actually, the good question is "why this restriction before". It
probably comes from the RFC 1809, an informational one:

RFC 1809 says:
> 
>    The specification further requires that all datagrams with the same
>    (non-zero) Flow Label must have the same Destination Address, Hop-
>    by-Hop Options header, Routing Header and Source Address contents.

In standard track RFCs (3697 / 6437), there are no restriction to set a
flow label to only one destination. In the same way, the condition on
IPv6 option is obsolete.


> Please reflect this in your changelog.
> 

I will send a V2.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-11-02 13:46 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-01 16:11 [PATCH net-next 1/1] ipv6: remove the destination condition on flow label sharing Florent Fourcot
2013-11-01 21:40 ` Hannes Frederic Sowa
2013-11-02 13:37   ` Florent Fourcot

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).