Skip to content

Commit

Permalink
e1000: Properly retain promisc flag
Browse files Browse the repository at this point in the history
From Franco:
The iflib rewrite forced the promisc flag but it was not reported
to the system.  Noticed on a stock VM that went into unsolicited
promisc mode when dhclient was started during bootup.

PR:		248869
Submitted by:	Franco Fichtner <franco@opnsense.org>
Reviewed by:	erj@
MFC after:	3 days
  • Loading branch information
ricera committed Sep 15, 2020
1 parent 632a0fb commit e12efc2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sys/dev/e1000/if_em.c
Original file line number Diff line number Diff line change
Expand Up @@ -1342,7 +1342,7 @@ em_if_init(if_ctx_t ctx)
}

/* Don't lose promiscuous settings */
em_if_set_promisc(ctx, IFF_PROMISC);
em_if_set_promisc(ctx, if_getflags(ifp));
e1000_clear_hw_cntrs_base_generic(&adapter->hw);

/* MSI-X configuration for 82574 */
Expand Down

0 comments on commit e12efc2

Please sign in to comment.