be2net: fix to restore vlan ids into BE2 during a IF DOWN->UP cycle

Previous thread: dm9000: locking bugfix by Linux Kernel Mailing List on Monday, March 23, 2009 - 10:00 am. (1 message)

Next thread: net: update dnet.c for bus_id removal by Linux Kernel Mailing List on Monday, March 23, 2009 - 10:00 am. (1 message)
From: Linux Kernel Mailing List
Date: Monday, March 23, 2009 - 10:00 am

Gitweb:     http://git.kernel.org/linus/1ab1ab7543de53c945ea24140409ef67ed173eb4
Commit:     1ab1ab7543de53c945ea24140409ef67ed173eb4
Parent:     ea1dae11e0baca5d633207fe50fc3cd30a5d68ee
Author:     Sathya Perla <sathyap@serverengines.com>
AuthorDate: Thu Mar 19 23:56:46 2009 -0700
Committer:  David S. Miller <davem@davemloft.net>
CommitDate: Thu Mar 19 23:56:46 2009 -0700

    be2net: fix to restore vlan ids into BE2 during a IF DOWN->UP cycle
    
    This is a patch to reconfigure vlan-ids during an i/f down/up cycle
    
    Signed-off-by: Sathya Perla <sathyap@serverengines.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>
---
 drivers/net/benet/be_main.c |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/drivers/net/benet/be_main.c b/drivers/net/benet/be_main.c
index 80fe1e0..0ecaffb 100644
--- a/drivers/net/benet/be_main.c
+++ b/drivers/net/benet/be_main.c
@@ -473,7 +473,7 @@ static int be_change_mtu(struct net_device *netdev, int new_mtu)
  * program them in BE.  If more than BE_NUM_VLANS_SUPPORTED are configured,
  * set the BE in promiscuous VLAN mode.
  */
-static void be_vids_config(struct net_device *netdev)
+static void be_vid_config(struct net_device *netdev)
 {
 	struct be_adapter *adapter = netdev_priv(netdev);
 	u16 vtag[BE_NUM_VLANS_SUPPORTED];
@@ -516,7 +516,7 @@ static void be_vlan_add_vid(struct net_device *netdev, u16 vid)
 	adapter->num_vlans++;
 	adapter->vlan_tag[vid] = 1;
 
-	be_vids_config(netdev);
+	be_vid_config(netdev);
 }
 
 static void be_vlan_rem_vid(struct net_device *netdev, u16 vid)
@@ -527,7 +527,7 @@ static void be_vlan_rem_vid(struct net_device *netdev, u16 vid)
 	adapter->vlan_tag[vid] = 0;
 
 	vlan_group_set_device(adapter->vlan_grp, vid, NULL);
-	be_vids_config(netdev);
+	be_vid_config(netdev);
 }
 
 static void be_set_multicast_filter(struct net_device *netdev)
@@ -1430,6 +1430,8 @@ static int be_open(struct net_device *netdev)
 	if (status != 0)
 		goto do_none;
 ...
Previous thread: dm9000: locking bugfix by Linux Kernel Mailing List on Monday, March 23, 2009 - 10:00 am. (1 message)

Next thread: net: update dnet.c for bus_id removal by Linux Kernel Mailing List on Monday, March 23, 2009 - 10:00 am. (1 message)