Skip to content

Commit 4b23058

Browse files
Rasesh Modydavem330
authored andcommitted
bna: Clear Driver Config Flags When HW Resets
Driver configuration flags are retained across open/stop operations preventing configurations to be set in next open/stop. Setting MTU on a 1020 causes network to fail until a reboot is performed on the host. Clear the flags when configuration resets in hardware. Signed-off-by: Rasesh Mody <rmody@brocade.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 0b8bf1b commit 4b23058

File tree

1 file changed

+3
-0
lines changed
  • drivers/net/ethernet/brocade/bna

1 file changed

+3
-0
lines changed

drivers/net/ethernet/brocade/bna/bnad.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2624,6 +2624,9 @@ bnad_stop(struct net_device *netdev)
26242624
bnad_destroy_tx(bnad, 0);
26252625
bnad_destroy_rx(bnad, 0);
26262626

2627+
/* These config flags are cleared in the hardware */
2628+
bnad->cfg_flags &= ~(BNAD_CF_ALLMULTI | BNAD_CF_PROMISC);
2629+
26272630
/* Synchronize mailbox IRQ */
26282631
bnad_mbox_irq_sync(bnad);
26292632

0 commit comments

Comments
 (0)