Skip to content

introduce xdp frags support to veth driver#1915

Open
tsipa wants to merge 4 commits intobpf-nextfrom
series/613292=>bpf-next
Open

introduce xdp frags support to veth driver#1915
tsipa wants to merge 4 commits intobpf-nextfrom
series/613292=>bpf-next

Conversation

@tsipa
Copy link
Owner

@tsipa tsipa commented Feb 15, 2022

Pull request for series with
subject: introduce xdp frags support to veth driver
version: 2
url: https://patchwork.kernel.org/project/netdevbpf/list/?series=614531

@tsipa
Copy link
Owner Author

tsipa commented Feb 15, 2022

Master branch: 9c3de61
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=614531
version: 2

@tsipa
Copy link
Owner Author

tsipa commented Feb 15, 2022

Master branch: edc21dc
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=614531
version: 2

@tsipa tsipa force-pushed the series/613292=>bpf-next branch from 214516f to bf0ed59 Compare February 15, 2022 17:27
@tsipa
Copy link
Owner Author

tsipa commented Feb 15, 2022

Master branch: d2b94f3
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=614531
version: 2

@tsipa tsipa force-pushed the series/613292=>bpf-next branch from bf0ed59 to 3cce488 Compare February 15, 2022 18:09
Nobody and others added 4 commits February 15, 2022 10:12
Even if this is a theoretical issue since it is not possible to perform
XDP_REDIRECT on a non-linear xdp_frame, veth driver does not account
paged area in ndo_xdp_xmit function pointer.
Introduce xdp_get_frame_len utility routine to get the xdp_frame full
length and account total frame size running XDP_REDIRECT of a
non-linear xdp frame into a veth device.

Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Introduce veth_convert_xdp_buff_from_skb routine in order to
convert a non-linear skb into a xdp buffer. If the received skb
is cloned or shared, veth_convert_xdp_buff_from_skb will copy it
in a new skb composed by order-0 pages for the linear and the
fragmented area. Moreover veth_convert_xdp_buff_from_skb guarantees
we have enough headroom for xdp.
This is a preliminary patch to allow attaching xdp programs with frags
support on veth devices.

Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Allow increasing the MTU over page boundaries on veth devices
if the attached xdp program declares to support xdp fragments.
Enable NETIF_F_ALL_TSO when the device is running in xdp mode.

Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
@tsipa
Copy link
Owner Author

tsipa commented Feb 15, 2022

Master branch: 8cbf062
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=614531
version: 2

@tsipa tsipa force-pushed the series/613292=>bpf-next branch from 3cce488 to b038056 Compare February 15, 2022 18:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants