X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=lib%2Flibrte_port%2Frte_port_frag.c;h=ff0ab9b808de05916503fbb0c85241dd6f0c9037;hb=54292e9520e0;hp=ce5026fc1c4e25f45db25b6b9f1901524d57c229;hpb=9ec4f0900be6f126b358f379b938ce324650003b;p=dpdk.git diff --git a/lib/librte_port/rte_port_frag.c b/lib/librte_port/rte_port_frag.c index ce5026fc1c..ff0ab9b808 100644 --- a/lib/librte_port/rte_port_frag.c +++ b/lib/librte_port/rte_port_frag.c @@ -34,6 +34,7 @@ #include #include +#include #include "rte_port_frag.h" @@ -93,7 +94,7 @@ rte_port_ring_reader_ipv4_frag_create(void *params, int socket_id) } /* Memory allocation */ - port = rte_zmalloc_socket("PORT", sizeof(*port), CACHE_LINE_SIZE, + port = rte_zmalloc_socket("PORT", sizeof(*port), RTE_CACHE_LINE_SIZE, socket_id); if (port == NULL) { RTE_LOG(ERR, PORT, "%s: port is NULL\n", __func__); @@ -159,7 +160,7 @@ rte_port_ring_reader_ipv4_frag_rx(void *port, p->n_pkts--; /* If not jumbo, pass current packet to output */ - if (pkt->pkt.pkt_len <= IPV4_MTU_DEFAULT) { + if (pkt->pkt_len <= IPV4_MTU_DEFAULT) { pkts[n_pkts_out++] = pkt; n_pkts_to_provide = n_pkts - n_pkts_out;