optimizate: clean up unused code && code formatting

This commit is contained in:
luwenpeng
2024-08-14 10:50:33 +08:00
parent 927d0cd344
commit 6e1c25a445
20 changed files with 61 additions and 86 deletions

View File

@@ -106,7 +106,7 @@ static void metadata_from_packet_to_mbuff(struct packet *pkt, marsio_buff_t *mbu
const struct route_ctx *route_ctx = packet_get_route_ctx(pkt);
const struct sids *sids = packet_get_sids(pkt);
uint64_t session_id = packet_get_session_id(pkt);
//uint64_t domain = packet_get_domain(pkt);
// uint64_t domain = packet_get_domain(pkt);
uint16_t link_id = packet_get_link_id(pkt);
int is_ctrl = packet_is_ctrl(pkt);
enum packet_direction direction = packet_get_direction(pkt);
@@ -296,7 +296,6 @@ int marsio_io_ingress(struct marsio_io *handle, uint16_t thr_idx, struct packet
}
pkt = &pkts[nr_parsed];
//memset(pkt, 0, sizeof(struct packet));
packet_parse(pkt, data, len);
metadata_from_mbuff_to_packet(mbuff, pkt);
nr_parsed++;