Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 213946
b: refs/heads/master
c: d7e1a48
h: refs/heads/master
v: v3
  • Loading branch information
Yevgeny Petrilin authored and David S. Miller committed Aug 24, 2010
1 parent 509c75f commit 45fbb07
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: bc081cecf3cb3da236061cf353d74c42ba7e37fb
refs/heads/master: d7e1a487d31933deba742c1bd3ffe0f73220b729
6 changes: 6 additions & 0 deletions trunk/drivers/net/mlx4/en_netdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -513,6 +513,10 @@ static void mlx4_en_do_get_stats(struct work_struct *work)

queue_delayed_work(mdev->workqueue, &priv->stats_task, STATS_DELAY);
}
if (mdev->mac_removed[MLX4_MAX_PORTS + 1 - priv->port]) {
queue_work(mdev->workqueue, &priv->mac_task);
mdev->mac_removed[MLX4_MAX_PORTS + 1 - priv->port] = 0;
}
mutex_unlock(&mdev->state_lock);
}

Expand Down Expand Up @@ -653,6 +657,7 @@ int mlx4_en_start_port(struct net_device *dev)
en_err(priv, "Failed setting port mac\n");
goto tx_err;
}
mdev->mac_removed[priv->port] = 0;

/* Init port */
en_dbg(HW, priv, "Initializing port\n");
Expand Down Expand Up @@ -709,6 +714,7 @@ void mlx4_en_stop_port(struct net_device *dev)

/* Unregister Mac address for the port */
mlx4_unregister_mac(mdev->dev, priv->port, priv->mac_index);
mdev->mac_removed[priv->port] = 1;

/* Free TX Rings */
for (i = 0; i < priv->tx_ring_num; i++) {
Expand Down
1 change: 1 addition & 0 deletions trunk/drivers/net/mlx4/mlx4_en.h
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,7 @@ struct mlx4_en_dev {
struct mlx4_mr mr;
u32 priv_pdn;
spinlock_t uar_lock;
u8 mac_removed[MLX4_MAX_PORTS + 1];
};


Expand Down

0 comments on commit 45fbb07

Please sign in to comment.