reset packet tags on packet exdata runtime new

This commit is contained in:
luwenpeng
2024-11-27 18:23:59 +08:00
parent 39948a23ad
commit 10dc717b07
4 changed files with 13 additions and 8 deletions

View File

@@ -968,6 +968,12 @@ void *packet_get_exdata(const struct packet *pkt, int idx)
return exdata_get(exdata_rt, idx);
}
void packet_tag_clean(struct packet *pkt)
{
pkt->tag_key_bits = 0;
pkt->tag_val_bits = 0;
}
void packet_tag_set(struct packet *pkt, uint64_t key_bits, uint64_t val_bits)
{
pkt->tag_key_bits |= key_bits;