From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wg0-f52.google.com (mail-wg0-f52.google.com [74.125.82.52]) by dpdk.org (Postfix) with ESMTP id DF5F4B37B for ; Tue, 26 Aug 2014 16:05:33 +0200 (CEST) Received: by mail-wg0-f52.google.com with SMTP id a1so14516706wgh.35 for ; Tue, 26 Aug 2014 07:09:34 -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:subject:date:message-id:in-reply-to :references; bh=ic12cwabr8AF04pQHIwPk+tgXpe/G9R1OLAjgEjmdkU=; b=dldcyKsOG9NzXtbAk6s54PBN1yMcAb8FuRASQNjyJI1Hfw/bIwq7R1Qb2ngDenkvQc kMGXTyyvMDoMz3jcnCJCQAeh9Abv+Y/dwVe3/UNiXAe93UbIhAwuB/dkfs2ZNL0brDkg dkmL2MMvE29nlBjtRJro+x6WtbyWBVbE6D4YXFJe0Js2xhSpYkBsGLK2kvutt8kUWjuF 7WXNeAZ6rP2UcVGAnuux8S6f6q59w/MLmVlBeiCId3EFQPU8To25yzUKNemL68Fqyz/Z P218FOk+xELg7aNjHxP0BFHTA7oby2LSMw1zTZIDh50WrdrNdVvxyXaMHwHGQhuQpyuy b91g== X-Gm-Message-State: ALoCoQmhiW1Oj2a5W9neeAzUYq4xyLf1buXlLZcaqqa1o3z6gUhinOr/InMaePLiDk71qHY+Vz5E X-Received: by 10.194.75.138 with SMTP id c10mr30613075wjw.9.1409062173928; Tue, 26 Aug 2014 07:09:33 -0700 (PDT) Received: from alcyon.dev.6wind.com (guy78-3-82-239-227-177.fbx.proxad.net. [82.239.227.177]) by mx.google.com with ESMTPSA id cy9sm12543569wib.18.2014.08.26.07.09.32 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 26 Aug 2014 07:09:33 -0700 (PDT) From: David Marchand To: dev@dpdk.org Date: Tue, 26 Aug 2014 16:09:13 +0200 Message-Id: <1409062162-19575-4-git-send-email-david.marchand@6wind.com> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1409062162-19575-1-git-send-email-david.marchand@6wind.com> References: <1409062162-19575-1-git-send-email-david.marchand@6wind.com> Subject: [dpdk-dev] [PATCH 03/11] ixgbe: add a message when forcing scatter mode 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: Tue, 26 Aug 2014 14:05:34 -0000 Signed-off-by: David Marchand --- lib/librte_pmd_ixgbe/ixgbe_rxtx.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/librte_pmd_ixgbe/ixgbe_rxtx.c b/lib/librte_pmd_ixgbe/ixgbe_rxtx.c index cbec821..e2804bd 100644 --- a/lib/librte_pmd_ixgbe/ixgbe_rxtx.c +++ b/lib/librte_pmd_ixgbe/ixgbe_rxtx.c @@ -3482,12 +3482,16 @@ ixgbe_dev_rx_init(struct rte_eth_dev *dev) /* It adds dual VLAN length for supporting dual VLAN */ if ((dev->data->dev_conf.rxmode.max_rx_pkt_len + 2 * IXGBE_VLAN_TAG_SIZE) > buf_size){ + if (!dev->data->scattered_rx) + PMD_INIT_LOG(DEBUG, "forcing scatter mode\n"); dev->data->scattered_rx = 1; dev->rx_pkt_burst = ixgbe_recv_scattered_pkts; } } if (dev->data->dev_conf.rxmode.enable_scatter) { + if (!dev->data->scattered_rx) + PMD_INIT_LOG(DEBUG, "forcing scatter mode\n"); dev->rx_pkt_burst = ixgbe_recv_scattered_pkts; dev->data->scattered_rx = 1; } @@ -3975,12 +3979,16 @@ ixgbevf_dev_rx_init(struct rte_eth_dev *dev) /* It adds dual VLAN length for supporting dual VLAN */ if ((dev->data->dev_conf.rxmode.max_rx_pkt_len + 2 * IXGBE_VLAN_TAG_SIZE) > buf_size) { + if (!dev->data->scattered_rx) + PMD_INIT_LOG(DEBUG, "forcing scatter mode\n"); dev->data->scattered_rx = 1; dev->rx_pkt_burst = ixgbe_recv_scattered_pkts; } } if (dev->data->dev_conf.rxmode.enable_scatter) { + if (!dev->data->scattered_rx) + PMD_INIT_LOG(DEBUG, "forcing scatter mode\n"); dev->rx_pkt_burst = ixgbe_recv_scattered_pkts; dev->data->scattered_rx = 1; } -- 1.7.10.4