Thread (10 messages) 10 messages, 3 authors, 2022-09-01

Re: [PATCH bpf-next v5 1/3] bpf: Add skb dynptrs

From: Joanne Koong <hidden>
Date: 2022-09-01 21:59:15
Also in: bpf

On Thu, Sep 1, 2022 at 12:59 PM Martin KaFai Lau [off-list ref] wrote:
On Wed, Aug 31, 2022 at 11:32:22AM -0700, Joanne Koong wrote:
quoted
+#ifdef CONFIG_NET
+int __bpf_skb_load_bytes(const struct sk_buff *skb, u32 offset, void *to, u32 len);
+int __bpf_skb_store_bytes(struct sk_buff *skb, u32 offset, const void *from,
+                       u32 len, u64 flags);
+#else /* CONFIG_NET */
+int __bpf_skb_load_bytes(const struct sk_buff *skb, u32 offset, void *to, u32 len)
static inline

This should address the build issue reported by the test bot.
Awesome, I will add this in for v6. Thanks!
quoted
+{
+     return -EOPNOTSUPP;
+}
+
+int __bpf_skb_store_bytes(struct sk_buff *skb, u32 offset, const void *from,
+                       u32 len, u64 flags)
Same here.
quoted
+{
+     return -EOPNOTSUPP;
+}
+#endif /* CONFIG_NET */
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help