From: Leon Romanovsky <leon@kernel.org>
To: Yonatan Nachum <ynachum@amazon.com>
Cc: jgg@nvidia.com, linux-rdma@vger.kernel.org, mrgolin@amazon.com,
sleybo@amazon.com, matua@amazon.com, gal.pressman@linux.dev,
Firas Jahjah <firasj@amazon.com>
Subject: Re: [PATCH for-next] RDMA/efa: Add checksum support for admin responses
Date: Mon, 13 Apr 2026 11:35:15 +0300 [thread overview]
Message-ID: <20260413083515.GF21470@unreal> (raw)
In-Reply-To: <20260409074905.3126023-1-ynachum@amazon.com>
On Thu, Apr 09, 2026 at 07:49:05AM +0000, Yonatan Nachum wrote:
> 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>
> ---
> drivers/infiniband/hw/efa/Kconfig | 3 +-
> .../infiniband/hw/efa/efa_admin_cmds_defs.h | 3 --
> drivers/infiniband/hw/efa/efa_admin_defs.h | 15 +++---
> drivers/infiniband/hw/efa/efa_com.c | 50 ++++++++++++++++---
> drivers/infiniband/hw/efa/efa_com.h | 4 +-
> 5 files changed, 55 insertions(+), 20 deletions(-)
<...>
> -#define EFA_ADMIN_API_VERSION_MAJOR 0
> -#define EFA_ADMIN_API_VERSION_MINOR 1
<...>
> +#define EFA_ADMIN_API_VERSION_MAJOR 0
> +#define EFA_ADMIN_API_VERSION_MINOR 2
<...>
> @@ -954,16 +990,16 @@ int efa_com_validate_version(struct efa_com_dev *edev)
> EFA_GET(&ver, EFA_REGS_VERSION_MAJOR_VERSION),
> EFA_GET(&ver, EFA_REGS_VERSION_MINOR_VERSION));
>
> - EFA_SET(&min_ver, EFA_REGS_VERSION_MAJOR_VERSION,
> - EFA_ADMIN_API_VERSION_MAJOR);
> - EFA_SET(&min_ver, EFA_REGS_VERSION_MINOR_VERSION,
> - EFA_ADMIN_API_VERSION_MINOR);
> + EFA_SET(&min_ver, EFA_REGS_VERSION_MAJOR_VERSION, EFA_MIN_ADMIN_API_VERSION_MAJOR);
> + EFA_SET(&min_ver, EFA_REGS_VERSION_MINOR_VERSION, EFA_MIN_ADMIN_API_VERSION_MINOR);
> if (ver < min_ver) {
> ibdev_err(edev->efa_dev,
> "EFA version is lower than the minimal version the driver supports\n");
> return -EOPNOTSUPP;
> }
This change breaks all backward compatibility. Are you certain that every EFA
device is running the correct firmware, including those currently deployed and
used by customers? If not, they will stop to work after random kernel update.
Thanks
next prev parent reply other threads:[~2026-04-13 8:35 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-04-09 7:49 [PATCH for-next] RDMA/efa: Add checksum support for admin responses Yonatan Nachum
2026-04-13 8:35 ` Leon Romanovsky [this message]
2026-04-13 9:21 ` Yonatan Nachum
2026-04-13 19:08 ` Leon Romanovsky
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260413083515.GF21470@unreal \
--to=leon@kernel.org \
--cc=firasj@amazon.com \
--cc=gal.pressman@linux.dev \
--cc=jgg@nvidia.com \
--cc=linux-rdma@vger.kernel.org \
--cc=matua@amazon.com \
--cc=mrgolin@amazon.com \
--cc=sleybo@amazon.com \
--cc=ynachum@amazon.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox