]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit - drivers/net/ethernet/mellanox/mlx5/core/en_tc.c
net/mlx5e: Distinguish nic and esw offload in tc setup block cb
authorRoi Dayan <roid@nvidia.com>
Wed, 16 Sep 2020 07:10:56 +0000 (10:10 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Tue, 16 Mar 2021 23:48:38 +0000 (16:48 -0700)
commitec9457a6f64af41bb2b295efa34992903b0768a9
tree2b665a1dc32ae239dc00ea2b5c0e4d95ed584c9e
parent1aa48ca6aa9fe7d59b853d2edd295e0486547700
net/mlx5e: Distinguish nic and esw offload in tc setup block cb

We will re-use the native NIC port net device instance for the Uplink
representor, hence same ndos will be used.
Now we need to distinguish in the TC callback if the mode is legacy or
switchdev and set the proper flag.

Signed-off-by: Roi Dayan <roid@nvidia.com>
Reviewed-by: Saeed Mahameed <saeedm@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c