Merge tag 'kcsan.2021.11.11a' of git://git.kernel.org/pub/scm/linux/kernel/git/paulmc...
[linux-2.6-microblaze.git] / include / net / strparser.h
index 1d20b98..732b709 100644 (file)
@@ -54,10 +54,28 @@ struct strp_msg {
        int offset;
 };
 
+struct _strp_msg {
+       /* Internal cb structure. struct strp_msg must be first for passing
+        * to upper layer.
+        */
+       struct strp_msg strp;
+       int accum_len;
+};
+
+struct sk_skb_cb {
+#define SK_SKB_CB_PRIV_LEN 20
+       unsigned char data[SK_SKB_CB_PRIV_LEN];
+       struct _strp_msg strp;
+       /* temp_reg is a temporary register used for bpf_convert_data_end_access
+        * when dst_reg == src_reg.
+        */
+       u64 temp_reg;
+};
+
 static inline struct strp_msg *strp_msg(struct sk_buff *skb)
 {
        return (struct strp_msg *)((void *)skb->cb +
-               offsetof(struct qdisc_skb_cb, data));
+               offsetof(struct sk_skb_cb, strp));
 }
 
 /* Structure for an attached lower socket */