This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
stellar-stellar/src/packet_io/marsio_io.h

26 lines
760 B
C
Raw Normal View History

2024-04-10 17:50:51 +08:00
#ifndef _MARSIO_IO_H
#define _MARSIO_IO_H
#ifdef __cpluscplus
extern "C"
{
#endif
#include "packet_io.h"
struct marsio_io;
struct marsio_io *marsio_io_new(const char *app_symbol, const char *dev_symbol, uint16_t *cpu_mask, uint8_t nr_threads);
void marsio_io_free(struct marsio_io *handle);
2024-04-16 14:12:41 +08:00
struct io_stat *marsio_io_get_stat(struct marsio_io *handle);
2024-04-10 17:50:51 +08:00
int marsio_io_init(struct marsio_io *handle, uint16_t thr_idx);
int marsio_io_ingress(struct marsio_io *handle, uint16_t thr_idx, struct packet *pkts, int nr_pkts);
void marsio_io_egress(struct marsio_io *handle, uint16_t thr_idx, struct packet *pkts, int nr_pkts);
void marsio_io_drop(struct marsio_io *handle, uint16_t thr_idx, struct packet *pkts, int nr_pkts);
#ifdef __cpluscplus
}
#endif
#endif