From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-io0-f178.google.com (mail-io0-f178.google.com [209.85.223.178]) by dpdk.org (Postfix) with ESMTP id 9A0E1137C for ; Wed, 20 Apr 2016 11:35:38 +0200 (CEST) Received: by mail-io0-f178.google.com with SMTP id u185so46385660iod.3 for ; Wed, 20 Apr 2016 02:35:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=semihalf-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=gX17sWy8+BbLteifWEq1LHOJCCHsH+NqYib2y+Gua28=; b=LxmlaHSslUIQ1kBzSNri5DYVXlTfOKojAjxxueoqBU2mtojpV3fQEr8YoEZSf91mza wnwLqeD2wlDJnXTAW0KDIKtFZzAIvjeQBjZgbvJy6uBNtnZ/R3kq2muIqmCuiprk6IzI kSiwpirbhPXf8UEn8IqT7jLFKsk441MHRFyCDMx84s7PWyQFiz3hSffUw3wO2yVAgZmV BV4iN5bab0T/EdTDFoBt2lujh+Y/ely0W01wOL4qHciCTo6vo/WDbWO4FOrJ04QnGYCY fUSke3UZWdXtdHb1o0CnQ2nup9X5vuTcpr1/OTFQ8Mg/rCqqe+JrSH/hnaluzm71y7rr dtvA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=gX17sWy8+BbLteifWEq1LHOJCCHsH+NqYib2y+Gua28=; b=d6hDNGPtkSLoLENy6XPubmw5SUcc8LoSnYJzcgAiTsArPn28uyUr5blH5/TNr2hP17 FK0pZv4E30NMbZAbP3+VWaRE/iarlb3Y9so4c0jZfpgtew6n7Xv1xmUJPrsF62rREKRB 6ENx4TFx7sA2aIivOz+V9nuWVtibiRoO4Ff4iiyL+XqiSoO6tdtCkpGZYIqs8oT0fQ6a DBDs0JoZaV9QYjnDNoqqMZx/mCE+QSJM7Glte7pepaIEM2BTU35NM+li9SzXqUoniDqP broIe+selJEDtkzBjkko3p3UKXH1XuvyZCPbvQYBJWccC3XjPnuXMZVlGYOHb0cN11FG +DIA== X-Gm-Message-State: AOPr4FW4ox2fPjWctGl6i68LpjzDHctr5ivBUKx2lNxeDXK0i38Ht5JD0FM6S1au8/dsIvxDdX6pXrz+nHNxMg== X-Received: by 10.107.53.200 with SMTP id k69mr1614559ioo.174.1461144938092; Wed, 20 Apr 2016 02:35:38 -0700 (PDT) MIME-Version: 1.0 Received: by 10.79.4.212 with HTTP; Wed, 20 Apr 2016 02:35:18 -0700 (PDT) In-Reply-To: References: From: Andriy Berestovskyy Date: Wed, 20 Apr 2016 11:35:18 +0200 Message-ID: To: Jay Rolette Cc: DPDK Content-Type: text/plain; charset=UTF-8 Subject: Re: [dpdk-dev] Couple of PMD questions X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Apr 2016 09:35:38 -0000 Hi Jay, On Tue, Apr 19, 2016 at 10:16 PM, Jay Rolette wrote: > Should the driver error out in that case instead of only "sort of" working? +1, we hit the same issue. Error or log message would help. > If I support a max frame size of 9216 bytes (exactly a 1K multiple to make > the NIC happy), then max_rx_pkt_len is going to be 9216 and data_room_size > will be 9216 + RTE_PKTMBUF_HEADROOM. Try to set max_rx_pkt_len <= 9K - 8 and mempool element size to 9K + headroom + size of structures. > Is that check correct? Datasheet says: The MFS does not include the 4 bytes of the VLAN header. Packets with VLAN header can be as large as MFS + 4. When double VLAN is enabled, the device adds 8 to the MFS for any packets. Regards, Andriy