diff options
Diffstat (limited to 'drivers/net/ixgb')
-rw-r--r-- | drivers/net/ixgb/ixgb_main.c | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/drivers/net/ixgb/ixgb_main.c b/drivers/net/ixgb/ixgb_main.c index e83feaf830bd..ec95cd4ea588 100644 --- a/drivers/net/ixgb/ixgb_main.c +++ b/drivers/net/ixgb/ixgb_main.c | |||
@@ -1053,11 +1053,16 @@ ixgb_set_multi(struct net_device *netdev) | |||
1053 | 1053 | ||
1054 | if (netdev->flags & IFF_PROMISC) { | 1054 | if (netdev->flags & IFF_PROMISC) { |
1055 | rctl |= (IXGB_RCTL_UPE | IXGB_RCTL_MPE); | 1055 | rctl |= (IXGB_RCTL_UPE | IXGB_RCTL_MPE); |
1056 | } else if (netdev->flags & IFF_ALLMULTI) { | 1056 | rctl &= ~IXGB_RCTL_VFE; |
1057 | rctl |= IXGB_RCTL_MPE; | ||
1058 | rctl &= ~IXGB_RCTL_UPE; | ||
1059 | } else { | 1057 | } else { |
1060 | rctl &= ~(IXGB_RCTL_UPE | IXGB_RCTL_MPE); | 1058 | if (netdev->flags & IFF_ALLMULTI) { |
1059 | rctl |= IXGB_RCTL_MPE; | ||
1060 | rctl &= ~IXGB_RCTL_UPE; | ||
1061 | } else { | ||
1062 | rctl &= ~(IXGB_RCTL_UPE | IXGB_RCTL_MPE); | ||
1063 | } | ||
1064 | if (adapter->vlgrp) | ||
1065 | rctl |= IXGB_RCTL_VFE; | ||
1061 | } | 1066 | } |
1062 | 1067 | ||
1063 | if (netdev->mc_count > IXGB_MAX_NUM_MULTICAST_ADDRESSES) { | 1068 | if (netdev->mc_count > IXGB_MAX_NUM_MULTICAST_ADDRESSES) { |
@@ -2104,7 +2109,8 @@ ixgb_vlan_rx_register(struct net_device *netdev, struct vlan_group *grp) | |||
2104 | /* enable VLAN receive filtering */ | 2109 | /* enable VLAN receive filtering */ |
2105 | 2110 | ||
2106 | rctl = IXGB_READ_REG(&adapter->hw, RCTL); | 2111 | rctl = IXGB_READ_REG(&adapter->hw, RCTL); |
2107 | rctl |= IXGB_RCTL_VFE; | 2112 | if (!(netdev->flags & IFF_PROMISC)) |
2113 | rctl |= IXGB_RCTL_VFE; | ||
2108 | rctl &= ~IXGB_RCTL_CFIEN; | 2114 | rctl &= ~IXGB_RCTL_CFIEN; |
2109 | IXGB_WRITE_REG(&adapter->hw, RCTL, rctl); | 2115 | IXGB_WRITE_REG(&adapter->hw, RCTL, rctl); |
2110 | } else { | 2116 | } else { |