projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3e24a65
)
net/mlx4_en: Hardware accelerated 802.1ad works only on the first port
author
Amir Vadai
<amirv@mellanox.com>
Tue, 28 Jul 2015 10:19:19 +0000
(13:19 +0300)
committer
David S. Miller
<davem@davemloft.net>
Wed, 29 Jul 2015 19:21:56 +0000
(12:21 -0700)
Fix mistakenly used, hard coded, port number in get_phv_bit()
Fixes: 77fc29c ("net/mlx4_core: Preparations for 802.1ad VLAN support")
Signed-off-by: Amir Vadai <amirv@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/fw.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/mellanox/mlx4/fw.c
b/drivers/net/ethernet/mellanox/mlx4/fw.c
index 5a1c3d249530d6f49d8e89133b78297d38fe95fd..e8ec1dec5789a8d80499e8c478e4822567480284 100644
(file)
--- a/
drivers/net/ethernet/mellanox/mlx4/fw.c
+++ b/
drivers/net/ethernet/mellanox/mlx4/fw.c
@@
-2815,7
+2815,7
@@
int get_phv_bit(struct mlx4_dev *dev, u8 port, int *phv)
struct mlx4_func_cap func_cap;
memset(&func_cap, 0, sizeof(func_cap));
- err = mlx4_QUERY_FUNC_CAP(dev,
1
, &func_cap);
+ err = mlx4_QUERY_FUNC_CAP(dev,
port
, &func_cap);
if (!err)
*phv = func_cap.flags & QUERY_FUNC_CAP_PHV_BIT;
return err;