Thread (14 messages) flat view 14 messages, 3 authors, 2022-10-24

Re: [PATCH net] veth: Avoid drop packets when xdp_redirect performs

From: Toke Høiland-Jørgensen <hidden>
Date: 2022-10-20 16:34:46

Heng Qi [off-list ref] writes:
maybe we should consider a simpler method: when loading xdp in veth,
we can automatically enable the napi ring of peer veth, which seems to
have no performance impact and functional impact on the veth pair, and
no longer requires users to do more things for peer veth (after all,
they may be unaware of more requirements for peer veth). Do you think
this is feasible?
It could be, perhaps? One issue is what to do once the XDP program is
then unloaded? We should probably disable NAPI on the peer in this case,
but then we'd need to track whether it was enabled by loading an XDP
program; we don't want to disable GRO/NAPI if the user requested it
explicitly. This kind of state tracking gets icky fast, so I guess it'll
depend on the patch...

-Toke
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help