> -----Original Message-----
> From: Markus Theil <markus.th...@tu-ilmenau.de>
> Sent: Friday, October 14, 2022 1:36 PM
> To: dev@dpdk.org
> Cc: Yang, Qiming <qiming.y...@intel.com>; Zhang, Qi Z
> <qi.z.zh...@intel.com>; David MacDougal <david.macdou...@gmail.com>
> Subject: [PATCH] net/ice: fix module EEPROM read
>
> From: David MacDougal <david.macdou...@gmail.com>
>
> Fix issue with final word being dropped when retrieving module EEPROM
> data for the ice driver.
>
> Take for simplicity the case when `info->offset` is zero and `info->len` is
> equal to `SFF_READ_BLOCK_SIZE`. In this case, memcpy would not be called
> despite there presumably being room in the buffer (as we have requested 8
> bytes of data and the memcpy would write precisely 8 bytes). The same edge
> case will be hit on the final iteration of the for loop whenever a multiple
> of 8
> bytes is requested, as the final word will not be written to the data buffer.
>
Added:
Fixes: 52569256583a ("net/ice: support module EEPROM")
Cc: sta...@dpdk.org
> Signed-off-by: David MacDougal <david.macdou...@gmail.com>
Acked-by: Qi Zhang <qi.z.zh...@intel.com>
Applied to dpdk-next-net-intel.
Thanks
Qi