]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
RDMA/efa: Add checksum support for admin responses
authorYonatan Nachum <ynachum@amazon.com>
Thu, 9 Apr 2026 07:49:05 +0000 (07:49 +0000)
committerLeon Romanovsky <leon@kernel.org>
Mon, 18 May 2026 08:58:41 +0000 (04:58 -0400)
commit7de165740ce8d006cbe80bca9d8207ba05a4cfc5
treebb0d6705f38d79eeb09cd02b4a3e6ddf779a1205
parentc67bd973695c33f448a2789de5da765c04a78c71
RDMA/efa: Add checksum support for admin responses

EFA devices added support for CRC16 checksum on admin responses and to
expose it to the driver the API version increased to 0.2. Add a check
for support on device init and if supported validate the checksum on
each admin response the driver receives. If the checksum validation
failed, drop the CQE.

Add the CRC16 module to Kconfig to have the in-tree dependency.

Reviewed-by: Firas Jahjah <firasj@amazon.com>
Reviewed-by: Michael Margolin <mrgolin@amazon.com>
Signed-off-by: Yonatan Nachum <ynachum@amazon.com>
Link: https://patch.msgid.link/20260409074905.3126023-1-ynachum@amazon.com
Signed-off-by: Leon Romanovsky <leon@kernel.org>
drivers/infiniband/hw/efa/Kconfig
drivers/infiniband/hw/efa/efa_admin_cmds_defs.h
drivers/infiniband/hw/efa/efa_admin_defs.h
drivers/infiniband/hw/efa/efa_com.c
drivers/infiniband/hw/efa/efa_com.h