optimizate: clean up unused code && code formatting
This commit is contained in:
@@ -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++;
|
||||
|
||||
Reference in New Issue
Block a user