Commit adf0ac34 authored by Kevin Bowling's avatar Kevin Bowling
Browse files

e1000: Update mc filter before RCTL flags

Update mc filter array before changing RCTL flags as in 5a3eb620

Approved by:	grehan

(cherry picked from commit 07ede751)
parent fc3ef237
......@@ -1723,6 +1723,9 @@ em_if_multi_set(if_ctx_t ctx)
if_multiaddr_array(ifp, mta, &mcnt, MAX_NUM_MULTICAST_ADDRESSES);
if (mcnt < MAX_NUM_MULTICAST_ADDRESSES)
e1000_update_mc_addr_list(&sc->hw, mta, mcnt);
reg_rctl = E1000_READ_REG(&sc->hw, E1000_RCTL);
if (if_getflags(ifp) & IFF_PROMISC)
......@@ -1736,9 +1739,6 @@ em_if_multi_set(if_ctx_t ctx)
E1000_WRITE_REG(&sc->hw, E1000_RCTL, reg_rctl);
if (mcnt < MAX_NUM_MULTICAST_ADDRESSES)
e1000_update_mc_addr_list(&sc->hw, mta, mcnt);
if (sc->hw.mac.type == e1000_82542 &&
sc->hw.revision_id == E1000_REVISION_2) {
reg_rctl = E1000_READ_REG(&sc->hw, E1000_RCTL);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment