summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorsongyanchao <[email protected]>2023-06-01 07:05:49 +0000
committersongyanchao <[email protected]>2023-06-01 07:05:49 +0000
commit7a9dca3600ac9de5572661a1a30e7f22b1e3cca6 (patch)
treec116dfb1817c9d75057dbcceb12996ce5e5c06b7 /app
parente54fc0cfc7f4024b95aa0c6594ab9c4db8c6fd0e (diff)
🎈 perf: rename link_db to peer
rename link_db to peer
Diffstat (limited to 'app')
-rw-r--r--app/src/mrb.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/src/mrb.c b/app/src/mrb.c
index eee0787..d2443a8 100644
--- a/app/src/mrb.c
+++ b/app/src/mrb.c
@@ -676,7 +676,7 @@ struct mrb_metadata_route_ctx
uint8_t link_id;
uint16_t port_ingress;
uint16_t port_egress;
- uint16_t link_db_index;
+ uint16_t peer_index;
uint32_t hash_usr;
};
@@ -699,7 +699,7 @@ int marsio_buff_get_metadata(marsio_buff_t * m, enum mr_buff_metadata_type type,
route_ctx->dir = mrb_metadata->dir;
route_ctx->port_ingress = mrb_metadata->port_ingress;
route_ctx->port_egress = mrb_metadata->port_egress;
- route_ctx->link_db_index = mrb_metadata->link_db_index;
+ route_ctx->peer_index = mrb_metadata->peer_index;
route_ctx->link_id = mrb_metadata->link_id;
route_ctx->hash_usr = mbuf->hash.usr;
}
@@ -769,7 +769,7 @@ int marsio_buff_set_metadata(marsio_buff_t * m, enum mr_buff_metadata_type type,
mrb_metadata->dir = route_ctx->dir;
mrb_metadata->port_ingress = route_ctx->port_ingress;
mrb_metadata->port_egress = route_ctx->port_egress;
- mrb_metadata->link_db_index = route_ctx->link_db_index;
+ mrb_metadata->peer_index = route_ctx->peer_index;
mrb_metadata->link_id = route_ctx->link_id;
mbuf->hash.usr = route_ctx->hash_usr;
return 0;