search for: __skb_linearize

Displaying 2 results from an estimated 2 matches for "__skb_linearize".

2006 Feb 22
0
Re: [PATCH] Fix IPSec for Xen checksum offload packets (Jon Mason)
...--BLG >- */ >- >-int dev_queue_xmit(struct sk_buff *skb) >-{ >- struct net_device *dev = skb->dev; >- struct Qdisc *q; >- int rc = -ENOMEM; >- >- if (skb_shinfo(skb)->frag_list && >- !(dev->features & NETIF_F_FRAGLIST) && >- __skb_linearize(skb, GFP_ATOMIC)) >- goto out_kfree_skb; >- >- /* Fragmented skb is linearized if device does not support SG, >- * or if at least one of fragments is in highmem and device >- * does not support DMA from it. >- */ >- if (skb_shinfo(skb)->nr_frags && >- (!(d...
2023 Mar 23
0
[PATCH net-next 2/8] virtio_net: mergeable xdp: introduce mergeable_xdp_prepare
...023 15:24:38 +0800, Yunsheng Lin <linyunsheng at huawei.com> wrote: > On 2023/3/23 13:40, Jason Wang wrote: > >>> > >>>> > >>>> Also, it seems better to split the xdp_linearize_page() to two functions > >>>> as pskb_expand_head() and __skb_linearize() do, one to expand the headroom, > >>>> the other one to do the linearizing. > >>> > >>> No skb here. > >> > >> I means following the semantics of pskb_expand_head() and __skb_linearize(), > >> not to combine the headroom expanding...