mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-08-30 05:19:04 -04:00
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>
17 lines
503 B
Plaintext
17 lines
503 B
Plaintext
# SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause
|
|
# Copyright 2018-2026 Amazon.com, Inc. or its affiliates. All rights reserved.
|
|
#
|
|
# Amazon fabric device configuration
|
|
#
|
|
|
|
config INFINIBAND_EFA
|
|
tristate "Amazon Elastic Fabric Adapter (EFA) support"
|
|
depends on PCI_MSI && 64BIT && !CPU_BIG_ENDIAN
|
|
depends on INFINIBAND_USER_ACCESS
|
|
select CRC16
|
|
help
|
|
This driver supports Amazon Elastic Fabric Adapter (EFA).
|
|
|
|
To compile this driver as a module, choose M here.
|
|
The module will be called efa.
|