From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michal Jastrzebski Subject: [PATCH v2 1/3] port: removed IPV4_MTU_DEFAULT define Date: Thu, 30 Apr 2015 14:02:32 +0200 Message-ID: <1430395354-4160-2-git-send-email-michalx.k.jastrzebski@intel.com> References: <1430395354-4160-1-git-send-email-michalx.k.jastrzebski@intel.com> To: dev-VfR2kkLFssw@public.gmane.org Return-path: In-Reply-To: <1430395354-4160-1-git-send-email-michalx.k.jastrzebski-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces-VfR2kkLFssw@public.gmane.org Sender: "dev" From: Maciej Gajdzica p->mtu field should be used instead. Signed-off-by: Maciej Gajdzica --- lib/librte_port/rte_port_frag.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/lib/librte_port/rte_port_frag.c b/lib/librte_port/rte_port_frag.c index ff0ab9b..dce33d5 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; -- 1.7.9.5