kni: use netdev_alloc_skb
authorStephen Hemminger <stephen@networkplumber.org>
Mon, 24 Jun 2019 16:47:07 +0000 (09:47 -0700)
committerThomas Monjalon <thomas@monjalon.net>
Mon, 15 Jul 2019 17:13:52 +0000 (19:13 +0200)
commite842379fb543907eedc2de5f7820518c127af18d
tree4b0bad55f5020855922a0f23aa26daaeb6b34ad7
parent5a94f5b9400b3bb5a076ca1b3f332318bb9acdb7
kni: use netdev_alloc_skb

netdev_alloc_skb is optimized to any alignment or setup
of skb->dev that is required. The kernel has chosen to not pad
packets on x86 (for many years), because it is faster.

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Acked-by: Ferruh Yigit <ferruh.yigit@intel.com>
kernel/linux/kni/kni_net.c