]> 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)
commitc16d769280b2bcc02fa952426e689e25a1c33bf6
tree06db5cd4185f6eb5bfcd456c28d66578108af82f
parent8053a97956bf5a355e3f3e55cf4f376506724f38
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: 3823a0e63990 ("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