nvethernet: Fix crash on VLAN filter update

Issue:
Observed crash during the VLAN filter
when the interface is down.

Fix:
Don’t update the VLAN filter if the
interface is not running.

Bug 200765532

Change-Id: I3dc87fd856b2389aabc9552685103c5bc60fdacf
Signed-off-by: Mohan Thadikamalla <mohant@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2583630
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
Mohan Thadikamalla
2021-08-26 15:37:04 +05:30
committed by Revanth Kumar Uppala
parent d93210ee62
commit 2a68302c12

View File

@@ -3760,6 +3760,10 @@ static int ether_vlan_rx_add_vid(struct net_device *ndev, __be16 vlan_proto,
struct osi_ioctl ioctl_data = {};
int ret = -1;
if (!netif_running(ndev)) {
return 0;
}
if (pdata->vlan_hash_filtering == OSI_HASH_FILTER_MODE) {
dev_err(pdata->dev,
"HASH FILTERING for VLAN tag is not supported in SW\n");