From: Stephen Hemminger <shemminger@vyatta.com>
To: Vincent Bernat <bernat@luffy.cx>
Cc: David Miller <davem@davemloft.net>, netdev@vger.kernel.org
Subject: Re: [PATCH] vxlan: allow a user to set TTL value
Date: Tue, 30 Oct 2012 13:53:34 -0700 [thread overview]
Message-ID: <20121030135334.4707bbd0@nehalam.linuxnetplumber.net> (raw)
In-Reply-To: <1351628836-23094-1-git-send-email-bernat@luffy.cx>
On Tue, 30 Oct 2012 21:27:16 +0100
Vincent Bernat <bernat@luffy.cx> wrote:
> "ip link add ... type vxlan ... ttl X" allows a user to set the TTL
> used by a VXLAN for encapsulation. The provided value was ignored by
> vxlan module and the default value of 1 was used when encapsulating
> multicast packets.
>
> Signed-off-by: Vincent Bernat <bernat@luffy.cx>
> ---
> drivers/net/vxlan.c | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/drivers/net/vxlan.c b/drivers/net/vxlan.c
> index 607976c..030559d 100644
> --- a/drivers/net/vxlan.c
> +++ b/drivers/net/vxlan.c
> @@ -1107,6 +1107,9 @@ static int vxlan_newlink(struct net *net, struct net_device *dev,
> if (data[IFLA_VXLAN_TOS])
> vxlan->tos = nla_get_u8(data[IFLA_VXLAN_TOS]);
>
> + if (data[IFLA_VXLAN_TTL])
> + vxlan->ttl = nla_get_u8(data[IFLA_VXLAN_TTL]);
> +
> if (!data[IFLA_VXLAN_LEARNING] || nla_get_u8(data[IFLA_VXLAN_LEARNING]))
> vxlan->learn = true;
>
Acked-by: Stephen Hemminger <shemminger@vyatta.com>
next prev parent reply other threads:[~2012-10-30 20:54 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-30 20:27 [PATCH] vxlan: allow a user to set TTL value Vincent Bernat
2012-10-30 20:53 ` Stephen Hemminger [this message]
2012-10-30 20:54 ` Stephen Hemminger
2012-11-03 19:25 ` David Miller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20121030135334.4707bbd0@nehalam.linuxnetplumber.net \
--to=shemminger@vyatta.com \
--cc=bernat@luffy.cx \
--cc=davem@davemloft.net \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).