From ea353473209cadb551f4b84793fdddaf6b7c3595 Mon Sep 17 00:00:00 2001 From: Dumitru Ceara Date: Fri, 1 Nov 2024 14:29:26 +0100 Subject: [PATCH] pinctrl: Skip deleted mac bindings in run_buffered_binding(). There's no real point to try to send any buffered packets for these MAC bindings, they're stale anyway. Fixes: bbd5e0d81c16 ("controller: improve buffered packets management") Signed-off-by: Dumitru Ceara Acked-by: Ales Musil (cherry picked from commit b2902f4473808855092f4acde701574d33e351b9) --- controller/pinctrl.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/controller/pinctrl.c b/controller/pinctrl.c index ca880a1da6..dfb2560a97 100644 --- a/controller/pinctrl.c +++ b/controller/pinctrl.c @@ -4957,6 +4957,10 @@ run_buffered_binding(const struct sbrec_mac_binding_table *mac_binding_table, const struct sbrec_mac_binding *smb; SBREC_MAC_BINDING_TABLE_FOR_EACH_TRACKED (smb, mac_binding_table) { + if (sbrec_mac_binding_is_deleted(smb)) { + continue; + } + const struct sbrec_port_binding *pb = lport_lookup_by_name( sbrec_port_binding_by_name, smb->logical_port);