netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net 0/3] mlxsw: Handle changes to MTU in GRE tunnels
@ 2018-03-22 17:53 Ido Schimmel
  2018-03-22 17:53 ` [PATCH net 1/3] ip_tunnel: Emit events for post-register MTU changes Ido Schimmel
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Ido Schimmel @ 2018-03-22 17:53 UTC (permalink / raw)
  To: netdev; +Cc: davem, jiri, lucien.xin, mlxsw, Ido Schimmel

Petr says:

When offloading GRE tunnels, the MTU setting is kept fixed after the
initial offload even as the slow-path configuration changed. Worse: the
offloaded MTU setting is actually just a transient value set at the time
of NETDEV_REGISTER of the tunnel. As of commit ffc2b6ee4174 ("ip_gre:
fix IFLA_MTU ignored on NEWLINK"), that transient value is zero, and
unless there's e.g. a VRF migration that prompts re-offload, it stays at
zero, and all GRE packets end up trapping.

Thus, in patch #1, change the way the MTU is changed post-registration,
so that the full event protocol is observed. That way the drivers get to
see the change and have a chance to react.

In the remaining two patches, implement support for MTU change in mlxsw
driver.

Petr Machata (3):
  ip_tunnel: Emit events for post-register MTU changes
  mlxsw: spectrum_router: Move mlxsw_sp_rif_ipip_lb_op()
  mlxsw: spectrum_router: Handle MTU change of GRE netdevs

 .../net/ethernet/mellanox/mlxsw/spectrum_router.c  | 78 ++++++++++++++--------
 net/ipv4/ip_tunnel.c                               | 26 ++++++--
 2 files changed, 72 insertions(+), 32 deletions(-)

-- 
2.14.3

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

end of thread, other threads:[~2018-03-23 16:56 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-03-22 17:53 [PATCH net 0/3] mlxsw: Handle changes to MTU in GRE tunnels Ido Schimmel
2018-03-22 17:53 ` [PATCH net 1/3] ip_tunnel: Emit events for post-register MTU changes Ido Schimmel
2018-03-22 17:53 ` [PATCH net 2/3] mlxsw: spectrum_router: Move mlxsw_sp_rif_ipip_lb_op() Ido Schimmel
2018-03-22 17:53 ` [PATCH net 3/3] mlxsw: spectrum_router: Handle MTU change of GRE netdevs Ido Schimmel
2018-03-23 16:56 ` [PATCH net 0/3] mlxsw: Handle changes to MTU in GRE tunnels 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).