diff options
author | Roi Dayan <roid@mellanox.com> | 2016-11-23 00:09:59 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-11-25 00:01:14 +0300 |
commit | bffaa916588ebb065cfa0287195d9ad35612eecf (patch) | |
tree | fbe323c870f5a35eb8403e488e1575d398aef8ac /drivers/net/ethernet/mellanox/mlx5/core/eswitch.c | |
parent | 34e4e99078667d30f71a50c1e5181e4270e9d8bb (diff) | |
download | linux-bffaa916588ebb065cfa0287195d9ad35612eecf.tar.xz |
net/mlx5: E-Switch, Add control for inline mode
Implement devlink show and set of HW inline-mode.
The supported modes: none, link, network, transport.
We currently support one mode for all vports so set is done on all vports.
When eswitch is first initialized the inline-mode is queried from the FW.
Signed-off-by: Roi Dayan <roid@mellanox.com>
Reviewed-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlx5/core/eswitch.c')
-rw-r--r-- | drivers/net/ethernet/mellanox/mlx5/core/eswitch.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/eswitch.c b/drivers/net/ethernet/mellanox/mlx5/core/eswitch.c index 9734ac89826e..d6807c3cc461 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/eswitch.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/eswitch.c @@ -1798,6 +1798,7 @@ int mlx5_eswitch_init(struct mlx5_core_dev *dev) esw->total_vports = total_vports; esw->enabled_vports = 0; esw->mode = SRIOV_NONE; + esw->offloads.inline_mode = MLX5_INLINE_MODE_NONE; dev->priv.eswitch = esw; return 0; |