]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
virtio-net: xsk: rx: move the xdp->data adjustment to buf_to_xdp()
authorBui Quang Minh <minhquangbui99@gmail.com>
Sat, 5 Jul 2025 07:55:14 +0000 (14:55 +0700)
committerJakub Kicinski <kuba@kernel.org>
Thu, 10 Jul 2025 01:41:35 +0000 (18:41 -0700)
commitf47e8f618c7d2e51b0ea5f22ad550e7f62ec45c1
treedcebcef4431a0593f2e0e26e5d09708f34beb8c6
parentb4bb2ac099ca0b944695be41ade5562d895a8751
virtio-net: xsk: rx: move the xdp->data adjustment to buf_to_xdp()

This commit does not do any functional changes. It moves xdp->data
adjustment for buffer other than first buffer to buf_to_xdp() helper so
that the xdp_buff adjustment does not scatter over different functions.

Signed-off-by: Bui Quang Minh <minhquangbui99@gmail.com>
Link: https://patch.msgid.link/20250705075515.34260-1-minhquangbui99@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/virtio_net.c