|
|
d8f823 |
From a5c0c1565d8c1a0284297a0a757bdbd9e4bace22 Mon Sep 17 00:00:00 2001
|
|
|
d8f823 |
From: Alaa Hleihel <ahleihel@redhat.com>
|
|
|
d8f823 |
Date: Sun, 10 May 2020 14:52:44 -0400
|
|
|
d8f823 |
Subject: [PATCH 068/312] [netdrv] net/mlx5e: Fix ingress rate configuration
|
|
|
d8f823 |
for representors
|
|
|
d8f823 |
|
|
|
d8f823 |
Message-id: <20200510145245.10054-82-ahleihel@redhat.com>
|
|
|
d8f823 |
Patchwork-id: 306622
|
|
|
d8f823 |
Patchwork-instance: patchwork
|
|
|
d8f823 |
O-Subject: [RHEL8.3 BZ 1789378 v2 81/82] net/mlx5e: Fix ingress rate configuration for representors
|
|
|
d8f823 |
Bugzilla: 1789378
|
|
|
d8f823 |
RH-Acked-by: Kamal Heib <kheib@redhat.com>
|
|
|
d8f823 |
RH-Acked-by: Jarod Wilson <jarod@redhat.com>
|
|
|
d8f823 |
RH-Acked-by: Tony Camuso <tcamuso@redhat.com>
|
|
|
d8f823 |
RH-Acked-by: Jonathan Toppins <jtoppins@redhat.com>
|
|
|
d8f823 |
|
|
|
d8f823 |
Bugzilla: http://bugzilla.redhat.com/1789378
|
|
|
d8f823 |
Upstream: v5.4
|
|
|
d8f823 |
|
|
|
d8f823 |
commit 7b83355f6df9ead2f8c4b06c105505a2999f5dc1
|
|
|
d8f823 |
Author: Eli Cohen <eli@mellanox.com>
|
|
|
d8f823 |
Date: Thu Nov 7 09:07:34 2019 +0200
|
|
|
d8f823 |
|
|
|
d8f823 |
net/mlx5e: Fix ingress rate configuration for representors
|
|
|
d8f823 |
|
|
|
d8f823 |
Current code uses the old method of prio encoding in
|
|
|
d8f823 |
flow_cls_common_offload. Fix to follow the changes introduced in
|
|
|
d8f823 |
commit ef01adae0e43 ("net: sched: use major priority number as hardware priority").
|
|
|
d8f823 |
|
|
|
d8f823 |
Fixes: fcb64c0f5640 ("net/mlx5: E-Switch, add ingress rate support")
|
|
|
d8f823 |
Signed-off-by: Eli Cohen <eli@mellanox.com>
|
|
|
d8f823 |
Reviewed-by: Roi Dayan <roid@mellanox.com>
|
|
|
d8f823 |
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
|
|
|
d8f823 |
|
|
|
d8f823 |
Signed-off-by: Alaa Hleihel <ahleihel@redhat.com>
|
|
|
d8f823 |
Signed-off-by: Frantisek Hrbata <fhrbata@redhat.com>
|
|
|
d8f823 |
---
|
|
|
d8f823 |
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c | 3 +--
|
|
|
d8f823 |
1 file changed, 1 insertion(+), 2 deletions(-)
|
|
|
d8f823 |
|
|
|
d8f823 |
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en_tc.c b/drivers/net/ethernet/mellanox/mlx5/core/en_tc.c
|
|
|
d8f823 |
index ac372993c9d8..ece33ff718a4 100644
|
|
|
d8f823 |
--- a/drivers/net/ethernet/mellanox/mlx5/core/en_tc.c
|
|
|
d8f823 |
+++ b/drivers/net/ethernet/mellanox/mlx5/core/en_tc.c
|
|
|
d8f823 |
@@ -4003,9 +4003,8 @@ int mlx5e_tc_configure_matchall(struct mlx5e_priv *priv,
|
|
|
d8f823 |
struct tc_cls_matchall_offload *ma)
|
|
|
d8f823 |
{
|
|
|
d8f823 |
struct netlink_ext_ack *extack = ma->common.extack;
|
|
|
d8f823 |
- int prio = TC_H_MAJ(ma->common.prio) >> 16;
|
|
|
d8f823 |
|
|
|
d8f823 |
- if (prio != 1) {
|
|
|
d8f823 |
+ if (ma->common.prio != 1) {
|
|
|
d8f823 |
NL_SET_ERR_MSG_MOD(extack, "only priority 1 is supported");
|
|
|
d8f823 |
return -EINVAL;
|
|
|
d8f823 |
}
|
|
|
d8f823 |
--
|
|
|
d8f823 |
2.13.6
|
|
|
d8f823 |
|