Thread (30 messages) flat view 30 messages, 4 authors, 2021-03-10

Re: [Patch bpf-next v2 4/9] udp: implement ->read_sock() for sockmap

From: Yonghong Song <hidden>
Date: 2021-03-03 22:55:56
Also in: bpf


On 3/1/21 6:37 PM, Cong Wang wrote:
From: Cong Wang <redacted>
Some even simple commit message here will be preferred
compared to empty commit message.
quoted hunk ↗ jump to hunk
Cc: John Fastabend <john.fastabend@gmail.com>
Cc: Daniel Borkmann <daniel@iogearbox.net>
Cc: Jakub Sitnicki <jakub@cloudflare.com>
Cc: Lorenz Bauer <redacted>
Signed-off-by: Cong Wang <redacted>
---
  include/net/udp.h  |  2 ++
  net/ipv4/af_inet.c |  1 +
  net/ipv4/udp.c     | 34 ++++++++++++++++++++++++++++++++++
  3 files changed, 37 insertions(+)
diff --git a/include/net/udp.h b/include/net/udp.h
index 5264ba1439f9..44a94cfc63b5 100644
--- a/include/net/udp.h
+++ b/include/net/udp.h
@@ -330,6 +330,8 @@ struct sock *__udp6_lib_lookup(struct net *net,
  			       struct sk_buff *skb);
  struct sock *udp6_lib_lookup_skb(const struct sk_buff *skb,
  				 __be16 sport, __be16 dport);
+int udp_read_sock(struct sock *sk, read_descriptor_t *desc,
+		  sk_read_actor_t recv_actor);
  
  /* UDP uses skb->dev_scratch to cache as much information as possible and avoid
   * possibly multiple cache miss on dequeue()
[...]
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help