aboutsummaryrefslogtreecommitdiff
path: root/lib/string_helpers.c
diff options
context:
space:
mode:
authorMartin KaFai Lau <[email protected]>2022-03-09 01:05:02 -0800
committerDaniel Borkmann <[email protected]>2022-03-10 22:57:05 +0100
commit9d90db97e4d4537c82a5ee476b1c13553e487f28 (patch)
tree5272251f183d4a30a00f500ae407adce4319384e /lib/string_helpers.c
parent539de9328e3ab444efe51ddc7416ce2a3f0f23b2 (diff)
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 'lib/string_helpers.c')
0 files changed, 0 insertions, 0 deletions