From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-we0-f175.google.com (mail-we0-f175.google.com [74.125.82.175]) by dpdk.org (Postfix) with ESMTP id D3E96B3BB for ; Wed, 17 Sep 2014 15:41:29 +0200 (CEST) Received: by mail-we0-f175.google.com with SMTP id w61so1442208wes.6 for ; Wed, 17 Sep 2014 06:47:11 -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:in-reply-to :references; bh=cNmwgSMktEGvw8+U2c2pX+nFT5kD5uG1N3LN6+OkNmM=; b=ZqxEqAxvM4U5VmqNUurte+iXOZcQliDv7ke9vra852tfrgx0tLAsQ0BZgE+w9z1pcS UbU0FLIITcMctIUOXMHQFLwqHXjrxN1/U+k3pOhExX8SQYlOPrlkUnz4HDgw2nIGYtoQ 4Hymk5Zdc9qN7/1CksdvdwJJxDr7sRsKu02uazgT8lE9HxGAxlioCTt2p3ifjc52yCQZ 1Zc5W5Q0hzkZ5hNL+SSR/E5IemItXplOJVDLnHEcmhvbW7hIwsyf0pWiNJjGZ8kCpqsD veEXby3QLAcQL8TDiE8b1CRKzviaIKMK1zIe7hknxf8Nqp14gSEuY4Qt5W7I269WZ85/ fx+g== X-Gm-Message-State: ALoCoQmgk3TbE9x+DJynMaJ18b4sBv+VkyFnf4EPm9jittrQZoDORizVGqKh+E+XWV5s9IHl7SDz X-Received: by 10.180.36.84 with SMTP id o20mr13700019wij.9.1410961630727; Wed, 17 Sep 2014 06:47:10 -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 fa20sm5712872wic.1.2014.09.17.06.47.08 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 17 Sep 2014 06:47:10 -0700 (PDT) From: David Marchand To: dev@dpdk.org Date: Wed, 17 Sep 2014 15:46:38 +0200 Message-Id: <1410961612-8571-7-git-send-email-david.marchand@6wind.com> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1410961612-8571-1-git-send-email-david.marchand@6wind.com> References: <1410961612-8571-1-git-send-email-david.marchand@6wind.com> Subject: [dpdk-dev] [PATCH v3 06/20] 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: Wed, 17 Sep 2014 13:41:31 -0000 Signed-off-by: David Marchand Acked-by: Bruce Richardson --- 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 9a3fd0d..98fbd46 100644 --- a/lib/librte_pmd_ixgbe/ixgbe_rxtx.c +++ b/lib/librte_pmd_ixgbe/ixgbe_rxtx.c @@ -3488,12 +3488,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"); 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"); dev->rx_pkt_burst = ixgbe_recv_scattered_pkts; dev->data->scattered_rx = 1; } @@ -3979,12 +3983,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"); 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"); dev->rx_pkt_burst = ixgbe_recv_scattered_pkts; dev->data->scattered_rx = 1; } -- 1.7.10.4