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)
commite401a1848be87123a2b2049addbf21138cb47081
tree06db5cd4185f6eb5bfcd456c28d66578108af82f
parentb850a82114df9b0ec1d191dc64eed1f20a772e0f
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: fcb64c0f5640 ("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