diff options
author | Grygorii Strashko <grygorii.strashko@ti.com> | 2022-04-08 16:48:38 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-04-11 12:27:33 +0100 |
commit | d072c88c28e1e2c886681bbb0f1748b8e6ff105f (patch) | |
tree | ce3a98515c37491dbaf4056cfc470e1944e24500 /drivers/net/ethernet/ti/cpsw.c | |
parent | e782f5bad3c87c9e237a8bf0dcaf022bb489cc33 (diff) |
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>
Diffstat (limited to 'drivers/net/ethernet/ti/cpsw.c')
-rw-r--r-- | drivers/net/ethernet/ti/cpsw.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/ti/cpsw.c b/drivers/net/ethernet/ti/cpsw.c index 03575c017500..e4edcc8c6889 100644 --- a/drivers/net/ethernet/ti/cpsw.c +++ b/drivers/net/ethernet/ti/cpsw.c @@ -335,7 +335,7 @@ static void cpsw_ndo_set_rx_mode(struct net_device *ndev) static unsigned int cpsw_rxbuf_total_len(unsigned int len) { - len += CPSW_HEADROOM; + len += CPSW_HEADROOM_NA; len += SKB_DATA_ALIGN(sizeof(struct skb_shared_info)); return SKB_DATA_ALIGN(len); |