add placeholder ebpf programs for XDP tethering am: b199742d73 am: ffc65b4880 am: 6abaa6c504
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/1553913 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: I003de5996c219cad92e6a99a892eb35b846a836d
This commit is contained in:
committed by
Automerger Merge Worker
commit
f9bcadc845
@@ -293,5 +293,30 @@ DEFINE_BPF_PROG("schedcls/tether_upstream4_rawip", AID_ROOT, AID_NETWORK_STACK,
|
||||
return TC_ACT_OK;
|
||||
}
|
||||
|
||||
// ----- XDP Support -----
|
||||
|
||||
#define DEFINE_XDP_PROG(str, func) \
|
||||
DEFINE_BPF_PROG_KVER(str, AID_ROOT, AID_NETWORK_STACK, func, KVER(5, 9, 0))(struct xdp_md *ctx)
|
||||
|
||||
DEFINE_XDP_PROG("xdp/tether_downstream_ether",
|
||||
xdp_tether_downstream_ether) {
|
||||
return XDP_PASS;
|
||||
}
|
||||
|
||||
DEFINE_XDP_PROG("xdp/tether_downstream_rawip",
|
||||
xdp_tether_downstream_rawip) {
|
||||
return XDP_PASS;
|
||||
}
|
||||
|
||||
DEFINE_XDP_PROG("xdp/tether_upstream_ether",
|
||||
xdp_tether_upstream_ether) {
|
||||
return XDP_PASS;
|
||||
}
|
||||
|
||||
DEFINE_XDP_PROG("xdp/tether_upstream_rawip",
|
||||
xdp_tether_upstream_rawip) {
|
||||
return XDP_PASS;
|
||||
}
|
||||
|
||||
LICENSE("Apache 2.0");
|
||||
CRITICAL("netd");
|
||||
|
||||
Reference in New Issue
Block a user