OSDN Git Service

net: emaclite: Remove custom BUFFER_ALIGN macro
authorShravya Kumbham <shravya.kumbham@xilinx.com>
Thu, 14 Apr 2022 12:37:11 +0000 (18:07 +0530)
committerDavid S. Miller <davem@davemloft.net>
Fri, 15 Apr 2022 10:46:29 +0000 (11:46 +0100)
commit7240bf6fb216e03fb9add3a3dd23117ad589a0c7
treedcdd2bc5aed3c52572c6875243cefd6a0bb473a0
parent7ae7d494f626a2f1a598fcf15b789a347c2d451a
net: emaclite: Remove custom BUFFER_ALIGN macro

BUFFER_ALIGN macro is used to calculate the number of bytes
required for the next alignment. Instead of this, we can directly
use the skb_reserve(skb, NET_IP_ALIGN) to make the protocol header
buffer aligned on at least a 4-byte boundary, where the NET_IP_ALIGN
is by default defined as 2. So removing the BUFFER_ALIGN and its
related defines which it can be done by the skb_reserve() itself.

Signed-off-by: Shravya Kumbham <shravya.kumbham@xilinx.com>
Signed-off-by: Radhey Shyam Pandey <radhey.shyam.pandey@xilinx.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/xilinx/xilinx_emaclite.c