🎈 perf(packet utils): inline packet set route ctx

This commit is contained in:
yangwei
2024-08-01 01:58:36 +08:00
committed by luwenpeng
parent 0deeb7f3e7
commit 3a7cb200ea
3 changed files with 20 additions and 23 deletions

View File

@@ -15,16 +15,6 @@
* metadata utils
******************************************************************************/
void packet_set_route_ctx(struct packet *pkt, const struct route_ctx *ctx)
{
pkt->meta.route_ctx = *ctx;
}
const struct route_ctx *packet_get_route_ctx(const struct packet *pkt)
{
return &pkt->meta.route_ctx;
}
void packet_set_sids(struct packet *pkt, const struct sids *sids)
{
pkt->meta.sids = *sids;
@@ -116,15 +106,6 @@ enum packet_action packet_get_action(const struct packet *pkt)
return pkt->meta.action;
}
void packet_set_origin_ctx(struct packet *pkt, void *ctx)
{
pkt->meta.origin_ctx = ctx;
}
const void *packet_get_origin_ctx(const struct packet *pkt)
{
return pkt->meta.origin_ctx;
}
/******************************************************************************
* tuple uitls