diff options
author | Dmitry Bogdanov <dmitry.bogdanov@aquantia.com> | 2019-08-30 15:08:35 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-09-01 05:07:11 +0300 |
commit | c2ef057ee775e229d3138add59f937d93a3a59d8 (patch) | |
tree | a429fcf413694d349d3a2ca603dbfb5ec4a364c6 /drivers | |
parent | 392349f60110dc2c3daf86464fd926afc53d6143 (diff) | |
download | linux-c2ef057ee775e229d3138add59f937d93a3a59d8.tar.xz |
net: aquantia: reapply vlan filters on up
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: 7975d2aff5afb ("net: aquantia: add support of rx-vlan-filter offload")
Signed-off-by: Dmitry Bogdanov <dmitry.bogdanov@aquantia.com>
Signed-off-by: Igor Russkikh <igor.russkikh@aquantia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/ethernet/aquantia/atlantic/aq_main.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/ethernet/aquantia/atlantic/aq_main.c b/drivers/net/ethernet/aquantia/atlantic/aq_main.c index 100722ad5c2d..b4a0fb281e69 100644 --- a/drivers/net/ethernet/aquantia/atlantic/aq_main.c +++ b/drivers/net/ethernet/aquantia/atlantic/aq_main.c @@ -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; |