rename packet_io_ingress/egress to packet_io_input/output

This commit is contained in:
luwenpeng
2024-08-28 09:58:39 +08:00
parent f6ae908917
commit aa1bfb383f
7 changed files with 21 additions and 21 deletions

View File

@@ -219,7 +219,7 @@ static void *work_thread(void *arg)
if (packet_io_init(packet_io, thr_idx) != 0)
{
CORE_LOG_ERROR("unable to init marsio thread");
CORE_LOG_ERROR("unable to init packet io");
return NULL;
}
@@ -237,7 +237,7 @@ static void *work_thread(void *arg)
* Suggestion: After modifying the system time, restart the service to ensure consistent timing.
*/
now_ms = clock_get_real_time_ms();
nr_recv = packet_io_ingress(packet_io, thr_idx, packets, RX_BURST_MAX);
nr_recv = packet_io_input(packet_io, thr_idx, packets, RX_BURST_MAX);
if (nr_recv == 0)
{
goto idle_tasks;
@@ -323,12 +323,12 @@ static void *work_thread(void *arg)
{
// TODO
// copy meta from defraged_pkt to packets[i]
packet_io_egress(packet_io, thr_idx, &packets[i], 1);
packet_io_output(packet_io, thr_idx, &packets[i], 1);
packet_free(defraged_pkt);
}
else
{
packet_io_egress(packet_io, thr_idx, pkt, 1);
packet_io_output(packet_io, thr_idx, pkt, 1);
}
}
}
@@ -717,7 +717,7 @@ void stellar_send_build_packet(struct stellar *st, struct packet *pkt)
{
// TODO
abort();
packet_io_egress(packet_io, thr_idx, pkt, 1);
packet_io_output(packet_io, thr_idx, pkt, 1);
}
else
{