2 // Copyright (c) 2010-2020 Intel Corporation
4 // Licensed under the Apache License, Version 2.0 (the "License");
5 // you may not use this file except in compliance with the License.
6 // You may obtain a copy of the License at
8 // http://www.apache.org/licenses/LICENSE-2.0
10 // Unless required by applicable law or agreed to in writing, software
11 // distributed under the License is distributed on an "AS IS" BASIS,
12 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 // See the License for the specific language governing permissions and
14 // limitations under the License.
26 uint16_t rx_pkt_hw(struct task_base *tbase, struct rte_mbuf ***mbufs);
27 uint16_t rx_pkt_hw_pow2(struct task_base *tbase, struct rte_mbuf ***mbufs);
28 uint16_t rx_pkt_hw1(struct task_base *tbase, struct rte_mbuf ***mbufs);
29 uint16_t rx_pkt_hw_l3(struct task_base *tbase, struct rte_mbuf ***mbufs);
30 uint16_t rx_pkt_hw_pow2_l3(struct task_base *tbase, struct rte_mbuf ***mbufs);
31 uint16_t rx_pkt_hw1_l3(struct task_base *tbase, struct rte_mbuf ***mbufs);
32 uint16_t rx_pkt_hw_ndp(struct task_base *tbase, struct rte_mbuf ***mbufs);
33 uint16_t rx_pkt_hw_pow2_ndp(struct task_base *tbase, struct rte_mbuf ***mbufs);
34 uint16_t rx_pkt_hw1_ndp(struct task_base *tbase, struct rte_mbuf ***mbufs);
36 /* The _multi variation of the function is used to work-around the
37 problem with QoS, multi-seg mbufs and vector PMD. When vector
38 PMD returns more than 32 packets, the two variations of the
39 receive function can be merged back together. */
40 uint16_t rx_pkt_hw_multi(struct task_base *tbase, struct rte_mbuf ***mbufs);
41 uint16_t rx_pkt_hw_pow2_multi(struct task_base *tbase, struct rte_mbuf ***mbufs);
42 uint16_t rx_pkt_hw1_multi(struct task_base *tbase, struct rte_mbuf ***mbufs);
43 uint16_t rx_pkt_hw_multi_l3(struct task_base *tbase, struct rte_mbuf ***mbufs);
44 uint16_t rx_pkt_hw_pow2_multi_l3(struct task_base *tbase, struct rte_mbuf ***mbufs);
45 uint16_t rx_pkt_hw1_multi_l3(struct task_base *tbase, struct rte_mbuf ***mbufs);
46 uint16_t rx_pkt_hw_multi_ndp(struct task_base *tbase, struct rte_mbuf ***mbufs);
47 uint16_t rx_pkt_hw_pow2_multi_ndp(struct task_base *tbase, struct rte_mbuf ***mbufs);
48 uint16_t rx_pkt_hw1_multi_ndp(struct task_base *tbase, struct rte_mbuf ***mbufs);
50 uint16_t rx_pkt_sw(struct task_base *tbase, struct rte_mbuf ***mbufs);
51 uint16_t rx_pkt_sw_pow2(struct task_base *tbase, struct rte_mbuf ***mbufs);
52 uint16_t rx_pkt_sw1(struct task_base *tbase, struct rte_mbuf ***mbufs);
53 uint16_t rx_pkt_self(struct task_base *tbase, struct rte_mbuf ***mbufs);
54 uint16_t rx_pkt_dummy(struct task_base *tbase, struct rte_mbuf ***mbufs);
55 uint16_t rx_pkt_dump(struct task_base *tbase, struct rte_mbuf ***mbufs);
56 uint16_t rx_pkt_trace(struct task_base *tbase, struct rte_mbuf ***mbufs);
57 uint16_t rx_pkt_distr(struct task_base *tbase, struct rte_mbuf ***mbufs);
58 uint16_t rx_pkt_bw(struct task_base *tbase, struct rte_mbuf ***mbufs);
59 uint16_t rx_pkt_tsc(struct task_base *tbase, struct rte_mbuf ***mbufs);
60 uint16_t rx_pkt_all(struct task_base *tbase, struct rte_mbuf ***mbufs);
61 uint16_t ring_deq(struct rte_ring *r, struct rte_mbuf **mbufs);
63 #endif /* _RX_PKT_H_ */