You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
59 lines
2.1 KiB
59 lines
2.1 KiB
From a5c0c1565d8c1a0284297a0a757bdbd9e4bace22 Mon Sep 17 00:00:00 2001
|
|
From: Alaa Hleihel <ahleihel@redhat.com>
|
|
Date: Sun, 10 May 2020 14:52:44 -0400
|
|
Subject: [PATCH 068/312] [netdrv] net/mlx5e: Fix ingress rate configuration
|
|
for representors
|
|
|
|
Message-id: <20200510145245.10054-82-ahleihel@redhat.com>
|
|
Patchwork-id: 306622
|
|
Patchwork-instance: patchwork
|
|
O-Subject: [RHEL8.3 BZ 1789378 v2 81/82] net/mlx5e: Fix ingress rate configuration for representors
|
|
Bugzilla: 1789378
|
|
RH-Acked-by: Kamal Heib <kheib@redhat.com>
|
|
RH-Acked-by: Jarod Wilson <jarod@redhat.com>
|
|
RH-Acked-by: Tony Camuso <tcamuso@redhat.com>
|
|
RH-Acked-by: Jonathan Toppins <jtoppins@redhat.com>
|
|
|
|
Bugzilla: http://bugzilla.redhat.com/1789378
|
|
Upstream: v5.4
|
|
|
|
commit 7b83355f6df9ead2f8c4b06c105505a2999f5dc1
|
|
Author: Eli Cohen <eli@mellanox.com>
|
|
Date: Thu Nov 7 09:07:34 2019 +0200
|
|
|
|
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>
|
|
|
|
Signed-off-by: Alaa Hleihel <ahleihel@redhat.com>
|
|
Signed-off-by: Frantisek Hrbata <fhrbata@redhat.com>
|
|
---
|
|
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c | 3 +--
|
|
1 file changed, 1 insertion(+), 2 deletions(-)
|
|
|
|
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en_tc.c b/drivers/net/ethernet/mellanox/mlx5/core/en_tc.c
|
|
index ac372993c9d8..ece33ff718a4 100644
|
|
--- a/drivers/net/ethernet/mellanox/mlx5/core/en_tc.c
|
|
+++ b/drivers/net/ethernet/mellanox/mlx5/core/en_tc.c
|
|
@@ -4003,9 +4003,8 @@ int mlx5e_tc_configure_matchall(struct mlx5e_priv *priv,
|
|
struct tc_cls_matchall_offload *ma)
|
|
{
|
|
struct netlink_ext_ack *extack = ma->common.extack;
|
|
- int prio = TC_H_MAJ(ma->common.prio) >> 16;
|
|
|
|
- if (prio != 1) {
|
|
+ if (ma->common.prio != 1) {
|
|
NL_SET_ERR_MSG_MOD(extack, "only priority 1 is supported");
|
|
return -EINVAL;
|
|
}
|
|
--
|
|
2.13.6
|
|
|