]> asedeno.scripts.mit.edu Git - linux.git/commit
RDMA/mlx4: Redo TX checksum offload in line with docs
authorEugene Crosser <evgenii.cherkashin@profitbricks.com>
Thu, 19 Dec 2019 13:48:47 +0000 (15:48 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Fri, 3 Jan 2020 20:37:58 +0000 (16:37 -0400)
commit3593f69c55c53de6e2de8799e4892b8c795f3713
treed91113c5183ebbeadd68b7b7594c1f0be7289596
parent4d6e8a033f7c6665c7ca5c5cdcf66019baa4b7a2
RDMA/mlx4: Redo TX checksum offload in line with docs

Ingress checksum offload was not working for IPv6 frames because the
conditional expression that checks validation status passed from the
hardware was not matching the algorithm described in the documentation.

This patch defines L4_CSUM flag (which falls inside the badfcs_enc field
in the existing definition of the CQE layout) and replaces the conditional
expression with the one defined in the "ConnectX(r) Family Programmer's
Manual" document.

Link: https://lore.kernel.org/r/20191219134847.413582-1-leon@kernel.org
Signed-off-by: Eugene Crosser <evgenii.cherkashin@profitbricks.com>
Reviewed-by: Jack Wang <jinpu.wang@profitbricks.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/mlx4/cq.c
include/linux/mlx4/cq.h