[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20130614150624.GA1316@fedora-17-guest.blr.amer.dell.com>
Date: Fri, 14 Jun 2013 08:06:54 -0700
From: <Narendra_K@...l.com>
To: <netdev@...r.kernel.org>
CC: <ogerlitz@...lanox.com>, <bhutchings@...arflare.com>
Subject: [RFC PATCH net-next] mlx4_en: Do not set dev_id to port number
Port number should not be stored in dev_id. 'dev_id' field was
intended to be used to differentiate between multiple devices
which share the same MAC address.
Signed-off-by: Narendra K <narendra_k@...l.com>
---
drivers/net/ethernet/mellanox/mlx4/en_netdev.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/net/ethernet/mellanox/mlx4/en_netdev.c b/drivers/net/ethernet/mellanox/mlx4/en_netdev.c
index ade276c..ca618e0 100644
--- a/drivers/net/ethernet/mellanox/mlx4/en_netdev.c
+++ b/drivers/net/ethernet/mellanox/mlx4/en_netdev.c
@@ -2138,7 +2138,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;
/*
* Initialize driver private data
--
1.8.0.1
--
With regards,
Narendra K
Linux Engineering
Dell Inc.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists