]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: airoha: Reserve RX headroom to avoid skb reallocation
authorLorenzo Bianconi <lorenzo@kernel.org>
Wed, 13 May 2026 15:03:59 +0000 (17:03 +0200)
committerJakub Kicinski <kuba@kernel.org>
Sat, 16 May 2026 00:25:08 +0000 (17:25 -0700)
commitbbfb1983944f2eaa8ee192e0f7b59ecc0fda9981
tree0373df37338d06be5ee3d033ff8afea32858a3cd
parent55834f0d742172b5cbc177cac88010b97bff4897
net: airoha: Reserve RX headroom to avoid skb reallocation

Reserve NET_SKB_PAD + NET_IP_ALIGN bytes of headroom for received packets
to avoid skb head reallocation when pushing protocol headers into the skb.

Tested-by: Xuegang Lu <xuegang.lu@airoha.com>
Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Link: https://patch.msgid.link/20260513-airoha-rx-headroom-v1-1-bd87798e422d@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/airoha/airoha_eth.c
drivers/net/ethernet/airoha/airoha_eth.h