Repository navigation
Commit 158ec85
net/mlx5: E-Switch, Fix resetting of encap mode when entering switchdev
[ Upstream commit d7751d6 ]
E-Switch encap mode is relevant only when in switchdev mode.
The RDMA driver can query the encap configuration via
mlx5_eswitch_get_encap_mode(). Make sure it returns the currently
used mode and not the set one.
This reverts the cited commit which reset the encap mode
on entering switchdev and fixes the original issue properly.
Fixes: 9a64144 ("net/mlx5: E-Switch, Fix default encap mode")
Signed-off-by: Paul Blakey <paulb@nvidia.com>
Reviewed-by: Mark Bloch <mbloch@nvidia.com>
Reviewed-by: Maor Dickman <maord@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>1 parent a49a9b9 commit 158ec85
3 files changed
Lines changed: 9 additions & 11 deletions
File tree
- drivers/net/ethernet/mellanox/mlx5/core
- include/linux/mlx5
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1572 | 1572 | | |
1573 | 1573 | | |
1574 | 1574 | | |
| 1575 | + | |
| 1576 | + | |
| 1577 | + | |
| 1578 | + | |
| 1579 | + | |
1575 | 1580 | | |
1576 | 1581 | | |
1577 | 1582 | | |
| |||
1934 | 1939 | | |
1935 | 1940 | | |
1936 | 1941 | | |
1937 | | - | |
| 1942 | + | |
1938 | 1943 | | |
1939 | 1944 | | |
1940 | 1945 | | |
| |||
1948 | 1953 | | |
1949 | 1954 | | |
1950 | 1955 | | |
1951 | | - | |
| 1956 | + | |
1952 | 1957 | | |
1953 | 1958 | | |
1954 | 1959 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3141 | 3141 | | |
3142 | 3142 | | |
3143 | 3143 | | |
3144 | | - | |
3145 | | - | |
3146 | | - | |
3147 | | - | |
3148 | | - | |
3149 | | - | |
3150 | 3144 | | |
3151 | 3145 | | |
3152 | 3146 | | |
| |||
3244 | 3238 | | |
3245 | 3239 | | |
3246 | 3240 | | |
3247 | | - | |
3248 | 3241 | | |
3249 | 3242 | | |
3250 | 3243 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
136 | 136 | | |
137 | 137 | | |
138 | 138 | | |
139 | | - | |
| 139 | + | |
140 | 140 | | |
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
144 | 144 | | |
145 | | - | |
| 145 | + | |
146 | 146 | | |
147 | 147 | | |
148 | 148 | | |
| |||
0 commit comments