search for: xdp_enabled

Displaying 9 results from an estimated 9 matches for "xdp_enabled".

Did you mean: stp_enabled
2023 Mar 30
1
[PATCH net-next 7/8] virtio_net: introduce receive_mergeable_xdp()
..._page(buf); > > if (unlikely(len > truesize - room)) { > pr_debug("%s: rx error: len %u exceeds truesize %lu\n", > @@ -1348,51 +1406,21 @@ static struct sk_buff *receive_mergeable(struct net_device *dev, > goto err_skb; > } > > - if (likely(!vi->xdp_enabled)) { > - xdp_prog = NULL; > - goto skip_xdp; > - } > - > - rcu_read_lock(); > - xdp_prog = rcu_dereference(rq->xdp_prog); > - if (xdp_prog) { > - unsigned int xdp_frags_truesz = 0; > - struct xdp_buff xdp; > - void *data; > - u32 act; > - > - data = m...
2023 Mar 22
1
[PATCH net-next 7/8] virtio_net: introduce receive_mergeable_xdp()
...f *head_skb, *curr_skb; + struct bpf_prog *xdp_prog; + struct page *page; + int num_buf; + int offset; head_skb = NULL; stats->bytes += len - vi->hdr_len; @@ -1348,51 +1403,24 @@ static struct sk_buff *receive_mergeable(struct net_device *dev, goto err_skb; } - if (likely(!vi->xdp_enabled)) { - xdp_prog = NULL; - goto skip_xdp; - } - - rcu_read_lock(); - xdp_prog = rcu_dereference(rq->xdp_prog); - if (xdp_prog) { - unsigned int xdp_frags_truesz = 0; - struct xdp_buff xdp; - void *data; - u32 act; - - data = mergeable_xdp_prepare(vi, rq, xdp_prog, ctx, &frame_sz, &n...
2023 Apr 03
1
[PATCH net-next 3/8] virtio_net: introduce virtnet_xdp_handler() to seprate the logic of run xdp
...trace_xdp_exception(dev, xdp_prog, act); > + fallthrough; > + case XDP_DROP: > + return VIRTNET_XDP_RES_DROP; > + } > +} > + > static unsigned int virtnet_get_headroom(struct virtnet_info *vi) > { > return vi->xdp_enabled ? VIRTIO_XDP_HEADROOM : 0; > @@ -876,7 +938,6 @@ static struct sk_buff *receive_small(struct net_device *dev, > struct page *page = virt_to_head_page(buf); > unsigned int delta = 0; > struct page *xdp_page; > - int err; > unsigned int metasize...
2023 Apr 04
1
[PATCH net-next 3/8] virtio_net: introduce virtnet_xdp_handler() to seprate the logic of run xdp
...P_DROP: > > > > + return VIRTNET_XDP_RES_DROP; > > > > + } > > > > +} > > > > + > > > > static unsigned int virtnet_get_headroom(struct virtnet_info *vi) > > > > { > > > > return vi->xdp_enabled ? VIRTIO_XDP_HEADROOM : 0; > > > > @@ -876,7 +938,6 @@ static struct sk_buff *receive_small(struct net_device *dev, > > > > struct page *page = virt_to_head_page(buf); > > > > unsigned int delta = 0; > > > > struct page *xdp_pa...
2023 Apr 04
1
[PATCH net-next 3/8] virtio_net: introduce virtnet_xdp_handler() to seprate the logic of run xdp
...return VIRTNET_XDP_RES_DROP; > > > > > + } > > > > > +} > > > > > + > > > > > static unsigned int virtnet_get_headroom(struct virtnet_info *vi) > > > > > { > > > > > return vi->xdp_enabled ? VIRTIO_XDP_HEADROOM : 0; > > > > > @@ -876,7 +938,6 @@ static struct sk_buff *receive_small(struct net_device *dev, > > > > > struct page *page = virt_to_head_page(buf); > > > > > unsigned int delta = 0; > > > > >...
2023 Mar 28
8
[PATCH net-next 0/8] virtio_net: refactor xdp codes
Due to historical reasons, the implementation of XDP in virtio-net is relatively chaotic. For example, the processing of XDP actions has two copies of similar code. Such as page, xdp_page processing, etc. The purpose of this patch set is to refactor these code. Reduce the difficulty of subsequent maintenance. Subsequent developers will not introduce new bugs because of some complex logical
2023 Mar 22
9
[PATCH net-next 0/8] virtio_net: refactor xdp codes
Due to historical reasons, the implementation of XDP in virtio-net is relatively chaotic. For example, the processing of XDP actions has two copies of similar code. Such as page, xdp_page processing, etc. The purpose of this patch set is to refactor these code. Reduce the difficulty of subsequent maintenance. Subsequent developers will not introduce new bugs because of some complex logical
2023 Apr 04
1
[PATCH net-next 3/8] virtio_net: introduce virtnet_xdp_handler() to seprate the logic of run xdp
...t; > > > + } > > > > > > > +} > > > > > > > + > > > > > > > static unsigned int virtnet_get_headroom(struct virtnet_info *vi) > > > > > > > { > > > > > > > return vi->xdp_enabled ? VIRTIO_XDP_HEADROOM : 0; > > > > > > > @@ -876,7 +938,6 @@ static struct sk_buff *receive_small(struct net_device *dev, > > > > > > > struct page *page = virt_to_head_page(buf); > > > > > > > unsigned int delta = 0; &g...
2023 Mar 15
10
[RFC net-next 0/8] virtio_net: refactor xdp codes
Due to historical reasons, the implementation of XDP in virtio-net is relatively chaotic. For example, the processing of XDP actions has two copies of similar code. Such as page, xdp_page processing, etc. The purpose of this patch set is to refactor these code. Reduce the difficulty of subsequent maintenance. Subsequent developers will not introduce new bugs because of some complex logical