net: lan966x: Add define IFH_LEN_BYTES
authorHoratiu Vultur <horatiu.vultur@microchip.com>
Wed, 9 Nov 2022 20:46:10 +0000 (21:46 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 11 Nov 2022 10:49:34 +0000 (10:49 +0000)
commite83163b66a37501cc11ba1c53e018f8236e87a2c
treef95eaed3a488b4cff6d4b4d6b43df1f17ba1955d
parent42ba9654acad33efe34e5125fb373889f46a3f1c
net: lan966x: Add define IFH_LEN_BYTES

The total length of IFH(inter frame header) in bytes is calculated as
IFH_LEN * sizeof(u32). Because IFH_LEN describes the length in words
and not in bytes. As the length of IFH in bytes is used quite often,
add a define for this. This is just to simplify the things.

Signed-off-by: Horatiu Vultur <horatiu.vultur@microchip.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/microchip/lan966x/lan966x_fdma.c
drivers/net/ethernet/microchip/lan966x/lan966x_ifh.h
drivers/net/ethernet/microchip/lan966x/lan966x_main.c