diff options
author | Martin KaFai Lau <kafai@fb.com> | 2022-03-09 01:05:02 -0800 |
---|---|---|
committer | Daniel Borkmann <daniel@iogearbox.net> | 2022-03-10 22:57:05 +0100 |
commit | 9d90db97e4d4537c82a5ee476b1c13553e487f28 (patch) | |
tree | 5272251f183d4a30a00f500ae407adce4319384e /tools/include | |
parent | 539de9328e3ab444efe51ddc7416ce2a3f0f23b2 (diff) | |
download | linux-stable-9d90db97e4d4537c82a5ee476b1c13553e487f28.tar.gz linux-stable-9d90db97e4d4537c82a5ee476b1c13553e487f28.tar.bz2 linux-stable-9d90db97e4d4537c82a5ee476b1c13553e487f28.zip |
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/include')
0 files changed, 0 insertions, 0 deletions