From: Maciej Gajdzica Date: Thu, 30 Apr 2015 12:02:32 +0000 (+0200) Subject: port: remove constant default MTU X-Git-Tag: spdx-start~9188 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=ab6f89f1ca353b27a85dd21f245bd0239f7bec75;p=dpdk.git port: remove constant default MTU p->mtu field should be used instead. Signed-off-by: Maciej Gajdzica Acked-by: Cristian Dumitrescu --- diff --git a/lib/librte_port/rte_port_frag.c b/lib/librte_port/rte_port_frag.c index ff0ab9b808..dce33d54b0 100644 --- a/lib/librte_port/rte_port_frag.c +++ b/lib/librte_port/rte_port_frag.c @@ -38,10 +38,6 @@ #include "rte_port_frag.h" -/* Default byte size for the IPv4 Maximum Transfer Unit (MTU). - * This value includes the size of IPv4 header. */ -#define IPV4_MTU_DEFAULT ETHER_MTU - /* Max number of fragments per packet allowed */ #define IPV4_MAX_FRAGS_PER_PACKET 0x80 @@ -160,7 +156,7 @@ rte_port_ring_reader_ipv4_frag_rx(void *port, p->n_pkts--; /* If not jumbo, pass current packet to output */ - if (pkt->pkt_len <= IPV4_MTU_DEFAULT) { + if (pkt->pkt_len <= p->mtu) { pkts[n_pkts_out++] = pkt; n_pkts_to_provide = n_pkts - n_pkts_out;