projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6dafde8
)
bpf, vsock: Drop static vsock_bpf_prot initialization
author
Michal Luczaj
<mhal@rbox.co>
Sun, 13 Oct 2024 16:26:42 +0000
(18:26 +0200)
committer
Daniel Borkmann
<daniel@iogearbox.net>
Thu, 17 Oct 2024 11:02:55 +0000
(13:02 +0200)
vsock_bpf_prot is set up at runtime. Remove the superfluous init.
No functional change intended.
Fixes:
634f1a7110b4
("vsock: support sockmap")
Signed-off-by: Michal Luczaj <mhal@rbox.co>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: John Fastabend <john.fastabend@gmail.com>
Link:
https://lore.kernel.org/bpf/20241013-vsock-fixes-for-redir-v2-4-d6577bbfe742@rbox.co
net/vmw_vsock/vsock_bpf.c
patch
|
blob
|
history
diff --git
a/net/vmw_vsock/vsock_bpf.c
b/net/vmw_vsock/vsock_bpf.c
index
c42c5cc
..
4aa6e74
100644
(file)
--- a/
net/vmw_vsock/vsock_bpf.c
+++ b/
net/vmw_vsock/vsock_bpf.c
@@
-114,14
+114,6
@@
static int vsock_bpf_recvmsg(struct sock *sk, struct msghdr *msg,
return copied;
}
-/* Copy of original proto with updated sock_map methods */
-static struct proto vsock_bpf_prot = {
- .close = sock_map_close,
- .recvmsg = vsock_bpf_recvmsg,
- .sock_is_readable = sk_msg_is_readable,
- .unhash = sock_map_unhash,
-};
-
static void vsock_bpf_rebuild_protos(struct proto *prot, const struct proto *base)
{
*prot = *base;