From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wi0-f181.google.com (mail-wi0-f181.google.com [209.85.212.181]) by dpdk.org (Postfix) with ESMTP id 8B2DD8F9B for ; Mon, 31 Aug 2015 08:41:49 +0200 (CEST) Received: by widfa3 with SMTP id fa3so13410770wid.1 for ; Sun, 30 Aug 2015 23:41:49 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=Ac/dYgX0W9fcwoJUqi21gfGyrsGcBOnM193or42mPu0=; b=C9smUQDMymetZxtq6Yrs/QZmKKXM8SWUnEhb5sk7mcUGuEyu8eFMUNXwzh3cMLCOHM kqbi1/wJw2YDXpZP7tD4mlD+MDhlyLRBjv9lI8hoXKgshbYPVh4uMWUOb6ujQtl1WbbL PmMFsp+qAH1Swu9gJzzjSBGUbybv61D+pBN1Pqq77p5I3MCrULaikp2VBmbWGp4Mfyso NM4jFTcI1EhjDrc92V0yRsBH7m4hiN7Gyl7/nQ7tDPPT+8BU4JnOtFKezbPocUdn6eKF WEX8QHMXRJspyKawVzAwln27UVdx68O4dUrWJQ8bTJZ3v26QlSZpOTtk9ztyAfaZ852/ 1O0Q== X-Gm-Message-State: ALoCoQlwRg1TvIJpuhP7J6JUcENPhcqugvWcWlI96eyYua2IjfLwWJWtVLugZtOsTyNJ5mD799U5 X-Received: by 10.180.96.230 with SMTP id dv6mr18124837wib.23.1441003309364; Sun, 30 Aug 2015 23:41:49 -0700 (PDT) Received: from vladz-laptop.localdomain (bzq-79-180-224-237.red.bezeqint.net. [79.180.224.237]) by smtp.gmail.com with ESMTPSA id s7sm16371150wix.23.2015.08.30.23.41.47 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 30 Aug 2015 23:41:48 -0700 (PDT) From: Vlad Zolotarov To: dev@dpdk.org Date: Mon, 31 Aug 2015 09:41:45 +0300 Message-Id: <1441003305-24055-1-git-send-email-vladz@cloudius-systems.com> X-Mailer: git-send-email 2.1.0 Subject: [dpdk-dev] [PATCH v1] net: i40e: add VLAN tag size to RXMAX 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: Mon, 31 Aug 2015 06:41:49 -0000 HW requires it regardless the presence of the VLAN tag in the received frame. Otherwise Rx frames are being filtered out on the MTU-4 boundary. Signed-off-by: Vlad Zolotarov --- drivers/net/i40e/i40e_rxtx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/i40e/i40e_rxtx.c b/drivers/net/i40e/i40e_rxtx.c index eae4ab0..22aaeb1 100644 --- a/drivers/net/i40e/i40e_rxtx.c +++ b/drivers/net/i40e/i40e_rxtx.c @@ -3156,7 +3156,7 @@ i40e_rx_queue_init(struct i40e_rx_queue *rxq) rx_ctx.hsplit_0 = I40E_HEADER_SPLIT_ALL; else rx_ctx.hsplit_0 = I40E_HEADER_SPLIT_NONE; - rx_ctx.rxmax = rxq->max_pkt_len; + rx_ctx.rxmax = rxq->max_pkt_len + I40E_VLAN_TAG_SIZE; rx_ctx.tphrdesc_ena = 1; rx_ctx.tphwdesc_ena = 1; rx_ctx.tphdata_ena = 1; -- 2.1.0