nvethernet: Clear VLAN tag stripping

Issue:
Observed VLAN ping failure on Linux safety builds.

Fix:
Clear VLAN tag stripping on nvethernet drivers.

Bug 4081795

Change-Id: I08936e2afa1fe1111570cf0cea6aa0cbe463e157
Signed-off-by: Mohan Thadikamalla <mohant@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2891932
Reviewed-by: Bhadram Varka <vbhadram@nvidia.com>
Reviewed-by: Narayan Reddy <narayanr@nvidia.com>
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com>
Reviewed-by: svc-mobile-cert <svc-mobile-cert@nvidia.com>
Reviewed-by: Sumeet Gupta <sumeetg@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
This commit is contained in:
Mohan Thadikamalla
2023-04-21 09:42:52 +05:30
committed by mobile promotions
parent bd325eea20
commit 6129bcc538
2 changed files with 1 additions and 9 deletions

View File

@@ -5982,11 +5982,6 @@ static int ether_parse_dt(struct ether_priv_data *pdata)
}
}
#ifndef OSI_STRIPPED_LIB
/* Enable VLAN strip by default */
osi_core->strip_vlan_tag = OSI_ENABLE;
#endif
ret = ether_parse_phy_dt(pdata, np);
if (ret < 0) {
dev_err(dev, "failed to parse PHY DT\n");
@@ -6236,7 +6231,6 @@ static void ether_set_ndev_features(struct net_device *ndev,
#ifndef OSI_STRIPPED_LIB
/* Rx VLAN tag stripping/filtering enabled by default */
features |= NETIF_F_HW_VLAN_CTAG_RX;
features |= NETIF_F_HW_VLAN_CTAG_FILTER;
#endif /* !OSI_STRIPPED_LIB */