aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/intel/igc/igc_main.c
diff options
context:
space:
mode:
authorFaizal Rahim <[email protected]>2025-03-18 03:07:36 +0000
committerTony Nguyen <[email protected]>2025-04-18 15:43:10 +0000
commit9cd87aafc7a88f4107d9f86fc6262d717fd489e8 (patch)
treeead519dc8f31fcbf41de8464facc9e0cdb7029bc /drivers/net/ethernet/intel/igc/igc_main.c
parentigc: optimize TX packet buffer utilization for TSN mode (diff)
downloadkernel-9cd87aafc7a88f4107d9f86fc6262d717fd489e8.tar.gz
kernel-9cd87aafc7a88f4107d9f86fc6262d717fd489e8.zip
igc: use FIELD_PREP and GENMASK for existing RX packet buffer size
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 <[email protected]> Signed-off-by: Faizal Rahim <[email protected]> Tested-by: Mor Bar-Gabay <[email protected]> Signed-off-by: Tony Nguyen <[email protected]>
Diffstat (limited to 'drivers/net/ethernet/intel/igc/igc_main.c')
0 files changed, 0 insertions, 0 deletions