aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/mlx4/en_selftest.c
diff options
context:
space:
mode:
authorOr Gerlitz <ogerlitz@mellanox.com>2011-07-07 15:19:29 -0400
committerRoland Dreier <roland@purestorage.com>2011-07-19 00:04:32 -0400
commitccf863219675aa86bebdd6a2806acb8176478e37 (patch)
tree3ef252eb9b51ae6beb0ce0fbe1babdada8ceefb3 /drivers/net/mlx4/en_selftest.c
parent52eafc68d601afd699b023201b0c6be5209f39ce (diff)
mlx4_core: Read extended capabilities into the flags field
Query another dword containing up to 32 extended device capabilities and merge it into struct mlx4_caps.flags. Update the code that handles the current extended device capabilities (e.g UDP RSS, WoL, vep steering, etc) to use the extended device cap flags field instead of a field per extended capability. Initial patch done by Eli Cohen <eli@mellanox.co.il>. Signed-off-by: Or Gerlitz <ogerlitz@mellanox.co.il> Signed-off-by: Roland Dreier <roland@purestorage.com>
Diffstat (limited to 'drivers/net/mlx4/en_selftest.c')
-rw-r--r--drivers/net/mlx4/en_selftest.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/mlx4/en_selftest.c b/drivers/net/mlx4/en_selftest.c
index 191a8dcd8a93..9fdbcecd499d 100644
--- a/drivers/net/mlx4/en_selftest.c
+++ b/drivers/net/mlx4/en_selftest.c
@@ -159,7 +159,8 @@ retry_tx:
159 goto retry_tx; 159 goto retry_tx;
160 } 160 }
161 161
162 if (priv->mdev->dev->caps.loopback_support){ 162 if (priv->mdev->dev->caps.flags &
163 MLX4_DEV_CAP_FLAG_UC_LOOPBACK) {
163 buf[3] = mlx4_en_test_registers(priv); 164 buf[3] = mlx4_en_test_registers(priv);
164 buf[4] = mlx4_en_test_loopback(priv); 165 buf[4] = mlx4_en_test_loopback(priv);
165 } 166 }