ip_frag: rename ipv4_fragmentation function
authorAnatoly Burakov <anatoly.burakov@intel.com>
Wed, 28 May 2014 17:32:42 +0000 (18:32 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Mon, 16 Jun 2014 16:55:05 +0000 (18:55 +0200)
Signed-off-by: Anatoly Burakov <anatoly.burakov@intel.com>
Acked-by: Thomas Monjalon <thomas.monjalon@6wind.com>
examples/ipv4_frag/main.c
lib/librte_ip_frag/rte_ip_frag.h
lib/librte_ip_frag/rte_ipv4_fragmentation.c

index 88dc1f6..1376e6a 100644 (file)
@@ -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,
index 31b194c..877fbc0 100644 (file)
@@ -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,
index 6e5feb6..7ec20cf 100644 (file)
@@ -96,7 +96,7 @@ static inline void __free_fragments(struct rte_mbuf *mb[], uint32_t num)
  *   Otherwise - (-1) * <errno>.
  */
 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,