[Intel-wired-lan] [PATCH iwl-next v10 08/14] igc: use FIELD_PREP and GENMASK for existing RX packet buffer size
Mor Bar-Gabay
morx.bar.gabay at intel.com
Thu Mar 27 05:59:37 PDT 2025
On 18/03/2025 5:07, Faizal Rahim wrote:
> Prepare for an upcoming patch that modifies the RX buffer size in TSN mode.
> Refactor IGC_RXPBSIZE_EXP_BMC_DEFAULT and IGC_RXPBS_CFG_TS_EN using
> FIELD_PREP and GENMASK to improve clarity and maintainability. Refactor
> both macros for consistency, even though the upcoming patch only use
> IGC_RXPBSIZE_EXP_BMC_DEFAULT.
>
> The newly introduced macros follow the naming from the i226 SW User Manual
> for easy reference.
>
> I've tested IGC_RXPBSIZE_EXP_BMC_DEFAULT and IGC_RXPBS_CFG_TS_EN before
> and after the refactoring, and their values remain unchanged.
>
> Reviewed-by: Vladimir Oltean <vladimir.oltean at nxp.com>
> Signed-off-by: Faizal Rahim <faizal.abdul.rahim at linux.intel.com>
> ---
> drivers/net/ethernet/intel/igc/igc_defines.h | 17 ++++++++++++++---
> 1 file changed, 14 insertions(+), 3 deletions(-)
>
Tested-by: Mor Bar-Gabay <morx.bar.gabay at intel.com>
More information about the linux-arm-kernel
mailing list