[bpf-next,v4,04/12] sock_map: export symbols for af_unix module

Message ID 20210508220835.53801-5-xiyou.wangcong@gmail.com
State New
Headers show
  • sockmap: add sockmap support for unix datagram socket
Related show

Commit Message

Cong Wang May 8, 2021, 10:08 p.m.
From: Cong Wang <cong.wang@bytedance.com>

Before af_unix there is no need to support modules. Now
we have to export these two functions for af_unix module.

Cc: John Fastabend <john.fastabend@gmail.com>
Cc: Daniel Borkmann <daniel@iogearbox.net>
Cc: Jakub Sitnicki <jakub@cloudflare.com>
Cc: Lorenz Bauer <lmb@cloudflare.com>
Signed-off-by: Cong Wang <cong.wang@bytedance.com>
 net/core/sock_map.c | 2 ++
 1 file changed, 2 insertions(+)


diff --git a/net/core/sock_map.c b/net/core/sock_map.c
index 6f1b82b8ad49..13b474d89f93 100644
--- a/net/core/sock_map.c
+++ b/net/core/sock_map.c
@@ -1513,6 +1513,7 @@  void sock_map_unhash(struct sock *sk)
 void sock_map_close(struct sock *sk, long timeout)
@@ -1536,6 +1537,7 @@  void sock_map_close(struct sock *sk, long timeout)
 	saved_close(sk, timeout);
 static int sock_map_iter_attach_target(struct bpf_prog *prog,
 				       union bpf_iter_link_info *linfo,