HomeFreeBSD

LinuxKPI: skbuff: handle dev_alloc_skb() correctly

Description

LinuxKPI: skbuff: handle dev_alloc_skb() correctly

dev_alloc_skb() comapred to alloc_skb() reserves some headroom
at the beginning of the skb which is used by drivers.
Split the code for the two cases and reserve NET_SKB_PAD space,
which should at least be 32 octets.

Sponsored by: The FreeBSD Foundation

(cherry picked from commit 9df5f29caf1a818999d0e908cab95c83bd1f4323)

Details

Provenance
bzAuthored on Apr 7 2022, 6:06 PM
Parents
rG46d08fd085dc: LinuxKPI: PCI: add counter for linux_dma_map_phys_common() errors
Branches
Unknown
Tags
Unknown