From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <hzhan75@shecgisg004.sh.intel.com>
Received: from mga11.intel.com (mga11.intel.com [192.55.52.93])
 by dpdk.org (Postfix) with ESMTP id 59634B0FA
 for <dev@dpdk.org>; Thu,  5 Jun 2014 07:11:56 +0200 (CEST)
Received: from fmsmga001.fm.intel.com ([10.253.24.23])
 by fmsmga102.fm.intel.com with ESMTP; 04 Jun 2014 22:12:07 -0700
X-ExtLoop1: 1
X-IronPort-AV: E=Sophos;i="4.98,978,1392192000"; d="scan'208";a="542721299"
Received: from shilc102.sh.intel.com ([10.239.39.44])
 by fmsmga001.fm.intel.com with ESMTP; 04 Jun 2014 22:12:06 -0700
Received: from shecgisg004.sh.intel.com (shecgisg004.sh.intel.com
 [10.239.29.89])
 by shilc102.sh.intel.com (8.13.6/8.13.6/SuSE Linux 0.8) with ESMTP id
 s555C295025208; Thu, 5 Jun 2014 13:12:04 +0800
Received: from shecgisg004.sh.intel.com (localhost [127.0.0.1])
 by shecgisg004.sh.intel.com (8.13.6/8.13.6/SuSE Linux 0.8) with ESMTP id
 s555BwiF024084; Thu, 5 Jun 2014 13:12:00 +0800
Received: (from hzhan75@localhost)
 by shecgisg004.sh.intel.com (8.13.6/8.13.6/Submit) id s555BwWI024080;
 Thu, 5 Jun 2014 13:11:58 +0800
From: Helin Zhang <helin.zhang@intel.com>
To: dev@dpdk.org
Date: Thu,  5 Jun 2014 13:09:11 +0800
Message-Id: <1401944951-23783-28-git-send-email-helin.zhang@intel.com>
X-Mailer: git-send-email 1.7.0.7
In-Reply-To: <1401944951-23783-1-git-send-email-helin.zhang@intel.com>
References: <1401944951-23783-1-git-send-email-helin.zhang@intel.com>
Subject: [dpdk-dev] [PATCH v2 27/27] config: add configurations for enabling
	'Extended Tag' or resetting 'Max Read Request Size'
X-BeenThere: dev@dpdk.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: patches and discussions about DPDK <dev.dpdk.org>
List-Unsubscribe: <http://dpdk.org/ml/options/dev>,
 <mailto:dev-request@dpdk.org?subject=unsubscribe>
List-Archive: <http://dpdk.org/ml/archives/dev/>
List-Post: <mailto:dev@dpdk.org>
List-Help: <mailto:dev-request@dpdk.org?subject=help>
List-Subscribe: <http://dpdk.org/ml/listinfo/dev>,
 <mailto:dev-request@dpdk.org?subject=subscribe>
X-List-Received-Date: Thu, 05 Jun 2014 05:12:00 -0000

Sys files of 'extended_tag' and 'max_read_request_size' have been
supported in igb_uio, and can be changed during probing PCI. Three
items in configuration files are needed to support them at compile
time. Those three items are,
 - CONFIG_RTE_PCI_CONFIG
 - CONFIG_RTE_PCI_EXTENDED_TAG
 - CONFIG_RTE_PCI_MAX_READ_REQUEST_SIZE

Signed-off-by: Helin Zhang <helin.zhang@intel.com>
Signed-off-by: Jing Chen <jing.d.chen@intel.com>
Acked-by: Cunming Liang <cunming.liang@intel.com>
Acked-by: Jijiang Liu <jijiang.liu@intel.com>
Acked-by: Jingjing Wu <jingjing.wu@intel.com>
Tested-by: Waterman Cao <waterman.cao@intel.com>
---
 config/common_linuxapp | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/config/common_linuxapp b/config/common_linuxapp
index da20011..a020451 100644
--- a/config/common_linuxapp
+++ b/config/common_linuxapp
@@ -125,6 +125,16 @@ CONFIG_RTE_EAL_ALLOW_INV_SOCKET_ID=n
 CONFIG_RTE_EAL_ALWAYS_PANIC_ON_ERROR=n
 
 #
+# Special configurations in PCI Config Space for high performance
+# CONFIG_RTE_PCI_CONFIG is the compile switch for two features below
+# CONFIG_RTE_PCI_EXTENDED_TAG can be "on", "off"
+# CONFIG_RTE_PCI_MAX_READ_REQUEST_SIZE can be 128, 256, 512, 1024, 2048, 4096
+#
+CONFIG_RTE_PCI_CONFIG=n
+CONFIG_RTE_PCI_EXTENDED_TAG=""
+CONFIG_RTE_PCI_MAX_READ_REQUEST_SIZE=0
+
+#
 # Compile Environment Abstraction Layer for linux
 #
 CONFIG_RTE_LIBRTE_EAL_LINUXAPP=y
-- 
1.8.1.4