From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pg0-f44.google.com (mail-pg0-f44.google.com [74.125.83.44]) by dpdk.org (Postfix) with ESMTP id E359D7CBA for ; Fri, 25 Aug 2017 01:18:39 +0200 (CEST) Received: by mail-pg0-f44.google.com with SMTP id t3so5095596pgt.0 for ; Thu, 24 Aug 2017 16:18:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=sCFMZaerTFYxZA/zhNNU0pTsb1PsLhdgzGD2JTmsp0w=; b=QoPmh9lggWfM4psW3pcSx8uzVIOzOVnnwWgNdF7n7adthJyKXI02imKmGbH6cF6rZh x6NEn1E6iUtEHzpaFVLEAiAZ+EE/Hl+wr7PYnoaBEOAFCBhKbTSC240L3Oe8VWxREaaz r7nyqz3833A08UDOl9sHOFWmg1RBiacIBDb58SpD3N4DKYsoNPDnufk6vIHFuWnNpDTj XDo0JDExYNLKCFeNR1E3xDhSl+7PfbbDOrZPlhBrS4wjbxoqQulm+lm1VaW+wcLVeztj Z48O9pfUtSOKwcH9DUUD3lUtcKVqi53/BNTyPL4l8Y6w+cDDqvcg24tRlkJk/qzXQezp Fj9A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=sCFMZaerTFYxZA/zhNNU0pTsb1PsLhdgzGD2JTmsp0w=; b=hIzJ8yQfqQngcbuzD/aXJTa09gtErTndrS4z13sQ9OzyvxDbeil3Hqm5JHSRBAlmmS 48LyWUWO8UEg7qt81vvqwkIffmWW+u+mdVbKvlvMi19LfXa30H1yS5X7AZKDofKG3tv9 JDicqYNI7T2prLdSL56R4Jo9+gnBi0rkqxk8h0wGV+yGoiHdB59MH/dVnExW3v21FCw0 /UYNr/YaH2ZNrcMtqZdwsvJ/DeGKm+46MgR3Efk/jTqtKh0/zjZIiLDIs7jXmZVCJ3T1 qHfKi6cZjH/d0BTo0QhP6d+YHFL1F7nfHjmnj8RqUOiU71r8b0WK9qMrDU0sn8q4LyKt oUUQ== X-Gm-Message-State: AHYfb5gB9Cy7kWzoV0C+vRCLqetc9vlHtWfXRT2JCPSe+9xbPQyf7/y+ 2h9nTmE9PfgngHvJ X-Received: by 10.99.161.26 with SMTP id b26mr2018013pgf.235.1503616719072; Thu, 24 Aug 2017 16:18:39 -0700 (PDT) Received: from xeon-e3 (76-14-207-240.or.wavecable.com. [76.14.207.240]) by smtp.gmail.com with ESMTPSA id a13sm8526134pgd.60.2017.08.24.16.18.38 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 24 Aug 2017 16:18:38 -0700 (PDT) Date: Thu, 24 Aug 2017 16:18:31 -0700 From: Stephen Hemminger To: Dharmesh Mehta Cc: Users Message-ID: <20170824161831.2967997e@xeon-e3> In-Reply-To: <1098935201.614169.1503613167623@mail.yahoo.com> References: <1098935201.614169.1503613167623.ref@mail.yahoo.com> <1098935201.614169.1503613167623@mail.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-users] Fails to receive data more than 1500 bytes. X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Aug 2017 23:18:40 -0000 On Thu, 24 Aug 2017 22:19:27 +0000 (UTC) Dharmesh Mehta wrote: > Hello, > I am using Intel i350 NIC card, and I am not able to receive data more than 1500 bytes in a packet. I tried igb_uio as well as uio_pci_generic driver, but both fails. > If I reduce data <= 1500 bytes than it works, but any thing more than 1500 is not able to receive. > Do I have to tune any config parameter in order to support more than 1500? > I tried to set MTU from code using API - rte_eth_dev_set_mtu(port_id, mtu) , but no success. > 0000:03:00.0 'I350 Gigabit Network Connection 1521' drv=igb_uio unused=vfio-pci,uio_pci_generic0000:03:00.1 'I350 Gigabit Network Connection 1521' drv=uio_pci_generic unused=igb_uio,vfio-pci0000:03:00.2 'I350 Gigabit Network Connection 1521' drv=uio_pci_generic unused=igb_uio,vfio-pci0000:03:00.3 'I350 Gigabit Network Connection 1521' drv=uio_pci_generic unused=igb_uio,vfio-pci > Thanks in advance.DM. In order to support >1500 bytes, you need to at least: 1. set jumbo_frame when setting rxmode 2. set enable_scatter in rxmode (unless mtu + overhead < pool size) 3. make sure pool mbuf size > eth->min_rx_buf_size