From 5ab22ca3ba7f120e0268bffc5cc2ae21d7e940a4 Mon Sep 17 00:00:00 2001 From: Anatoly Burakov Date: Wed, 28 May 2014 18:32:42 +0100 Subject: [PATCH] ip_frag: rename ipv4_fragmentation function Signed-off-by: Anatoly Burakov Acked-by: Thomas Monjalon --- examples/ipv4_frag/main.c | 2 +- lib/librte_ip_frag/rte_ip_frag.h | 2 +- lib/librte_ip_frag/rte_ipv4_fragmentation.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/ipv4_frag/main.c b/examples/ipv4_frag/main.c index 88dc1f632a..1376e6a93c 100644 --- a/examples/ipv4_frag/main.c +++ b/examples/ipv4_frag/main.c @@ -272,7 +272,7 @@ l3fwd_simple_forward(struct rte_mbuf *m, uint8_t port_in) qconf->tx_mbufs[port_out].m_table[len] = m; len2 = 1; } else { - len2 = rte_ipv4_fragmentation(m, + len2 = rte_ipv4_fragment_packet(m, &qconf->tx_mbufs[port_out].m_table[len], (uint16_t)(MBUF_TABLE_SIZE - len), IPV4_MTU_DEFAULT, diff --git a/lib/librte_ip_frag/rte_ip_frag.h b/lib/librte_ip_frag/rte_ip_frag.h index 31b194c6c2..877fbc0901 100644 --- a/lib/librte_ip_frag/rte_ip_frag.h +++ b/lib/librte_ip_frag/rte_ip_frag.h @@ -196,7 +196,7 @@ rte_ip_frag_table_destroy( struct rte_ip_frag_tbl *tbl) * in the pkts_out array. * Otherwise - (-1) * errno. */ -int32_t rte_ipv4_fragmentation(struct rte_mbuf *pkt_in, +int32_t rte_ipv4_fragment_packet(struct rte_mbuf *pkt_in, struct rte_mbuf **pkts_out, uint16_t nb_pkts_out, uint16_t mtu_size, struct rte_mempool *pool_direct, diff --git a/lib/librte_ip_frag/rte_ipv4_fragmentation.c b/lib/librte_ip_frag/rte_ipv4_fragmentation.c index 6e5feb63d6..7ec20cf522 100644 --- a/lib/librte_ip_frag/rte_ipv4_fragmentation.c +++ b/lib/librte_ip_frag/rte_ipv4_fragmentation.c @@ -96,7 +96,7 @@ static inline void __free_fragments(struct rte_mbuf *mb[], uint32_t num) * Otherwise - (-1) * . */ int32_t -rte_ipv4_fragmentation(struct rte_mbuf *pkt_in, +rte_ipv4_fragment_packet(struct rte_mbuf *pkt_in, struct rte_mbuf **pkts_out, uint16_t nb_pkts_out, uint16_t mtu_size, -- 2.20.1