diff options
Diffstat (limited to 'target/linux/generic/backport-5.15/605-v5.18-xdp-introduce-flags-field-in-xdp_buff-xdp_frame.patch')
-rw-r--r-- | target/linux/generic/backport-5.15/605-v5.18-xdp-introduce-flags-field-in-xdp_buff-xdp_frame.patch | 44 |
1 files changed, 24 insertions, 20 deletions
diff --git a/target/linux/generic/backport-5.15/605-v5.18-xdp-introduce-flags-field-in-xdp_buff-xdp_frame.patch b/target/linux/generic/backport-5.15/605-v5.18-xdp-introduce-flags-field-in-xdp_buff-xdp_frame.patch index 9c5a14c41b..529b504ed8 100644 --- a/target/linux/generic/backport-5.15/605-v5.18-xdp-introduce-flags-field-in-xdp_buff-xdp_frame.patch +++ b/target/linux/generic/backport-5.15/605-v5.18-xdp-introduce-flags-field-in-xdp_buff-xdp_frame.patch @@ -1,25 +1,29 @@ -commit 2e88d4ff03013937028f5397268b21e10cf68713 -Author: Lorenzo Bianconi <lorenzo@kernel.org> -Date: Fri Jan 21 11:09:45 2022 +0100 +From 2e88d4ff03013937028f5397268b21e10cf68713 Mon Sep 17 00:00:00 2001 +From: Lorenzo Bianconi <lorenzo@kernel.org> +Date: Fri, 21 Jan 2022 11:09:45 +0100 +Subject: [PATCH] xdp: introduce flags field in xdp_buff/xdp_frame - xdp: introduce flags field in xdp_buff/xdp_frame - - Introduce flags field in xdp_frame and xdp_buffer data structures - to define additional buffer features. At the moment the only - supported buffer feature is frags bit (XDP_FLAGS_HAS_FRAGS). - frags bit is used to specify if this is a linear buffer - (XDP_FLAGS_HAS_FRAGS not set) or a frags frame (XDP_FLAGS_HAS_FRAGS - set). In the latter case the driver is expected to initialize the - skb_shared_info structure at the end of the first buffer to link together - subsequent buffers belonging to the same frame. - - Acked-by: Toke Hoiland-Jorgensen <toke@redhat.com> - Acked-by: John Fastabend <john.fastabend@gmail.com> - Acked-by: Jesper Dangaard Brouer <brouer@redhat.com> - Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org> - Link: https://lore.kernel.org/r/e389f14f3a162c0a5bc6a2e1aa8dd01a90be117d.1642758637.git.lorenzo@kernel.org - Signed-off-by: Alexei Starovoitov <ast@kernel.org> +Introduce flags field in xdp_frame and xdp_buffer data structures +to define additional buffer features. At the moment the only +supported buffer feature is frags bit (XDP_FLAGS_HAS_FRAGS). +frags bit is used to specify if this is a linear buffer +(XDP_FLAGS_HAS_FRAGS not set) or a frags frame (XDP_FLAGS_HAS_FRAGS +set). In the latter case the driver is expected to initialize the +skb_shared_info structure at the end of the first buffer to link together +subsequent buffers belonging to the same frame. +Acked-by: Toke Hoiland-Jorgensen <toke@redhat.com> +Acked-by: John Fastabend <john.fastabend@gmail.com> +Acked-by: Jesper Dangaard Brouer <brouer@redhat.com> +Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org> +Link: https://lore.kernel.org/r/e389f14f3a162c0a5bc6a2e1aa8dd01a90be117d.1642758637.git.lorenzo@kernel.org +Signed-off-by: Alexei Starovoitov <ast@kernel.org> +--- + include/net/xdp.h | 29 +++++++++++++++++++++++++++++ + 1 file changed, 29 insertions(+) + +diff --git a/include/net/xdp.h b/include/net/xdp.h +index 8f0812e4996d..485e9495a690 100644 --- a/include/net/xdp.h +++ b/include/net/xdp.h @@ -66,6 +66,10 @@ struct xdp_txq_info { |