Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 132549
b: refs/heads/master
c: 1ab1ab7
h: refs/heads/master
i:
  132547: 8795463
v: v3
  • Loading branch information
Sathya Perla authored and David S. Miller committed Mar 20, 2009
1 parent 5064aac commit 90ffc72
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ea1dae11e0baca5d633207fe50fc3cd30a5d68ee
refs/heads/master: 1ab1ab7543de53c945ea24140409ef67ed173eb4
10 changes: 5 additions & 5 deletions trunk/drivers/net/benet/be_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down Expand Up @@ -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)
Expand All @@ -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)
Expand Down Expand Up @@ -1430,6 +1430,8 @@ static int be_open(struct net_device *netdev)
if (status != 0)
goto do_none;

be_vid_config(netdev);

status = be_cmd_set_flow_control(ctrl, true, true);
if (status != 0)
goto if_destroy;
Expand Down Expand Up @@ -1864,8 +1866,6 @@ static int be_resume(struct pci_dev *pdev)
pci_set_power_state(pdev, 0);
pci_restore_state(pdev);

be_vids_config(netdev);

if (netif_running(netdev)) {
rtnl_lock();
be_open(netdev);
Expand Down

0 comments on commit 90ffc72

Please sign in to comment.