OSDN Git Service

bpf: net: Remove TC_AT_INGRESS_OFFSET and SKB_MONO_DELIVERY_TIME_OFFSET macro
authorMartin KaFai Lau <kafai@fb.com>
Wed, 9 Mar 2022 09:04:50 +0000 (01:04 -0800)
committerDaniel Borkmann <daniel@iogearbox.net>
Thu, 10 Mar 2022 21:57:05 +0000 (22:57 +0100)
commit3b5d4ddf8fe1f60082513f94bae586ac80188a03
treec32ac26da2a17674e74465c1164fdb667b7117a4
parent743bec1b78af174f588956ffbdb9bca4348e3eaf
bpf: net: Remove TC_AT_INGRESS_OFFSET and SKB_MONO_DELIVERY_TIME_OFFSET macro

This patch removes the TC_AT_INGRESS_OFFSET and
SKB_MONO_DELIVERY_TIME_OFFSET macros.  Instead, PKT_VLAN_PRESENT_OFFSET
is used because all of them are at the same offset.  Comment is added to
make it clear that changing the position of tc_at_ingress or
mono_delivery_time will require to adjust the defined macros.

The earlier discussion can be found here:
https://lore.kernel.org/bpf/419d994e-ff61-7c11-0ec7-11fefcb0186e@iogearbox.net/

Signed-off-by: Martin KaFai Lau <kafai@fb.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/20220309090450.3710955-1-kafai@fb.com
include/linux/skbuff.h
net/core/filter.c