]> git.baikalelectronics.ru Git - kernel.git/commit
net: ethernet: ti: cpsw: drop CPSW_HEADROOM define
authorGrygorii Strashko <grygorii.strashko@ti.com>
Fri, 8 Apr 2022 13:48:38 +0000 (16:48 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 11 Apr 2022 11:27:33 +0000 (12:27 +0100)
commit6e7696b8a7c0828a708246cb68c053521eb60b9c
treece3a98515c37491dbaf4056cfc470e1944e24500
parent41f00764a61a14a7d59bc4e259443e5a8b6fe893
net: ethernet: ti: cpsw: drop CPSW_HEADROOM define

Since commit e978a9a0decf ("net: cpsw: avoid alignment faults by taking
NET_IP_ALIGN into account") the TI CPSW driver was switched to use correct
define CPSW_HEADROOM_NA to avoid alignment faults, but there are two places
left where CPSW_HEADROOM is still used (without causing issues).

Hence, completely drop CPSW_HEADROOM define and use CPSW_HEADROOM_NA
everywhere to avoid further mistakes in code.

Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ti/cpsw.c
drivers/net/ethernet/ti/cpsw_new.c
drivers/net/ethernet/ti/cpsw_priv.h