search for: data_hard_end

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

2018 Mar 01
2
[PATCH net-next 0/2] virtio-net: re enable XDP_REDIRECT for mergeable buffer
...rs "frame" size/end. (The >>> assumption use to be, xdp_buff->data_hard_start + PAGE_SIZE, but >>> ixgbe+virtio_net broke that assumption). >>> >>> It should actually be fairly easy to implement: >>> * Simply extend xdp_buff with a "data_hard_end" pointer. >> Right, and then cpumap can warn and drop packets with insufficient >> tailroom. >> >> But it should be a patch on top of this I think. > Hmmm, not really. If we/you instead fix the issue of XDP doesn't know > the end/size of the frame, then we do...
2018 Mar 01
2
[PATCH net-next 0/2] virtio-net: re enable XDP_REDIRECT for mergeable buffer
...rs "frame" size/end. (The >>> assumption use to be, xdp_buff->data_hard_start + PAGE_SIZE, but >>> ixgbe+virtio_net broke that assumption). >>> >>> It should actually be fairly easy to implement: >>> * Simply extend xdp_buff with a "data_hard_end" pointer. >> Right, and then cpumap can warn and drop packets with insufficient >> tailroom. >> >> But it should be a patch on top of this I think. > Hmmm, not really. If we/you instead fix the issue of XDP doesn't know > the end/size of the frame, then we do...
2018 Mar 01
3
[PATCH net-next 0/2] virtio-net: re enable XDP_REDIRECT for mergeable buffer
...instead extend XDP to know it's buffers "frame" size/end. (The > assumption use to be, xdp_buff->data_hard_start + PAGE_SIZE, but > ixgbe+virtio_net broke that assumption). > > It should actually be fairly easy to implement: > * Simply extend xdp_buff with a "data_hard_end" pointer. Right, and then cpumap can warn and drop packets with insufficient tailroom. But it should be a patch on top of this I think. Thanks > > Now cpumap is more safe... instead of crashing, it can now know/see when > it is safe to create an SKB using build_skb (could fallback...
2018 Mar 01
3
[PATCH net-next 0/2] virtio-net: re enable XDP_REDIRECT for mergeable buffer
...instead extend XDP to know it's buffers "frame" size/end. (The > assumption use to be, xdp_buff->data_hard_start + PAGE_SIZE, but > ixgbe+virtio_net broke that assumption). > > It should actually be fairly easy to implement: > * Simply extend xdp_buff with a "data_hard_end" pointer. Right, and then cpumap can warn and drop packets with insufficient tailroom. But it should be a patch on top of this I think. Thanks > > Now cpumap is more safe... instead of crashing, it can now know/see when > it is safe to create an SKB using build_skb (could fallback...
2018 Mar 01
0
[PATCH net-next 0/2] virtio-net: re enable XDP_REDIRECT for mergeable buffer
.../end. (The > >>> assumption use to be, xdp_buff->data_hard_start + PAGE_SIZE, but > >>> ixgbe+virtio_net broke that assumption). > >>> > >>> It should actually be fairly easy to implement: > >>> * Simply extend xdp_buff with a "data_hard_end" pointer. > >> Right, and then cpumap can warn and drop packets with insufficient > >> tailroom. > >> > >> But it should be a patch on top of this I think. > > Hmmm, not really. If we/you instead fix the issue of XDP doesn't know > > the...
2018 Mar 01
0
[PATCH net-next 0/2] virtio-net: re enable XDP_REDIRECT for mergeable buffer
...ould suggest that we/you instead extend XDP to know it's buffers "frame" size/end. (The assumption use to be, xdp_buff->data_hard_start + PAGE_SIZE, but ixgbe+virtio_net broke that assumption). It should actually be fairly easy to implement: * Simply extend xdp_buff with a "data_hard_end" pointer. Now cpumap is more safe... instead of crashing, it can now know/see when it is safe to create an SKB using build_skb (could fallback to dev_alloc_skb). -- Best regards, Jesper Dangaard Brouer MSc.CS, Principal Kernel Engineer at Red Hat LinkedIn: http://www.linkedin.com/in/b...
2018 Mar 01
0
[PATCH net-next 0/2] virtio-net: re enable XDP_REDIRECT for mergeable buffer
...w it's buffers "frame" size/end. (The > > assumption use to be, xdp_buff->data_hard_start + PAGE_SIZE, but > > ixgbe+virtio_net broke that assumption). > > > > It should actually be fairly easy to implement: > > * Simply extend xdp_buff with a "data_hard_end" pointer. > > Right, and then cpumap can warn and drop packets with insufficient > tailroom. > > But it should be a patch on top of this I think. Hmmm, not really. If we/you instead fix the issue of XDP doesn't know the end/size of the frame, then we don't need thi...
2018 Mar 01
7
[PATCH net-next 0/2] virtio-net: re enable XDP_REDIRECT for mergeable buffer
Hi: This series tries to re-enable XDP_REDIRECT for mergeable buffer which was removed since commit 7324f5399b06 ("virtio_net: disable XDP_REDIRECT in receive_mergeable() case"). Main concerns are: - not enough tailroom was reserved which breaks cpumap - complex logic like EWMA and linearizing during XDP processing Fix those by: - reserve enough tailroom during refill - disable EWMA
2018 Mar 01
7
[PATCH net-next 0/2] virtio-net: re enable XDP_REDIRECT for mergeable buffer
Hi: This series tries to re-enable XDP_REDIRECT for mergeable buffer which was removed since commit 7324f5399b06 ("virtio_net: disable XDP_REDIRECT in receive_mergeable() case"). Main concerns are: - not enough tailroom was reserved which breaks cpumap - complex logic like EWMA and linearizing during XDP processing Fix those by: - reserve enough tailroom during refill - disable EWMA