mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-05-06 23:33:43 +00:00
net/mlx4_en: Expose port number through sysfs
Initialize dev_port with port number (0 based) to be accessed through sysfs from user space. Signed-off-by: Amir Vadai <amirv@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
3f85944fe2
commit
76a066f2a2
1 changed files with 1 additions and 0 deletions
|
@ -2342,6 +2342,7 @@ int mlx4_en_init_netdev(struct mlx4_en_dev *mdev, int port,
|
|||
|
||||
SET_NETDEV_DEV(dev, &mdev->dev->pdev->dev);
|
||||
dev->dev_id = port - 1;
|
||||
dev->dev_port = port - 1;
|
||||
|
||||
/*
|
||||
* Initialize driver private data
|
||||
|
|
Loading…
Add table
Reference in a new issue