mlx5_mode 2223 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c static int esw_mode_from_devlink(u16 mode, u16 *mlx5_mode) mlx5_mode 2227 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c *mlx5_mode = MLX5_ESWITCH_LEGACY; mlx5_mode 2230 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c *mlx5_mode = MLX5_ESWITCH_OFFLOADS; mlx5_mode 2239 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c static int esw_mode_to_devlink(u16 mlx5_mode, u16 *mode) mlx5_mode 2241 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c switch (mlx5_mode) { mlx5_mode 2255 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c static int esw_inline_mode_from_devlink(u8 mode, u8 *mlx5_mode) mlx5_mode 2259 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c *mlx5_mode = MLX5_INLINE_MODE_NONE; mlx5_mode 2262 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c *mlx5_mode = MLX5_INLINE_MODE_L2; mlx5_mode 2265 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c *mlx5_mode = MLX5_INLINE_MODE_IP; mlx5_mode 2268 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c *mlx5_mode = MLX5_INLINE_MODE_TCP_UDP; mlx5_mode 2277 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c static int esw_inline_mode_to_devlink(u8 mlx5_mode, u8 *mode) mlx5_mode 2279 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c switch (mlx5_mode) { mlx5_mode 2320 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c u16 cur_mlx5_mode, mlx5_mode = 0; mlx5_mode 2329 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c if (esw_mode_from_devlink(mode, &mlx5_mode)) mlx5_mode 2332 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c if (cur_mlx5_mode == mlx5_mode) mlx5_mode 2361 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c u8 mlx5_mode; mlx5_mode 2385 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c err = esw_inline_mode_from_devlink(mode, &mlx5_mode); mlx5_mode 2390 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c err = mlx5_modify_nic_vport_min_inline(dev, vport, mlx5_mode); mlx5_mode 2398 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c esw->offloads.inline_mode = mlx5_mode; mlx5_mode 2426 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c u8 prev_mlx5_mode, mlx5_mode = MLX5_INLINE_MODE_L2; mlx5_mode 2438 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c mlx5_mode = MLX5_INLINE_MODE_NONE; mlx5_mode 2441 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c mlx5_mode = MLX5_INLINE_MODE_L2; mlx5_mode 2450 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c mlx5_query_nic_vport_min_inline(dev, vport, &mlx5_mode); mlx5_mode 2451 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c if (prev_mlx5_mode != mlx5_mode) mlx5_mode 2453 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c prev_mlx5_mode = mlx5_mode; mlx5_mode 2457 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c *mode = mlx5_mode;