On Fri, 7 Jun 2019 17:19:56 -0700
Stephen Hemminger wrote:
> +++ b/kernel/linux/kni/kni_net.c
> @@ -340,16 +340,13 @@ kni_net_rx_normal(struct kni_dev *kni)
> data_kva = kva2data_kva(kva);
> kni->va[i] = pa2va(kni->pa[i], kva);
>
> - skb = dev_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
---
kernel/linux/kni/kni_net.c | 17 +++--
1 file changed, 3 insertions(+), 1
2 matches
Mail list logo