net/mlx4: Add RSS support for fragmented IP datagrams
authorIdo Shamay <idos@mellanox.com>
Thu, 2 Apr 2015 13:31:06 +0000 (16:31 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 2 Apr 2015 20:24:50 +0000 (16:24 -0400)
commit802f42a8d99254b8602bf65cc50e8333bf479f13
treed8adf14aa8b1f97fcb91141e778a381cd8852a0c
parent9f0d34bc344889c2e6c593bd949d7ab821f0f4a5
net/mlx4: Add RSS support for fragmented IP datagrams

Enable RSS support for fragmented IP packets, when device supports it.
Until now, fragmented IP packets were directed only to the default_qpn.
Since IP fragments (datagram) have no upper protocols (L3 IP packets),
hash is performed on 3-tuple - dst MAC, source IP and dest IP. The HW
makes sure that this holds for the 1st fragment too, so all fragments
go to the same QP.

Signed-off-by: Ido Shamay <idos@mellanox.com>
Signed-off-by: Or Gerlitz <ogerlitz@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
include/linux/mlx4/device.h