net: veth: rely on napi_build_skb in veth_convert_skb_to_xdp_buff
authorLorenzo Bianconi <lorenzo@kernel.org>
Mon, 8 May 2023 20:45:23 +0000 (22:45 +0200)
committerJakub Kicinski <kuba@kernel.org>
Wed, 10 May 2023 03:10:36 +0000 (20:10 -0700)
commit9d142ed484a3d517e779fc3c16028a720762643f
tree927012903124b2581d8bcff92e6f4b76f908da6f
parentaf8eacf2b42e0a736a7a2a1379fb6c0b7fd66da4
net: veth: rely on napi_build_skb in veth_convert_skb_to_xdp_buff

Since veth_convert_skb_to_xdp_buff routine runs in veth_poll() NAPI,
rely on napi_build_skb() instead of build_skb() to reduce skb allocation
cost.

Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Reviewed-by: Yunsheng Lin <linyunsheng@huawei.com>
Link: https://lore.kernel.org/r/0f822c0b72f8b71555c11745cb8fb33399d02de9.1683578488.git.lorenzo@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/veth.c