Skip to content

Commit

Permalink
pinctrl: Skip deleted mac bindings in run_buffered_binding().
Browse files Browse the repository at this point in the history
There's no real point to try to send any buffered packets for these MAC
bindings, they're stale anyway.

Fixes: bbd5e0d ("controller: improve buffered packets management")
Signed-off-by: Dumitru Ceara <dceara@redhat.com>
Acked-by: Ales Musil <amusil@redhat.com>
(cherry picked from commit b2902f4)
  • Loading branch information
dceara committed Nov 4, 2024
1 parent 8579859 commit ea35347
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions controller/pinctrl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit ea35347

Please sign in to comment.