Skip to content

Commit eeb154d

Browse files
rpigotttohojo
authored andcommitted
preserve-dscp: update for strict section names
The old "classifier/xxx" format is no longer supported. Signed-off-by: Ronan Pigott <ronan@rjp.ie>
1 parent 8dedf93 commit eeb154d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

preserve-dscp/preserve_dscp_kern.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ static void set_dscp(struct __sk_buff *skb, __u8 dscp)
9191
ipv6_change_dsfield(ipv6hdr, INET_ECN_MASK, dscp << 2);
9292
}
9393

94-
SEC("classifier/read")
94+
SEC("tc")
9595
int read_dscp(struct __sk_buff *skb)
9696
{
9797
__u32 key = bpf_get_hash_recalc(skb);
@@ -106,7 +106,7 @@ int read_dscp(struct __sk_buff *skb)
106106
return TC_ACT_OK;
107107
}
108108

109-
SEC("classifier/write")
109+
SEC("tc")
110110
int write_dscp(struct __sk_buff *skb)
111111
{
112112
__u32 key = skb->hash;

0 commit comments

Comments
 (0)