mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 11:46:19 +00:00
[BNX2]: Fix Xen problem.
This fixes the problem of not receiving packets in the Xen bridging environment. The Xen script sets the device's MAC address to FE:FF:FF:FF:FF:FF and puts the device in promiscuous mode. The firmware had problem receiving all packets in this configuration. New firmware and setting the PROM_VLAN bit when in promiscuous mode will fix this problem. Signed-off-by: Michael Chan <mchan@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
bb22f58087
commit
7510873d86
2 changed files with 691 additions and 381 deletions
|
@ -2040,7 +2040,8 @@ bnx2_set_rx_mode(struct net_device *dev)
|
|||
if (dev->flags & IFF_PROMISC) {
|
||||
/* Promiscuous mode. */
|
||||
rx_mode |= BNX2_EMAC_RX_MODE_PROMISCUOUS;
|
||||
sort_mode |= BNX2_RPM_SORT_USER0_PROM_EN;
|
||||
sort_mode |= BNX2_RPM_SORT_USER0_PROM_EN |
|
||||
BNX2_RPM_SORT_USER0_PROM_VLAN;
|
||||
}
|
||||
else if (dev->flags & IFF_ALLMULTI) {
|
||||
for (i = 0; i < NUM_MC_HASH_REGISTERS; i++) {
|
||||
|
|
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue