diff options
author | 2024-10-01 22:06:05 +0200 | |
---|---|---|
committer | 2024-10-02 11:51:54 +0200 | |
commit | 8f5b408d7661e33157b16c4e4d232f483e8e4f79 (patch) | |
tree | 65376125ad978edae02131a6ec3bdbdea962116c | |
parent | Merge branch 'selftests/bpf: new MPTCP subflow subtest' (diff) | |
download | wireguard-linux-8f5b408d7661e33157b16c4e4d232f483e8e4f79.tar.xz wireguard-linux-8f5b408d7661e33157b16c4e4d232f483e8e4f79.zip |
bpf: Remove unused macro
Commit 7aebfa1b3885 ("bpf: Support narrow loads from bpf_sock_addr.user_port")
removed one and only SOCK_ADDR_LOAD_OR_STORE_NESTED_FIELD callsite but kept
the macro. Remove it to clean up the code base. Found while getting lost in
the BPF code.
Signed-off-by: Maciej Fijalkowski <maciej.fijalkowski@intel.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/20241001200605.249526-1-maciej.fijalkowski@intel.com
-rw-r--r-- | net/core/filter.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/net/core/filter.c b/net/core/filter.c index cd3524cb326b..e61ac225c41b 100644 --- a/net/core/filter.c +++ b/net/core/filter.c @@ -10241,10 +10241,6 @@ static u32 xdp_convert_ctx_access(enum bpf_access_type type, } \ } while (0) -#define SOCK_ADDR_LOAD_OR_STORE_NESTED_FIELD(S, NS, F, NF, TF) \ - SOCK_ADDR_LOAD_OR_STORE_NESTED_FIELD_SIZE_OFF( \ - S, NS, F, NF, BPF_FIELD_SIZEOF(NS, NF), 0, TF) - static u32 sock_addr_convert_ctx_access(enum bpf_access_type type, const struct bpf_insn *si, struct bpf_insn *insn_buf, |