OSDN Git Service

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)
commitd072c88c28e1e2c886681bbb0f1748b8e6ff105f
treece3a98515c37491dbaf4056cfc470e1944e24500
parente782f5bad3c87c9e237a8bf0dcaf022bb489cc33
net: ethernet: ti: cpsw: drop CPSW_HEADROOM define

Since commit 1771afd47430 ("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