diff options
author | Hadar Hen Zion <hadarh@mellanox.com> | 2013-01-30 18:07:09 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-01-31 12:48:47 -0500 |
commit | 23537b732f5dd9c917767419272aeb65cc4b8cfd (patch) | |
tree | db8b3f67a283122a364d1f6176be6eb58969a12f /drivers/net/ethernet/mellanox/mlx4/mlx4.h | |
parent | 0d256c0e93916f416f46d2ec235ea05fca202ede (diff) |
net/mlx4_core: Use firmware driven flow steering hash mode
The Firmware dynamically changes flow steering hash configuration from covering
L2 only to "full" L2/L3/L4 mode needed. The dynamic change allows the driver
to set hard coded hash configuration which is changed by the firmware from L2
to L2/L3/L4 when attaching the first L3/L4 flow steering rule and back to L2
when there are no more such rules.
Signed-off-by: Hadar Hen Zion <hadarh@mellanox.com>
Signed-off-by: Amir Vadai <amirv@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlx4/mlx4.h')
-rw-r--r-- | drivers/net/ethernet/mellanox/mlx4/mlx4.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx4/mlx4.h b/drivers/net/ethernet/mellanox/mlx4/mlx4.h index 326384846648..172daaa29a9e 100644 --- a/drivers/net/ethernet/mellanox/mlx4/mlx4.h +++ b/drivers/net/ethernet/mellanox/mlx4/mlx4.h | |||
@@ -60,11 +60,6 @@ | |||
60 | #define MLX4_FS_MGM_LOG_ENTRY_SIZE 7 | 60 | #define MLX4_FS_MGM_LOG_ENTRY_SIZE 7 |
61 | #define MLX4_FS_NUM_MCG (1 << 17) | 61 | #define MLX4_FS_NUM_MCG (1 << 17) |
62 | 62 | ||
63 | enum { | ||
64 | MLX4_FS_L2_HASH = 0, | ||
65 | MLX4_FS_L2_L3_L4_HASH, | ||
66 | }; | ||
67 | |||
68 | #define MLX4_NUM_UP 8 | 63 | #define MLX4_NUM_UP 8 |
69 | #define MLX4_NUM_TC 8 | 64 | #define MLX4_NUM_TC 8 |
70 | #define MLX4_RATELIMIT_UNITS 3 /* 100 Mbps */ | 65 | #define MLX4_RATELIMIT_UNITS 3 /* 100 Mbps */ |