summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Russkikh <Igor.Russkikh@aquantia.com>2018-11-09 11:53:59 +0000
committerDavid S. Miller <davem@davemloft.net>2018-11-09 15:38:10 -0800
commitbfaa9f8553d5c20703781e63f4fc8cb4792f18fd (patch)
tree9e416f72656582408286c3769947d06e2423343c
parent7a1bb49461b12b2e6332a4d054256835f45203f3 (diff)
downloadlwn-bfaa9f8553d5c20703781e63f4fc8cb4792f18fd.tar.gz
lwn-bfaa9f8553d5c20703781e63f4fc8cb4792f18fd.zip
net: aquantia: fixed enable unicast on 32 macvlan
Fixed a condition mistake due to which macvlans unicast item number 32 was not added in the unicast filter. The consequence is that when exactly 32 macvlans are created on NIC, the last created macvlan receives no traffic because its MAC was not registered in HW. Fixes: 94b3b542303f ("net: aquantia: vlan unicast address list correct handling") Signed-off-by: Igor Russkikh <igor.russkikh@aquantia.com> Tested-by: Nikita Danilov <nikita.danilov@aquantia.com> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--drivers/net/ethernet/aquantia/atlantic/aq_nic.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/aquantia/atlantic/aq_nic.c b/drivers/net/ethernet/aquantia/atlantic/aq_nic.c
index 0011a3f2f672..b5e7c98f424c 100644
--- a/drivers/net/ethernet/aquantia/atlantic/aq_nic.c
+++ b/drivers/net/ethernet/aquantia/atlantic/aq_nic.c
@@ -600,7 +600,7 @@ int aq_nic_set_multicast_list(struct aq_nic_s *self, struct net_device *ndev)
}
}
- if (i > 0 && i < AQ_HW_MULTICAST_ADDRESS_MAX) {
+ if (i > 0 && i <= AQ_HW_MULTICAST_ADDRESS_MAX) {
packet_filter |= IFF_MULTICAST;
self->mc_list.count = i;
self->aq_hw_ops->hw_multicast_list_set(self->aq_hw,