Thread (1 message) read the whole thread 1 message, 1 author, 2023-10-08

Re: [RFC PATCH 1/7] net: skbuff: Add tun_vnet_hash flag

From: Willem de Bruijn <willemdebruijn.kernel@gmail.com>
Date: 2023-10-08 18:39:52
Also in: bpf, kvm, linux-kselftest, lkml, netdev

On Sun, Oct 8, 2023 at 7:22 AM Akihiko Odaki [off-list ref] wrote:
quoted hunk
tun_vnet_hash can use this flag to indicate it stored virtio-net hash
cache to cb.

Signed-off-by: Akihiko Odaki <redacted>
---
 include/linux/skbuff.h | 2 ++
 1 file changed, 2 insertions(+)
diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h
index 4174c4b82d13..e638f157c13c 100644
--- a/include/linux/skbuff.h
+++ b/include/linux/skbuff.h
@@ -837,6 +837,7 @@ typedef unsigned char *sk_buff_data_t;
  *     @truesize: Buffer size
  *     @users: User count - see {datagram,tcp}.c
  *     @extensions: allocated extensions, valid if active_extensions is nonzero
+ *     @tun_vnet_hash: tun stored virtio-net hash cache to cb
  */

 struct sk_buff {
@@ -989,6 +990,7 @@ struct sk_buff {
 #if IS_ENABLED(CONFIG_IP_SCTP)
        __u8                    csum_not_inet:1;
 #endif
+       __u8                    tun_vnet_hash:1;
sk_buff space is very limited.

No need to extend it, especially for code that stays within a single
subsystem (tun).

To a lesser extent the same point applies to the qdisc_skb_cb.
_______________________________________________
Virtualization mailing list
Virtualization@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/virtualization
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help