FAILED: patch "[PATCH] packet: Add GSO/csum offload support." failed to apply to 6.1-stable tree
Subsystems (4)
[email protected]
maintainerThe patch below does not apply to the 6.1-stable tree.
If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to <[email protected]>.
To reproduce the conflict and resubmit, you may use the following commands:
git fetch https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/ linux-6.1.y
git checkout FETCH_HEAD
git cherry-pick -x bfd5f4a3d605e0f6054df0b59fe0907ff7e696d3
# <resolve conflicts, build, test, etc.>
git commit -s
git send-email --to '<[email protected]>' --in-reply-to '2026101252-pacifism-precise-0e65@gregkh' --subject-prefix 'PATCH 6.1.y' 'HEAD^..'
Possible dependencies:
thanks,
greg k-h
------------------ original commit in Linus's tree ------------------
From bfd5f4a3d605e0f6054df0b59fe0907ff7e696d3 Mon Sep 17 00:00:00 2001
From: Sridhar Samudrala <[email protected]>
Date: Thu, 4 Feb 2010 20:24:10 -0800
Subject: [PATCH] packet: Add GSO/csum offload support.
This patch adds GSO/checksum offload to af_packet sockets using virtio_net_hdr. Based on Rusty's patch to add this support to tun. It allows GSO/checksum offload to be enabled when using raw socket backend with virtio_net.
Adds PACKET_VNET_HDR socket option to prepend virtio_net_hdr in the receive path and process/skip virtio_net_hdr in the send path. This option is only allowed with SOCK_RAW sockets attached to ethernet type devices.
v2 updates
----------
Michael's Comments
- Perform length check in packet_snd() when GSO is off even when vnet_hdr is present.
- Check for SKB_GSO_FCOE type and return -EINVAL
- don't allow tx/rx ring when vnet_hdr is enabled. Herbert's Comments
- Removed ethernet specific code.
- protocol value is assumed to be passed in by the caller.
include/linux/if_packet.h +1 -0
@@ -46,6 +46,7 @@ struct sockaddr_ll {#define PACKET_RESERVE 12#define PACKET_TX_RING 13#define PACKET_LOSS 14 +#define PACKET_VNET_HDR 15struct tpacket_stats {unsigned int tp_packets;
net/packet/af_packet.c +176 -11
277 lines not on this page · raw message