net: add SKB_HEAD_ALIGN() helper
authorEric Dumazet <edumazet@google.com>
Mon, 6 Feb 2023 17:31:00 +0000 (17:31 +0000)
committerJakub Kicinski <kuba@kernel.org>
Tue, 7 Feb 2023 18:59:48 +0000 (10:59 -0800)
commit115f1a5c42bdad9a9ea356fc0b4a39ec7537947f
tree3940b5e63f565d6c5430d370a427d7f82031cd68
parent61d731e6538dc44abf2dca6e77098ec6e85f7cc2
net: add SKB_HEAD_ALIGN() helper

We have many places using this expression:

 SKB_DATA_ALIGN(sizeof(struct skb_shared_info))

Use of SKB_HEAD_ALIGN() will allow to clean them.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Acked-by: Soheil Hassas Yeganeh <soheil@google.com>
Acked-by: Paolo Abeni <pabeni@redhat.com>
Reviewed-by: Alexander Duyck <alexanderduyck@fb.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/linux/skbuff.h
net/core/skbuff.c