[PACKET_IO]format code style

This commit is contained in:
liuwentan
2022-08-10 10:21:07 +08:00
parent a93ffa9078
commit e5146a6cbe
7 changed files with 25 additions and 30 deletions

View File

@@ -23,7 +23,7 @@
* note:
* 1. packet_io_XXX function is supported by packet_io.h
* 2. pio_XXX function is supported by pio_pcap_live.h/pio_pcap_file.h/pio_marsio.h
**/
*/
struct pio_instance_operations {
int (*create)(struct packet_io_instance *pinst);
@@ -104,7 +104,7 @@ struct packet_io_device {
*
* @param instance_name: packet_io instance name
* @param mode: packet_io run mode
**/
*/
struct packet_io_instance *
packet_io_instance_create(const char *instance_name, const enum packet_io_run_mode mode);
@@ -118,7 +118,7 @@ void packet_io_instance_destroy(struct packet_io_instance *pinst);
* @param dev_name: packet_io device name
* @param nr_rxq: number of receive queue for the device
* @param nr_txq: number of send queue for the device
**/
*/
struct packet_io_device *
packet_io_device_open(struct packet_io_instance *pinst, const char *dev_name, uint32_t nr_rxq, uint32_t nr_txq);
@@ -132,7 +132,7 @@ void packet_io_device_close(struct packet_io_device *dev);
* @param rxq_id: which queue will receive from
* @param p: received packet's pointer array
* @param nr_p: number of received packets
**/
*/
int packet_io_device_rx(struct packet_io_device *pdev, uint32_t rxq_id, struct packet **pkts, int nr_pkts);
/**
@@ -142,12 +142,12 @@ int packet_io_device_rx(struct packet_io_device *pdev, uint32_t rxq_id, struct p
* @param rxq_id: which queue will send to
* @param p: prepare to send packet's pointer array
* @param nr_p: number of packets which prepare to send
**/
*/
int packet_io_device_tx(struct packet_io_device *pdev, uint32_t txq_id, struct packet **pkts, int nr_pkts);
/*
* @brief packet_io free packet buff
**/
*/
void packet_io_pkts_free(struct packet_io_device *pdev, uint32_t qid, struct packet **pkts, int nr_pkts);
/**