Skip to content

Commit

Permalink
net: aquantia: reapply vlan filters on up
Browse files Browse the repository at this point in the history
In case of device reconfiguration the driver may reset the device invisible
for other modules, vlan module in particular. So vlans will not be
removed&created and vlan filters will not be configured in the device.
The patch reapplies the vlan filters at device start.

Fixes: 7975d2a ("net: aquantia: add support of rx-vlan-filter offload")
Signed-off-by: Dmitry Bogdanov <[email protected]>
Signed-off-by: Igor Russkikh <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
logost authored and davem330 committed Sep 1, 2019
1 parent 392349f commit c2ef057
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions drivers/net/ethernet/aquantia/atlantic/aq_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,10 @@ static int aq_ndev_open(struct net_device *ndev)
if (err < 0)
goto err_exit;

err = aq_filters_vlans_update(aq_nic);
if (err < 0)
goto err_exit;

err = aq_nic_start(aq_nic);
if (err < 0)
goto err_exit;
Expand Down

0 comments on commit c2ef057

Please sign in to comment.