From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-we0-f174.google.com (mail-we0-f174.google.com [74.125.82.174]) by dpdk.org (Postfix) with ESMTP id CD8EDB3A7 for ; Mon, 1 Sep 2014 12:20:26 +0200 (CEST) Received: by mail-we0-f174.google.com with SMTP id u57so5197645wes.5 for ; Mon, 01 Sep 2014 03:24:53 -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=fbVXEKQvWVyN5Z45uLNF57MPK8I7uZ4l3vfTCmmj/0o=; b=ROLst8W0s3BJxFSe7vQJrt8EzLOazqAbPQL7toKnoLv48d+pV5E9Kmz5KUpldUcNjl /GHHirM7X1JmGioqsFcz4G7E6U+u0uhXN1RGq6hEJp9ZTU1L1JUIafiZWsNrgc3mqKld utpKikboLaWYn7dYJjYwKHTmAfQzZ0b0lFsfAhZpzxtfkZs3xTmKHlwODUpdS/4cc6Vb YVfnjNvyenMlgBOkP+JiYIxogemLe/Q7PnJX9wLdKw5vVZFNiDKCBuMrOTtk3Nv4Lr1T fmngDOPABEPCFO+57DRuiggqLzZwe2FuxrOcuQKfQ2bWtrT6MVwG2KHmwYJQRZJPWfH/ HgYA== X-Gm-Message-State: ALoCoQlrMdrxa9jbEMZcvOC/RoWtgmjpqh3kEkqaw8mO/Lx1L05PNneZiIEzh27JoGiNxMD8dWkI X-Received: by 10.180.10.230 with SMTP id l6mr4128908wib.62.1409567093716; Mon, 01 Sep 2014 03:24:53 -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 lm18sm24287018wic.22.2014.09.01.03.24.52 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 01 Sep 2014 03:24:53 -0700 (PDT) From: David Marchand To: dev@dpdk.org Date: Mon, 1 Sep 2014 12:24:28 +0200 Message-Id: <1409567080-27083-6-git-send-email-david.marchand@6wind.com> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1409567080-27083-1-git-send-email-david.marchand@6wind.com> References: <1409567080-27083-1-git-send-email-david.marchand@6wind.com> Subject: [dpdk-dev] [PATCH v2 05/17] 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: Mon, 01 Sep 2014 10:20:26 -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 981df60..dbbe612 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; } @@ -3981,12 +3985,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