Thread (26 messages) 26 messages, 2 authors, 2025-03-27

Re: [Intel-wired-lan] [PATCH iwl-next v10 06/14] igc: use FIELD_PREP and GENMASK for existing TX packet buffer size

From: Mor Bar-Gabay <hidden>
Date: 2025-03-27 12:58:01
Also in: bpf, intel-wired-lan, linux-arm-kernel, lkml

On 18/03/2025 5:07, Faizal Rahim wrote:
In preparation for an upcoming patch that will modify the TX buffer size
in  TSN mode, replace IGC_TXPBSIZE_TSN and IGC_TXPBSIZE_DEFAULT
implementation with new macros that utilizes FIELD_PREP and GENMASK for
clarity.

The newly introduced macros follow the naming from the i226 SW User Manual
for easy reference.

I've tested IGC_TXPBSIZE_TSN and IGC_TXPBSIZE_DEFAULT before and after the
refactoring, and their values remain unchanged.

Reviewed-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: Faizal Rahim <redacted>
---
  drivers/net/ethernet/intel/igc/igc_defines.h | 23 ++++++++++++++++++--
  1 file changed, 21 insertions(+), 2 deletions(-)
Tested-by: Mor Bar-Gabay <redacted>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help