netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH iproute2] link_gre6: really support encaplimit option
@ 2017-06-14 16:45 Nicolas Dichtel
  2017-06-14 20:31 ` Stephen Hemminger
  0 siblings, 1 reply; 4+ messages in thread
From: Nicolas Dichtel @ 2017-06-14 16:45 UTC (permalink / raw)
  To: stephen; +Cc: netdev, Nicolas Dichtel

This option is documented in gre6 help, but was not supported.

Fixes: af89576d7a8c ("iproute2: GRE over IPv6 tunnel support.")
Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
---
 ip/link_gre6.c | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/ip/link_gre6.c b/ip/link_gre6.c
index 205bada78054..4d3d4b54210b 100644
--- a/ip/link_gre6.c
+++ b/ip/link_gre6.c
@@ -355,6 +355,18 @@ get_failed:
 					invarg("invalid fwmark\n", *argv);
 				flags &= ~IP6_TNL_F_USE_ORIG_FWMARK;
 			}
+		} else if (strcmp(*argv, "encaplimit") == 0) {
+			NEXT_ARG();
+			if (strcmp(*argv, "none") == 0) {
+				flags |= IP6_TNL_F_IGN_ENCAP_LIMIT;
+			} else {
+				__u8 uval;
+
+				if (get_u8(&uval, *argv, 0) < -1)
+					invarg("invalid ELIM", *argv);
+				encap_limit = uval;
+				flags &= ~IP6_TNL_F_IGN_ENCAP_LIMIT;
+			}
 		} else
 			usage();
 		argc--; argv++;
-- 
2.8.1

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

* Re: [PATCH iproute2] link_gre6: really support encaplimit option
  2017-06-14 16:45 [PATCH iproute2] link_gre6: really support encaplimit option Nicolas Dichtel
@ 2017-06-14 20:31 ` Stephen Hemminger
  2017-06-15  7:28   ` Nicolas Dichtel
  0 siblings, 1 reply; 4+ messages in thread
From: Stephen Hemminger @ 2017-06-14 20:31 UTC (permalink / raw)
  To: Nicolas Dichtel; +Cc: netdev

On Wed, 14 Jun 2017 18:45:42 +0200
Nicolas Dichtel <nicolas.dichtel@6wind.com> wrote:

> This option is documented in gre6 help, but was not supported.
> 
> Fixes: af89576d7a8c ("iproute2: GRE over IPv6 tunnel support.")
> Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>

Sure applied.

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

* Re: [PATCH iproute2] link_gre6: really support encaplimit option
  2017-06-14 20:31 ` Stephen Hemminger
@ 2017-06-15  7:28   ` Nicolas Dichtel
  2017-06-15 15:33     ` Stephen Hemminger
  0 siblings, 1 reply; 4+ messages in thread
From: Nicolas Dichtel @ 2017-06-15  7:28 UTC (permalink / raw)
  To: Stephen Hemminger; +Cc: netdev

Le 14/06/2017 à 22:31, Stephen Hemminger a écrit :
> On Wed, 14 Jun 2017 18:45:42 +0200
> Nicolas Dichtel <nicolas.dichtel@6wind.com> wrote:
> 
>> This option is documented in gre6 help, but was not supported.
>>
>> Fixes: af89576d7a8c ("iproute2: GRE over IPv6 tunnel support.")
>> Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
> 
> Sure applied.
> 
Thank you. It seems that your iproute2 tree on kernel.org is not up to date, the
last patch has been pushed one week ago.


Regards,
Nicolas

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

* Re: [PATCH iproute2] link_gre6: really support encaplimit option
  2017-06-15  7:28   ` Nicolas Dichtel
@ 2017-06-15 15:33     ` Stephen Hemminger
  0 siblings, 0 replies; 4+ messages in thread
From: Stephen Hemminger @ 2017-06-15 15:33 UTC (permalink / raw)
  To: Nicolas Dichtel; +Cc: netdev

On Thu, 15 Jun 2017 09:28:46 +0200
Nicolas Dichtel <nicolas.dichtel@6wind.com> wrote:

> Le 14/06/2017 à 22:31, Stephen Hemminger a écrit :
> > On Wed, 14 Jun 2017 18:45:42 +0200
> > Nicolas Dichtel <nicolas.dichtel@6wind.com> wrote:
> >   
> >> This option is documented in gre6 help, but was not supported.
> >>
> >> Fixes: af89576d7a8c ("iproute2: GRE over IPv6 tunnel support.")
> >> Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>  
> > 
> > Sure applied.
> >   
> Thank you. It seems that your iproute2 tree on kernel.org is not up to date, the
> last patch has been pushed one week ago.
> 

Updated. Wanted to put in extended ack support but holding off until
for a good test case.

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

end of thread, other threads:[~2017-06-15 15:33 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-06-14 16:45 [PATCH iproute2] link_gre6: really support encaplimit option Nicolas Dichtel
2017-06-14 20:31 ` Stephen Hemminger
2017-06-15  7:28   ` Nicolas Dichtel
2017-06-15 15:33     ` Stephen Hemminger

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