OSDN Git Service
(root)
/
sagit-ice-cold
/
kernel_xiaomi_msm8998.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3f85944
)
net/mlx4_en: Expose port number through sysfs
author
Amir Vadai
<amirv@mellanox.com>
Tue, 25 Feb 2014 16:17:51 +0000
(18:17 +0200)
committer
David S. Miller
<davem@davemloft.net>
Wed, 26 Feb 2014 20:38:06 +0000
(15:38 -0500)
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>
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
fad4531
..
caa488a
100644
(file)
--- a/
drivers/net/ethernet/mellanox/mlx4/en_netdev.c
+++ b/
drivers/net/ethernet/mellanox/mlx4/en_netdev.c
@@
-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