Skip to content
Commit 215eb9f9 authored by Liang Chen's avatar Liang Chen Committed by Jakub Kicinski
Browse files

veth: Avoid NAPI scheduling on failed SKB forwarding



When an skb fails to be forwarded to the peer(e.g., skb data buffer
length exceeds MTU), it will not be added to the peer's receive queue.
Therefore, we should schedule the peer's NAPI poll function only when
skb forwarding is successful to avoid unnecessary overhead.

Signed-off-by: default avatarLiang Chen <liangchen.linux@gmail.com>
Link: https://lore.kernel.org/r/20230824123131.7673-1-liangchen.linux@gmail.com
Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent bebfbf07
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment