From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id E6E788D9B for ; Sun, 13 Dec 2015 05:58:08 +0100 (CET) Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga101.jf.intel.com with ESMTP; 12 Dec 2015 20:58:09 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.20,420,1444719600"; d="scan'208";a="859643056" Received: from shilc102.sh.intel.com ([10.239.39.44]) by fmsmga001.fm.intel.com with ESMTP; 12 Dec 2015 20:58:08 -0800 Received: from shecgisg003.sh.intel.com (shecgisg003.sh.intel.com [10.239.29.90]) by shilc102.sh.intel.com with ESMTP id tBD4w6nM003211; Sun, 13 Dec 2015 12:58:06 +0800 Received: from shecgisg003.sh.intel.com (localhost [127.0.0.1]) by shecgisg003.sh.intel.com (8.13.6/8.13.6/SuSE Linux 0.8) with ESMTP id tBD4w36V004459; Sun, 13 Dec 2015 12:58:05 +0800 Received: (from yliu84x@localhost) by shecgisg003.sh.intel.com (8.13.6/8.13.6/Submit) id tBD4w3SX004455; Sun, 13 Dec 2015 12:58:03 +0800 From: Yong Liu To: dts@dpdk.org Date: Sun, 13 Dec 2015 12:57:44 +0800 Message-Id: <1449982664-4362-9-git-send-email-yong.liu@intel.com> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1449982664-4362-1-git-send-email-yong.liu@intel.com> References: <1449982664-4362-1-git-send-email-yong.liu@intel.com> Subject: [dts] [PATCH 8/8] framework project_dpdk: add extra setup after bind driver X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: test suite reviews and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 Dec 2015 04:58:09 -0000 From: Marvin Liu Some nics like RRC required extra setup after bind to igb_uio. Those setup functions will be realized in nic modules. Signed-off-by: Marvin Liu diff --git a/framework/project_dpdk.py b/framework/project_dpdk.py index 1c2f095..538a3b7 100644 --- a/framework/project_dpdk.py +++ b/framework/project_dpdk.py @@ -78,6 +78,7 @@ class DPDKdut(Dut): if bind_dev and self.get_os_type() == 'linux': self.bind_interfaces_linux(dts.drivername) + self.extra_nic_setup() def setup_modules(self, target): """ @@ -255,6 +256,14 @@ class DPDKdut(Dut): self.prepare_package(pkgName, patch) self.dut_prerequisites() + def extra_nic_setup(self): + """ + Some nic like RRC required additional setup after module installed + """ + for port_info in self.ports_info: + netdev = port_info['port'] + netdev.setup() + def bind_interfaces_linux(self, driver='igb_uio', nics_to_bind=None): """ Bind the interfaces to the selected driver. nics_to_bind can be None -- 1.9.3