net/mlx5e: Fix ingress rate configuration for representors
authorEli Cohen <eli@mellanox.com>
Thu, 7 Nov 2019 07:07:34 +0000 (09:07 +0200)
committerSaeed Mahameed <saeedm@mellanox.com>
Wed, 20 Nov 2019 20:33:04 +0000 (12:33 -0800)
commit7b83355f6df9ead2f8c4b06c105505a2999f5dc1
treed4c823ec08c0807c61dd63687394208b630f853b
parenta86db2269fca8019074b720baf2e0a35cddac4e9
net/mlx5e: Fix ingress rate configuration for representors

Current code uses the old method of prio encoding in
flow_cls_common_offload. Fix to follow the changes introduced in
commit ef01adae0e43 ("net: sched: use major priority number as hardware priority").

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