From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH v2 0/7] add mtu and flow control handlers Date: Tue, 17 Jun 2014 11:25:31 +0200 Message-ID: <18221367.CmmvaOYvmf@xps13> References: <1402666663-10260-1-git-send-email-david.marchand@6wind.com> <539FFF5A.80307@6wind.com> <2601191342CEEE43887BDE71AB9772580EFB75F6@IRSMSX105.ger.corp.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev-VfR2kkLFssw@public.gmane.org To: "Ananyev, Konstantin" Return-path: In-Reply-To: <2601191342CEEE43887BDE71AB9772580EFB75F6-kPTMFJFq+rEu0RiL9chJVbfspsVTdybXVpNB7YpNyf8@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" 2014-06-17 08:57, Ananyev, Konstantin: > >> 3) if ((mtu < 68) || (frame_size > dev_info.max_rx_pktlen)) > >> Can we add a new define for min allowable MTU (68) as it used in few places. > > >RTE_IPV4_MIN_MTU then ? > > Sounds good to me. > > >I am not sure where this belongs, it could go in rte_ethdev.h. > > Probably rte_ether.h? As you konw, rte_ether.h is for ethernet definition (and should be located in librte_net). For RTE_IPV4_MIN_MTU, I think librte_net/rte_ip.h is more appropriate. -- Thomas