selftests/bpf: Fix test_verif_scale{1,3} SEC() annotations
Use proper SEC("tc") for test_verif_scale{1,3} programs. It's not a problem for selftests right now because we manually set type programmatically, but not having correct SEC() definitions makes it harded to generically load BPF object files. Signed-off-by: Andrii Nakryiko <andrii@kernel.org> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net> Link: https://lore.kernel.org/bpf/20220909193053.577111-2-andrii@kernel.org
This commit is contained in:
parent
ceea991a01
commit
cf060c2c39
@ -5,7 +5,7 @@
|
|||||||
#define ATTR __attribute__((noinline))
|
#define ATTR __attribute__((noinline))
|
||||||
#include "test_jhash.h"
|
#include "test_jhash.h"
|
||||||
|
|
||||||
SEC("scale90_noinline")
|
SEC("tc")
|
||||||
int balancer_ingress(struct __sk_buff *ctx)
|
int balancer_ingress(struct __sk_buff *ctx)
|
||||||
{
|
{
|
||||||
void *data_end = (void *)(long)ctx->data_end;
|
void *data_end = (void *)(long)ctx->data_end;
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
#define ATTR __attribute__((noinline))
|
#define ATTR __attribute__((noinline))
|
||||||
#include "test_jhash.h"
|
#include "test_jhash.h"
|
||||||
|
|
||||||
SEC("scale90_noinline32")
|
SEC("tc")
|
||||||
int balancer_ingress(struct __sk_buff *ctx)
|
int balancer_ingress(struct __sk_buff *ctx)
|
||||||
{
|
{
|
||||||
void *data_end = (void *)(long)ctx->data_end;
|
void *data_end = (void *)(long)ctx->data_end;
|
||||||
|
Loading…
Reference in New Issue
Block a user