From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id 018598021 for ; Mon, 24 Nov 2014 13:17:02 +0100 (CET) Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga101.fm.intel.com with ESMTP; 24 Nov 2014 04:27:50 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.97,862,1389772800"; d="scan'208";a="420762707" Received: from irvmail001.ir.intel.com ([163.33.26.43]) by FMSMGA003.fm.intel.com with ESMTP; 24 Nov 2014 04:18:07 -0800 Received: from sivswdev02.ir.intel.com (sivswdev02.ir.intel.com [10.237.217.46]) by irvmail001.ir.intel.com (8.14.3/8.13.6/MailSET/Hub) with ESMTP id sAOCRmpK004417; Mon, 24 Nov 2014 12:27:48 GMT Received: from sivswdev02.ir.intel.com (localhost [127.0.0.1]) by sivswdev02.ir.intel.com with ESMTP id sAOCRmVX024180; Mon, 24 Nov 2014 12:27:48 GMT Received: (from dwdohert@localhost) by sivswdev02.ir.intel.com with id sAOCRm3T024176; Mon, 24 Nov 2014 12:27:48 GMT From: Declan Doherty To: dev@dpdk.org Date: Mon, 24 Nov 2014 12:27:32 +0000 Message-Id: <1416832054-24086-6-git-send-email-declan.doherty@intel.com> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1416832054-24086-1-git-send-email-declan.doherty@intel.com> References: <1415362978-6306-1-git-send-email-declan.doherty@intel.com> <1416832054-24086-1-git-send-email-declan.doherty@intel.com> Subject: [dpdk-dev] [PATCH v7 5/7] testpmd: adding parameter to reconfig method to set socket_id when adding new port to portlist 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, 24 Nov 2014 12:17:04 -0000 Signed-off-by: Declan Doherty --- app/test-pmd/cmdline.c | 2 +- app/test-pmd/testpmd.c | 3 ++- app/test-pmd/testpmd.h | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/app/test-pmd/cmdline.c b/app/test-pmd/cmdline.c index 4c3fc76..be12c13 100644 --- a/app/test-pmd/cmdline.c +++ b/app/test-pmd/cmdline.c @@ -3642,7 +3642,7 @@ static void cmd_create_bonded_device_parsed(void *parsed_result, /* Update number of ports */ nb_ports = rte_eth_dev_count(); - reconfig(port_id); + reconfig(port_id, res->socket); rte_eth_promiscuous_enable(port_id); } diff --git a/app/test-pmd/testpmd.c b/app/test-pmd/testpmd.c index 12adafa..8a4190b 100644 --- a/app/test-pmd/testpmd.c +++ b/app/test-pmd/testpmd.c @@ -630,7 +630,7 @@ init_config(void) void -reconfig(portid_t new_port_id) +reconfig(portid_t new_port_id, unsigned socket_id) { struct rte_port *port; @@ -649,6 +649,7 @@ reconfig(portid_t new_port_id) /* set flag to initialize port/queue */ port->need_reconfig = 1; port->need_reconfig_queues = 1; + port->socket_id = socket_id; init_port_config(); } diff --git a/app/test-pmd/testpmd.h b/app/test-pmd/testpmd.h index 9cbfeac..5a3423c 100644 --- a/app/test-pmd/testpmd.h +++ b/app/test-pmd/testpmd.h @@ -457,7 +457,7 @@ void fwd_config_display(void); void rxtx_config_display(void); void fwd_config_setup(void); void set_def_fwd_config(void); -void reconfig(portid_t new_port_id); +void reconfig(portid_t new_port_id, unsigned socket_id); int init_fwd_streams(void); void port_mtu_set(portid_t port_id, uint16_t mtu); -- 1.7.4.1