mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
igc: correctly update RCTL when changing multicast filters.
Fix clearing of bits in RCTL for the non-bpf/non-allmulti case.
Update RCTL after modifying the multicast filter registers as per
the Linux driver.
This fixes LACP on igc interfaces, where incoming LACP multicasti
control packets were being dropped.
Obtained from: Rubicon Communications, LLC ("Netgate")
(cherry picked from commit 5a3eb6207a)
This commit is contained in:
parent
4a36455c41
commit
a4c22552b8
1 changed files with 3 additions and 3 deletions
|
|
@ -1172,12 +1172,12 @@ igc_if_multi_set(if_ctx_t ctx)
|
|||
reg_rctl |= IGC_RCTL_MPE;
|
||||
reg_rctl &= ~IGC_RCTL_UPE;
|
||||
} else
|
||||
reg_rctl = ~(IGC_RCTL_UPE | IGC_RCTL_MPE);
|
||||
|
||||
IGC_WRITE_REG(&adapter->hw, IGC_RCTL, reg_rctl);
|
||||
reg_rctl &= ~(IGC_RCTL_UPE | IGC_RCTL_MPE);
|
||||
|
||||
if (mcnt < MAX_NUM_MULTICAST_ADDRESSES)
|
||||
igc_update_mc_addr_list(&adapter->hw, mta, mcnt);
|
||||
|
||||
IGC_WRITE_REG(&adapter->hw, IGC_RCTL, reg_rctl);
|
||||
}
|
||||
|
||||
/*********************************************************************
|
||||
|
|
|
|||
Loading…
Reference in a new issue