From: Jiri Pirko <jiri@resnulli.us>
To: netdev@vger.kernel.org
Cc: davem@davemloft.net, petrm@mellanox.com, idosch@mellanox.com,
mlxsw@mellanox.com
Subject: [patch net 0/2] mlxsw: spectrum: Configure TTL of "inherit" for offloaded tunnels
Date: Fri, 20 Oct 2017 09:16:14 +0200 [thread overview]
Message-ID: <20171020071616.1498-1-jiri@resnulli.us> (raw)
From: Jiri Pirko <jiri@mellanox.com>
Petr says:
Currently mlxsw only offloads tunnels that are configured with TTL of "inherit"
(which is the default). However, Spectrum defaults to 255 and the driver
neglects to change the configuration. Thus the tunnel packets from offloaded
tunnels always have TTL of 255, even though tunnels with explicit TTL of 255 are
never actually offloaded.
To fix this, introduce support for TIGCR, the register that keeps the related
bits of global tunnel configuration, and use it on first offload to properly
configure inheritance of TTL of tunnel packets from overlay packets.
Petr Machata (2):
mlxsw: reg: Add Tunneling IPinIP General Configuration Register
mlxsw: spectrum_router: Configure TIGCR on init
drivers/net/ethernet/mellanox/mlxsw/reg.h | 31 ++++++++++++++++++++++
.../net/ethernet/mellanox/mlxsw/spectrum_router.c | 11 +++++++-
2 files changed, 41 insertions(+), 1 deletion(-)
--
2.9.5
next reply other threads:[~2017-10-20 7:16 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-10-20 7:16 Jiri Pirko [this message]
2017-10-20 7:16 ` [patch net 1/2] mlxsw: reg: Add Tunneling IPinIP General Configuration Register Jiri Pirko
2017-10-20 7:16 ` [patch net 2/2] mlxsw: spectrum_router: Configure TIGCR on init Jiri Pirko
2017-10-22 1:19 ` [patch net 0/2] mlxsw: spectrum: Configure TTL of "inherit" for offloaded tunnels 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=20171020071616.1498-1-jiri@resnulli.us \
--to=jiri@resnulli.us \
--cc=davem@davemloft.net \
--cc=idosch@mellanox.com \
--cc=mlxsw@mellanox.com \
--cc=netdev@vger.kernel.org \
--cc=petrm@mellanox.com \
/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).