diff options
| author | Felix Fietkau | 2022-03-21 19:14:16 +0000 |
|---|---|---|
| committer | Felix Fietkau | 2022-03-21 19:16:04 +0000 |
| commit | 91cf440db9e2ebc1f7ce9f532500f3a320e90a1b (patch) | |
| tree | e1f54c10ad5f73131232e7da310221df5b7ef193 | |
| parent | d7ba5804eae4255cee2e316f40e93c830900cefd (diff) | |
| download | qosify-91cf440db9e2ebc1f7ce9f532500f3a320e90a1b.tar.gz | |
loader: fix use of deprecated functions
Signed-off-by: Felix Fietkau <nbd@nbd.name>
| -rw-r--r-- | loader.c | 4 | ||||
| -rw-r--r-- | qosify-bpf.c | 2 |
2 files changed, 3 insertions, 3 deletions
@@ -30,7 +30,7 @@ static void qosify_fill_rodata(struct bpf_object *obj, uint32_t flags) { struct bpf_map *map = NULL; - while ((map = bpf_map__next(map, obj)) != NULL) { + while ((map = bpf_object__next_map(obj, map)) != NULL) { if (!strstr(bpf_map__name(map), ".rodata")) continue; @@ -58,7 +58,7 @@ qosify_create_program(const char *suffix, uint32_t flags) return -1; } - prog = bpf_object__find_program_by_title(obj, "classifier"); + prog = bpf_object__find_program_by_name(obj, "classify"); if (!prog) { fprintf(stderr, "Can't find classifier prog\n"); return -1; diff --git a/qosify-bpf.c b/qosify-bpf.c index 54a1e38..407485b 100644 --- a/qosify-bpf.c +++ b/qosify-bpf.c @@ -462,7 +462,7 @@ dscp_lookup_class(uint8_t *dscp, bool ingress, struct qosify_class **out_class) return 0; } -SEC("classifier") +SEC("tc") int classify(struct __sk_buff *skb) { bool ingress = module_flags & QOSIFY_INGRESS; |