diff options
author | Amir Vadai <amirv@mellanox.com> | 2014-02-25 18:17:52 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-02-26 15:38:07 -0500 |
commit | ca9f9f703950e5cb300526549b4f1b0a6605a5c5 (patch) | |
tree | fea8185e34cc0c359b70a23d174d8725cdfea066 /drivers/net/ethernet/mellanox | |
parent | 76a066f2a2a0268b565459c417b59724b5a3197b (diff) | |
download | linux-ca9f9f703950e5cb300526549b4f1b0a6605a5c5.tar.bz2 |
net/mlx4_en: Fix bad use of dev_id
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>
Diffstat (limited to 'drivers/net/ethernet/mellanox')
-rw-r--r-- | drivers/net/ethernet/mellanox/mlx4/en_netdev.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx4/en_netdev.c b/drivers/net/ethernet/mellanox/mlx4/en_netdev.c index caa488a286f0..2c0823bf3e05 100644 --- 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; /* |