Skip to content

Commit 5c9642d

Browse files
committed
move api to ans_ip_intf.h
1 parent 931e366 commit 5c9642d

File tree

2 files changed

+28
-29
lines changed

2 files changed

+28
-29
lines changed

librte_ans/include/ans_init.h

-29
Original file line numberDiff line numberDiff line change
@@ -74,35 +74,6 @@ struct ans_init_config
7474
*/
7575
int ans_initialize(struct ans_init_config *user_conf);
7676

77-
/**
78-
* Handle the received packets by ans stack
79-
*
80-
* @param portid
81-
* port id.
82-
* @param rx_pkts
83-
* packet buffer array.
84-
* @param nb_pkts
85-
* packets number.
86-
*
87-
* @return void
88-
*
89-
*/
90-
void ans_eth_rx_burst(uint8_t portid, struct rte_mbuf **rx_pkts, const uint16_t nb_pkts);
91-
92-
93-
/**
94-
* Statistics dropped packets by port
95-
*
96-
* @param portid
97-
* port id.
98-
* @param packets_nb
99-
* droped packets number.
100-
*
101-
* @return
102-
*
103-
*/
104-
void ans_eth_stats(uint8_t portid, uint16_t packets_nb, uint16_t droped_nb);
105-
10677
/**
10778
* Handle ans internal message.
10879
*

librte_ans/include/ans_ip_intf.h

+28
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,34 @@
7171
*
7272
*/
7373

74+
/**
75+
* Handle the received packets by ans stack
76+
*
77+
* @param portid
78+
* port id.
79+
* @param rx_pkts
80+
* packet buffer array.
81+
* @param nb_pkts
82+
* packets number.
83+
*
84+
* @return void
85+
*
86+
*/
87+
void ans_eth_rx_burst(uint8_t portid, struct rte_mbuf **rx_pkts, const uint16_t nb_pkts);
88+
89+
90+
/**
91+
* Statistics dropped packets by port
92+
*
93+
* @param portid
94+
* port id.
95+
* @param packets_nb
96+
* droped packets number.
97+
*
98+
* @return
99+
*
100+
*/
101+
void ans_eth_stats(uint8_t portid, uint16_t packets_nb, uint16_t droped_nb);
74102

75103
/**
76104
* Add an interface.

0 commit comments

Comments
 (0)