git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
port: use mbuf alloc bulk instead of mempool
[dpdk.git]
/
lib
/
librte_port
/
rte_port_frag.c
diff --git
a/lib/librte_port/rte_port_frag.c
b/lib/librte_port/rte_port_frag.c
index
320407e
..
a00c9ae
100644
(file)
--- a/
lib/librte_port/rte_port_frag.c
+++ b/
lib/librte_port/rte_port_frag.c
@@
-88,7
+88,7
@@
static void *
rte_port_ring_reader_frag_create(void *params, int socket_id, int is_ipv4)
{
struct rte_port_ring_reader_frag_params *conf =
rte_port_ring_reader_frag_create(void *params, int socket_id, int is_ipv4)
{
struct rte_port_ring_reader_frag_params *conf =
-
(struct rte_port_ring_reader_frag_params *)
params;
+ params;
struct rte_port_ring_reader_frag *port;
/* Check input parameters */
struct rte_port_ring_reader_frag *port;
/* Check input parameters */
@@
-159,7
+159,7
@@
rte_port_ring_reader_frag_rx(void *port,
uint32_t n_pkts)
{
struct rte_port_ring_reader_frag *p =
uint32_t n_pkts)
{
struct rte_port_ring_reader_frag *p =
-
(struct rte_port_ring_reader_frag *)
port;
+ port;
uint32_t n_pkts_out;
n_pkts_out = 0;
uint32_t n_pkts_out;
n_pkts_out = 0;
@@
-277,7
+277,7
@@
rte_port_frag_reader_stats_read(void *port,
struct rte_port_in_stats *stats, int clear)
{
struct rte_port_ring_reader_frag *p =
struct rte_port_in_stats *stats, int clear)
{
struct rte_port_ring_reader_frag *p =
-
(struct rte_port_ring_reader_frag *)
port;
+ port;
if (stats != NULL)
memcpy(stats, &p->stats, sizeof(p->stats));
if (stats != NULL)
memcpy(stats, &p->stats, sizeof(p->stats));