netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v1 net-next  0/3] virtio_net: Implement VIRTIO_NET_F_OUT_NET_HEADER from virtio spec 1.4
@ 2025-09-23 20:22 Kommula Shiva Shankar
  2025-09-23 20:22 ` [PATCH v1 net-next 1/3] net: implement virtio helper to handle outer nw offset Kommula Shiva Shankar
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Kommula Shiva Shankar @ 2025-09-23 20:22 UTC (permalink / raw)
  To: netdev, mst, jasowang, pabeni, xuanzhuo
  Cc: virtualization, parav, jerinj, ndabilpuram, sburla, schalla

This series implements the VIRTIO_NET_F_OUT_NET_HEADER feature which was introduced in the virtio specification 1.4 recently. 
With this change, segmentation offload functionality now propagates outer IP header offset information to the device/apps running on NIC. 

The virtio 1.4 spec introduced VIRTIO_NET_F_OUT_NET_HEADER feature[1] to address the performance issue caused by reading packet data 
to determine outer network header offset and to support Inline IPSec functionality,
where vendor hardware devices need to know the outer network header offset for Inline IPSec acceleration.

Currently, devices must parse through packet headers to determine the outer network header which impacts performance. 
This patch series implements the outer_nh_offset field in virtio_net_hdr to avoid parsing overhead. 

This series was tested on ARM platform with virtio-net driver where ~4% performance improvement was measured
for device applications.

[1] https://lore.kernel.org/virtio-comment/20250401195655.486230-1-kshankar@marvell.com/

Kommula Shiva Shankar (3):
  net: implement virtio helper to handle outer nw offset
  virtio_net: enable outer nw header offset support.
  vhost/net: enable outer nw header offset support.

 drivers/net/virtio_net.c        | 23 +++++++++++++++----
 drivers/vhost/net.c             |  4 ++++
 include/linux/virtio_net.h      | 40 +++++++++++++++++++++++++++++++++
 include/uapi/linux/virtio_net.h |  8 +++++++
 4 files changed, 71 insertions(+), 4 deletions(-)

-- 
2.48.1


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2025-10-03 11:06 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-09-23 20:22 [PATCH v1 net-next 0/3] virtio_net: Implement VIRTIO_NET_F_OUT_NET_HEADER from virtio spec 1.4 Kommula Shiva Shankar
2025-09-23 20:22 ` [PATCH v1 net-next 1/3] net: implement virtio helper to handle outer nw offset Kommula Shiva Shankar
2025-09-24  0:51   ` Jason Wang
2025-09-24  1:11     ` Jason Wang
2025-10-03 11:06       ` [EXTERNAL] " Shiva Shankar Kommula
2025-09-23 20:22 ` [PATCH v1 net-next 2/3] virtio_net: enable outer nw header offset support Kommula Shiva Shankar
2025-09-25  1:07   ` kernel test robot
2025-09-23 20:22 ` [PATCH v1 net-next 3/3] vhost/net: " Kommula Shiva Shankar
2025-09-24 15:44   ` kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).