Skip to content

Commit 392349f

Browse files
logostdavem330
authored andcommitted
net: aquantia: fix limit of vlan filters
Fix a limit condition of vlans on the interface before setting vlan promiscuous mode Fixes: 48dd73d ("net: aquantia: fix vlans not working over bridged network") Signed-off-by: Dmitry Bogdanov <[email protected]> Signed-off-by: Igor Russkikh <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 6fdc060 commit 392349f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/ethernet/aquantia/atlantic/aq_filters.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -844,7 +844,7 @@ int aq_filters_vlans_update(struct aq_nic_s *aq_nic)
844844
return err;
845845

846846
if (aq_nic->ndev->features & NETIF_F_HW_VLAN_CTAG_FILTER) {
847-
if (hweight < AQ_VLAN_MAX_FILTERS && hweight > 0) {
847+
if (hweight <= AQ_VLAN_MAX_FILTERS && hweight > 0) {
848848
err = aq_hw_ops->hw_filter_vlan_ctrl(aq_hw,
849849
!(aq_nic->packet_filter & IFF_PROMISC));
850850
aq_nic->aq_nic_cfg.is_vlan_force_promisc = false;

0 commit comments

Comments
 (0)