]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx4_core: Use firmware driven flow steering hash mode
authorHadar Hen Zion <hadarh@mellanox.com>
Wed, 30 Jan 2013 23:07:09 +0000 (23:07 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 31 Jan 2013 17:48:47 +0000 (12:48 -0500)
commit37e4600f136ab29e4abf6e1dc63fc7b127252668
treedb8b3f67a283122a364d1f6176be6eb58969a12f
parentdf444ed1f6d3808ed24ce6cd054b5925b698848a
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>
drivers/net/ethernet/mellanox/mlx4/fw.c
drivers/net/ethernet/mellanox/mlx4/fw.h
drivers/net/ethernet/mellanox/mlx4/main.c
drivers/net/ethernet/mellanox/mlx4/mlx4.h