Skip to contentSkip to conversation

be2net: Fix to allow VLAN configuration on VF interfaces.

PATCH In review Ajit Khaparde 1 participant 1 message Sep 27, 2013

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 5/7 be2net: Fix to allow VLAN configuration on VF interfaces.

Now the VF interfaces have privilege to add VLANs. Allow VLANs to be configured on these interfaces.

---
 drivers/net/ethernet/emulex/benet/be_main.c | 9 ---------
 1 file changed, 9 deletions(-)
drivers/net/ethernet/emulex/benet/be_main.c +0 -9
index 2962d2f..9c25607 100644
@@ -1055,10 +1055,6 @@ static int be_vlan_add_vid(struct net_device *netdev, __be16 proto, u16 vid)
 	struct be_adapter *adapter = netdev_priv(netdev);
 	int status = 0;
 
-	if (!lancer_chip(adapter) && !be_physfn(adapter)) {
-		status = -EINVAL;
-		goto ret;
-	}
 
 	/* Packets with VID 0 are always received by Lancer by default */
 	if (lancer_chip(adapter) && vid == 0)
@@ -1081,11 +1077,6 @@ static int be_vlan_rem_vid(struct net_device *netdev, __be16 proto, u16 vid)
 	struct be_adapter *adapter = netdev_priv(netdev);
 	int status = 0;
 
-	if (!lancer_chip(adapter) && !be_physfn(adapter)) {
-		status = -EINVAL;
-		goto ret;
-	}
-
 	/* Packets with VID 0 are always received by Lancer by default */
 	if (lancer_chip(adapter) && vid == 0)
 		goto ret;
Signature · 1 line
1.8.1.2