update stellar thread main loop
This commit is contained in:
@@ -9,8 +9,8 @@ typedef void *new_cb(void *options);
|
||||
typedef void free_cb(void *handle);
|
||||
typedef void *stat_cb(void *handle);
|
||||
typedef int init_cb(void *handle, uint16_t thread_id);
|
||||
typedef int recv_cb(void *handle, uint16_t thread_id, struct packet **pkt);
|
||||
typedef void send_cb(void *handle, uint16_t thread_id, struct packet *pkt);
|
||||
typedef int recv_cb(void *handle, uint16_t thread_id, struct packet *pkts, int nr_pkts);
|
||||
typedef void send_cb(void *handle, uint16_t thread_id, struct packet *pkts, int nr_pkts);
|
||||
|
||||
struct packet_io
|
||||
{
|
||||
@@ -109,12 +109,12 @@ int packet_io_init(struct packet_io *handle, uint16_t thread_id)
|
||||
return handle->on_init(handle->handle, thread_id);
|
||||
}
|
||||
|
||||
int packet_io_recv(struct packet_io *handle, uint16_t thread_id, struct packet **pkt)
|
||||
int packet_io_ingress(struct packet_io *handle, uint16_t thread_id, struct packet *pkts, int nr_pkts)
|
||||
{
|
||||
return handle->on_recv(handle->handle, thread_id, pkt);
|
||||
return handle->on_recv(handle->handle, thread_id, pkts, nr_pkts);
|
||||
}
|
||||
|
||||
void packet_io_send(struct packet_io *handle, uint16_t thread_id, struct packet *pkt)
|
||||
void packet_io_egress(struct packet_io *handle, uint16_t thread_id, struct packet *pkts, int nr_pkts)
|
||||
{
|
||||
handle->on_send(handle->handle, thread_id, pkt);
|
||||
handle->on_send(handle->handle, thread_id, pkts, nr_pkts);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user