diff options
| author | Martin KaFai Lau <[email protected]> | 2022-03-09 09:05:02 +0000 |
|---|---|---|
| committer | Daniel Borkmann <[email protected]> | 2022-03-10 21:57:05 +0000 |
| commit | 9d90db97e4d4537c82a5ee476b1c13553e487f28 (patch) | |
| tree | 5272251f183d4a30a00f500ae407adce4319384e /tools/bpf/bpftool/prog.c | |
| parent | bpf: Simplify insn rewrite on BPF_READ __sk_buff->tstamp (diff) | |
| download | kernel-9d90db97e4d4537c82a5ee476b1c13553e487f28.tar.gz kernel-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 <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/bpf/bpftool/prog.c')
0 files changed, 0 insertions, 0 deletions
