]> 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)
commit3f4207380b250c3410c35c39c885932fe51e53dc
treedcdd2bc5aed3c52572c6875243cefd6a0bb473a0
parent853ec0ded7e1a59149ef2a584f057dd0f36b3985
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