diff options
author | Martin KaFai Lau <kafai@fb.com> | 2022-03-09 12:05:02 +0300 |
---|---|---|
committer | Daniel Borkmann <daniel@iogearbox.net> | 2022-03-11 00:57:05 +0300 |
commit | 9d90db97e4d4537c82a5ee476b1c13553e487f28 (patch) | |
tree | 5272251f183d4a30a00f500ae407adce4319384e /tools/testing/selftests | |
parent | 539de9328e3ab444efe51ddc7416ce2a3f0f23b2 (diff) | |
download | linux-9d90db97e4d4537c82a5ee476b1c13553e487f28.tar.xz |
bpf: Simplify insn rewrite on BPF_WRITE __sk_buff->tstamp
BPF_JMP32_IMM(BPF_JSET) is used to save a BPF_ALU32_IMM(BPF_AND).
The skb->tc_at_ingress and skb->mono_delivery_time are at the same
offset, so only one BPF_LDX_MEM(BPF_B) is needed.
Signed-off-by: Martin KaFai Lau <kafai@fb.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/20220309090502.3711982-1-kafai@fb.com
Diffstat (limited to 'tools/testing/selftests')
0 files changed, 0 insertions, 0 deletions