From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id DAE76A2EFC for ; Mon, 14 Oct 2019 12:03:56 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id E443D1C124; Mon, 14 Oct 2019 12:03:55 +0200 (CEST) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by dpdk.org (Postfix) with ESMTP id 826551C122 for ; Mon, 14 Oct 2019 12:03:54 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 14 Oct 2019 03:03:53 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.67,295,1566889200"; d="scan'208";a="194180777" Received: from silpixa00399752.ir.intel.com (HELO silpixa00399752.ger.corp.intel.com) ([10.237.223.78]) by fmsmga008.fm.intel.com with ESMTP; 14 Oct 2019 03:03:52 -0700 From: Ferruh Yigit To: dev@dpdk.org, David Hunt Cc: Igor Romanov , Andrew Rybchenko Date: Mon, 14 Oct 2019 11:03:50 +0100 Message-Id: <20191014100350.30226-1-ferruh.yigit@intel.com> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH] examples/vm_power: fix build X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Fixes: 70febdcfd60f ("examples: check status of getting MAC address") Signed-off-by: Ferruh Yigit --- Cc: Igor Romanov Cc: Andrew Rybchenko --- examples/vm_power_manager/guest_cli/vm_power_cli_guest.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/examples/vm_power_manager/guest_cli/vm_power_cli_guest.c b/examples/vm_power_manager/guest_cli/vm_power_cli_guest.c index 77e54401a..fe09b0778 100644 --- a/examples/vm_power_manager/guest_cli/vm_power_cli_guest.c +++ b/examples/vm_power_manager/guest_cli/vm_power_cli_guest.c @@ -55,10 +55,10 @@ set_policy_mac(int port, int idx) /* Use port MAC address as the vfid */ ret = rte_eth_macaddr_get(port, &pfid.addr); - if (retval != 0) { + if (ret != 0) { printf("Failed to get device (port %u) MAC address: %s\n", - port, rte_strerror(-retval)); - return retval; + port, rte_strerror(-ret)); + return ret; } printf("Port %u MAC: %02" PRIx8 ":%02" PRIx8 ":%02" PRIx8 ":" @@ -108,6 +108,8 @@ set_policy_defaults(struct channel_packet *pkt) pkt->policy_to_use = TIME; pkt->command = PKT_POLICY; strcpy(pkt->vm_name, "ubuntu2"); + + return 0; } static void cmd_quit_parsed(__attribute__((unused)) void *parsed_result, -- 2.21.0