From 30100288ebb848513f00ee68d08823a08de0b893 Mon Sep 17 00:00:00 2001 From: Hangbin Liu Date: Wed, 3 Jul 2024 17:15:13 +0800 Subject: [PATCH] lldp_dcbx_nl: Fix Copy-Paste Typo It should check the RX PGID when configuring RX PG per TC settings. Fixes: da0da5e98508 ("lldpad: dcbx, map PG up2tc config onto hardware limits") Signed-off-by: Hangbin Liu --- lldp_dcbx_nl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lldp_dcbx_nl.c b/lldp_dcbx_nl.c index 0029442..e9cf1a3 100644 --- a/lldp_dcbx_nl.c +++ b/lldp_dcbx_nl.c @@ -709,7 +709,7 @@ int set_hw_pg(char *ifname, pgroup_attribs *pg_data, bool oper_mode) for (i = 0; i < MAX_USER_PRIORITIES; i++) { for (j = 0; j < MAX_TRAFFIC_CLASSES; j++) { - if (pg_temp->tx.up[i].pgid == j) { + if (pg_temp->rx.up[i].pgid == j) { tc[j].up_to_tc_bitmap |= (1 << i); tc[j].prio_type = pg_temp->rx.up[i].strict_priority; tc[j].tc_percent = pg_temp->rx.up[i].percent_of_pg_cap;