OSDN Git Service
(root)
/
tomoyo
/
tomoyo-test1.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
76a066f
)
net/mlx4_en: Fix bad use of dev_id
author
Amir Vadai
<amirv@mellanox.com>
Tue, 25 Feb 2014 16:17:52 +0000
(18:17 +0200)
committer
David S. Miller
<davem@davemloft.net>
Wed, 26 Feb 2014 20:38:07 +0000
(15:38 -0500)
dev_id should be set for multiple netdev's sharing the same MAC, which
is not the case here.
Signed-off-by: Amir Vadai <amirv@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/en_netdev.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/mellanox/mlx4/en_netdev.c
b/drivers/net/ethernet/mellanox/mlx4/en_netdev.c
index
caa488a
..
2c0823b
100644
(file)
--- a/
drivers/net/ethernet/mellanox/mlx4/en_netdev.c
+++ b/
drivers/net/ethernet/mellanox/mlx4/en_netdev.c
@@
-2341,7
+2341,6
@@
int mlx4_en_init_netdev(struct mlx4_en_dev *mdev, int port,
netif_set_real_num_rx_queues(dev, prof->rx_ring_num);
SET_NETDEV_DEV(dev, &mdev->dev->pdev->dev);
- dev->dev_id = port - 1;
dev->dev_port = port - 1;
/*