________________________________________
From: Christophe JAILLET <redacted>
Sent: Tuesday, October 29, 2024 10:19 AM
To: Robert Joslyn; linux-kernel@vger.kernel.org; netdev@vger.kernel.org
Cc: lee@kernel.org
Subject: Re: [RFC PATCH 2/2] net: selpcimac: Add driver for SEL PCIe network adapter
[Caution - External]
Le 28/10/2024 à 23:35, Robert Joslyn a écrit :
quoted
Add support for SEL FPGA based network adapters. The network device is
implemented as an FPGA IP core and enumerated by the selpvmf driver.
This is used on multiple devices, including:
- SEL-3350 mainboard
- SEL-3390E4 card
- SEL-3390T card
Signed-off-by: Robert Joslyn <redacted>
---
Hi,
a few nitpicks below, should it help.
...
quoted
+
+ WARN_ON_ONCE((ring->dma % SEL_DATA_ALIGN) != 0);
+
+ memset(ring->desc, 0, ring->size);
If I recollect correctly, dma_alloc_coherent() returns some zeroed memory.
You're right, I walked through that code and it does a memset to zero internally.
CJ
Thanks for taking a look, I'll work these suggestions into the next patch set.
Robert