diff options
author | Or Gerlitz <ogerlitz@mellanox.com> | 2011-11-26 23:54:58 +0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-11-28 02:17:03 +0400 |
commit | 876f6e67d1c617c098c67934a8d00b065bb9688b (patch) | |
tree | 1d66f498806971c4369f6d152046bcb163ee528f /drivers/net/ethernet/mellanox/mlx4/en_resources.c | |
parent | fd4f862717ece652a76b4bb6c6d2c9656dbf0f7e (diff) | |
download | linux-876f6e67d1c617c098c67934a8d00b065bb9688b.tar.xz |
net/mlx4: move RSS related definitions to be global
Towards adding RSS support for IB drivers/application who use
the mlx4 HW, make the RSS related definitions global and change
the mlx4_en driver to use them.
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: Shlomo Pongratz <shlomop@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlx4/en_resources.c')
-rw-r--r-- | drivers/net/ethernet/mellanox/mlx4/en_resources.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx4/en_resources.c b/drivers/net/ethernet/mellanox/mlx4/en_resources.c index 0dfb4ec8a9dd..bcbc54c16947 100644 --- a/drivers/net/ethernet/mellanox/mlx4/en_resources.c +++ b/drivers/net/ethernet/mellanox/mlx4/en_resources.c @@ -44,7 +44,7 @@ void mlx4_en_fill_qp_context(struct mlx4_en_priv *priv, int size, int stride, struct mlx4_en_dev *mdev = priv->mdev; memset(context, 0, sizeof *context); - context->flags = cpu_to_be32(7 << 16 | rss << 13); + context->flags = cpu_to_be32(7 << 16 | rss << MLX4_RSS_QPC_FLAG_OFFSET); context->pd = cpu_to_be32(mdev->priv_pdn); context->mtu_msgmax = 0xff; if (!is_tx && !rss) |