]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: E-Switch, Prevent ingress rate configuration of uplink rep
authorEli Cohen <eli@mellanox.com>
Sun, 12 Jan 2020 11:43:37 +0000 (13:43 +0200)
committerSaeed Mahameed <saeedm@mellanox.com>
Fri, 24 Jan 2020 20:04:27 +0000 (12:04 -0800)
commit26ab2fba5fd0943ed9da23d7d5249f859739dc11
tree06db5cd4185f6eb5bfcd456c28d66578108af82f
parent9c8d41f266ddbcc7040e2a205932af63f9e62d06
net/mlx5: E-Switch, Prevent ingress rate configuration of uplink rep

Since the implementation relies on limiting the VF transmit rate to
simulate ingress rate limiting, and since either uplink representor or
ecpf are not associated with a VF, we limit the rate limit configuration
for those ports.

Fixes: 3686582e3078 ("net/mlx5: E-Switch, add ingress rate support")
Signed-off-by: Eli Cohen <eli@mellanox.com>
Reviewed-by: Roi Dayan <roid@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c