Commit 62cbbf8
Guillaume Nault
net: Fix netns for ip_tunnel_init_flow()
JIRA: https://issues.redhat.com/browse/RHEL-73391
Upstream Status: linux.git
Conflicts:
* Missing upstream commit ac931d4 ("ipip,ip_tunnel,sit: Add FOU
support for externally controlled ipip devices"):
No "if (!tunnel_hlen)" in ip_md_tunnel_xmit() in RHEL 9.
* Missing upstream commit e7191e5 ("ipv4: ip_tunnel: Unmask upper
DSCP bits in ip_tunnel_bind_dev()"):
RHEL 9 still uses RT_TOS() in ip_tunnel_bind_dev(), instead of just
masking the ECN bits with INET_DSCP_MASK.
* Missing upstream commit c34cfe7 ("ipv4: ip_tunnel: Unmask upper
DSCP bits in ip_md_tunnel_xmit()"):
RHEL 9 still uses RT_TOS() in ip_md_tunnel_xmit(), instead of just
masking the ECN bits with INET_DSCP_MASK.
* Missing upstream commit c2b639f ("ipv4: ip_tunnel: Unmask upper
DSCP bits in ip_tunnel_xmit()"):
RHEL 9 still uses RT_TOS() in ip_tunnel_xmit(), instead of just
masking the ECN bits with INET_DSCP_MASK.
commit b5a7b66
Author: Xiao Liang <shaw.leon@gmail.com>
Date: Thu Dec 19 21:03:36 2024 +0800
net: Fix netns for ip_tunnel_init_flow()
The device denoted by tunnel->parms.link resides in the underlay net
namespace. Therefore pass tunnel->net to ip_tunnel_init_flow().
Fixes: db53cd3 ("net: Handle l3mdev in ip_tunnel_init_flow")
Signed-off-by: Xiao Liang <shaw.leon@gmail.com>
Reviewed-by: Ido Schimmel <idosch@nvidia.com>
Link: https://patch.msgid.link/20241219130336.103839-1-shaw.leon@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Guillaume Nault <gnault@redhat.com>1 parent 4b871f4 commit 62cbbf8
File tree
2 files changed
+4
-5
lines changed- drivers/net/ethernet/mellanox/mlxsw
- net/ipv4
2 files changed
+4
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
423 | 423 | | |
424 | 424 | | |
425 | 425 | | |
426 | | - | |
427 | | - | |
| 426 | + | |
428 | 427 | | |
429 | 428 | | |
430 | 429 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
293 | 293 | | |
294 | 294 | | |
295 | 295 | | |
296 | | - | |
| 296 | + | |
297 | 297 | | |
298 | 298 | | |
299 | 299 | | |
| |||
596 | 596 | | |
597 | 597 | | |
598 | 598 | | |
599 | | - | |
| 599 | + | |
600 | 600 | | |
601 | 601 | | |
602 | 602 | | |
| |||
755 | 755 | | |
756 | 756 | | |
757 | 757 | | |
758 | | - | |
| 758 | + | |
759 | 759 | | |
760 | 760 | | |
761 | 761 | | |
| |||
0 commit comments