# Re: \[PATCH RFC net-next 0/4\] xdp: reuse generic skb XDP handling for veth

- From: Jakub Kicinski \<kuba@kernel.org\>
- Date: 2026-05-15 00:54:18 
- List: netdev
- Page: https://ratatoskr.run/netdev/2026/05/9008090
- Thread: https://ratatoskr.run/netdev/2026/05/8991960/t.md

```text
On Sat,  9 May 2026 10:48:54 +0200 Maciej Fijalkowski wrote:
>   - the INDIRECT_CALL for taking the COW path; I wanted to preserve
>     existing behavior, but is it really needed or maybe it would be
>     possible to come up with conditions that would cover both generic
>     XDP path and veth?

Yes, the conditions are almost identical. 
I think we can OR them all together (removing dups like 
skb_head_is_locked() + cloned; skb_shinfo(skb)->nr_frags
and skb_is_nonlinear()
```
