]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9bf45288f6da882b49a17e203562c2edcd31147e
treedcdd2bc5aed3c52572c6875243cefd6a0bb473a0
parente160a094341037ff500f63af42f95aa8a0c2f96a
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