android_kernel_oneplus_msm8998/include/linux/mlx5
Jesper Dangaard Brouer b23f1c33a2 mlx5: fix bug reading rss_hash_type from CQE
[ Upstream commit 12e8b570e732eaa5eae3a2895ba3fbcf91bde2b4 ]

Masks for extracting part of the Completion Queue Entry (CQE)
field rss_hash_type was swapped, namely CQE_RSS_HTYPE_IP and
CQE_RSS_HTYPE_L4.

The bug resulted in setting skb->l4_hash, even-though the
rss_hash_type indicated that hash was NOT computed over the
L4 (UDP or TCP) part of the packet.

Added comments from the datasheet, to make it more clear what
these masks are selecting.

Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com>
Acked-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-04-13 19:50:10 +02:00
..
cmd.h net/mlx5_core: Fix Mellanox copyright note 2015-04-02 16:33:42 -04:00
cq.h net/mlx5_core: Fix trimming down IRQ number 2016-01-31 11:29:01 -08:00
device.h mlx5: fix bug reading rss_hash_type from CQE 2018-04-13 19:50:10 +02:00
doorbell.h net/mlx5_core: Fix Mellanox copyright note 2015-04-02 16:33:42 -04:00
driver.h net/mlx5e: Device's mtu field is u16 and not int 2016-05-18 17:06:36 -07:00
flow_table.h net/mlx5: Ethernet resource handling files 2015-05-30 18:24:39 -07:00
mlx5_ifc.h net/mlx5e: Added self loopback prevention 2015-11-15 18:43:40 -05:00
qp.h IB/mlx5: Fix post send fence logic 2016-08-20 18:09:25 +02:00
srq.h net/mlx5_core: Fix Mellanox copyright note 2015-04-02 16:33:42 -04:00
vport.h net/mlx5_core: Fix static checker warnings around system guid query flow 2015-06-07 20:11:17 -07:00