igc: Don't start in promiscious mode by default
The igc driver always sets the promiscious mode during initialization, ignoring what is set in ifp. Fix this by checking the interface flags and setting mode appropriately. Reviewed by: grehan Obtained from: Semihalf Sponsored by: Stormshield MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D36591
This commit is contained in:
parent
b8a083ea32
commit
55760984d5
@ -858,7 +858,7 @@ igc_if_init(if_ctx_t ctx)
|
||||
}
|
||||
|
||||
/* Don't lose promiscuous settings */
|
||||
igc_if_set_promisc(ctx, IFF_PROMISC);
|
||||
igc_if_set_promisc(ctx, if_getflags(ifp));
|
||||
igc_clear_hw_cntrs_base_generic(&adapter->hw);
|
||||
|
||||
if (adapter->intr_type == IFLIB_INTR_MSIX) /* Set up queue routing */
|
||||
|
Loading…
Reference in New Issue
Block a user