Commit fb7c179f authored by Igor Russkikh's avatar Igor Russkikh Committed by Greg Kroah-Hartman

net: aquantia: fixed enable unicast on 32 macvlan

[ Upstream commit bfaa9f85 ]

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: 94b3b542 ("net: aquantia: vlan unicast address list correct handling")
Signed-off-by: default avatarIgor Russkikh <igor.russkikh@aquantia.com>
Tested-by: default avatarNikita Danilov <nikita.danilov@aquantia.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 0d70766b
...@@ -590,7 +590,7 @@ int aq_nic_set_multicast_list(struct aq_nic_s *self, struct net_device *ndev) ...@@ -590,7 +590,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; packet_filter |= IFF_MULTICAST;
self->mc_list.count = i; self->mc_list.count = i;
self->aq_hw_ops->hw_multicast_list_set(self->aq_hw, self->aq_hw_ops->hw_multicast_list_set(self->aq_hw,
......
Markdown is supported
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