From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by dpdk.space (Postfix) with ESMTP id EE69FA0679 for ; Wed, 3 Apr 2019 19:16:54 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id EA5501B526; Wed, 3 Apr 2019 19:16:33 +0200 (CEST) Received: from mail-pg1-f177.google.com (mail-pg1-f177.google.com [209.85.215.177]) by dpdk.org (Postfix) with ESMTP id 6B0241B508 for ; Wed, 3 Apr 2019 19:16:20 +0200 (CEST) Received: by mail-pg1-f177.google.com with SMTP id y3so8633868pgk.12 for ; Wed, 03 Apr 2019 10:16:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=drsG6PqUHfe0cZHXQkrmqsDsFyPzAKvwVmFq3y9Ur0U=; b=nks9B+FUAAqngDpnnSaLA8lU4dJUbk8jQm7hyn0H3uXwtmfhuG5V6E6W2ynzbZff7m WglxuFSzSMJQJOfea8dFbhUr2SSWOsngEOUDFY+clEMKhfTm31JIbmm696lEcsFF8v2f SCJn6bJd4dl1u7LgFvIFcIAIHyfTDFaQlG2I+RUoty/KU3hHDaIymiJf2AfHI7z4BVYY No4tgrSctHbO5AS/bJZUtVnLB8qgho7c5WqyNlHM6zbic8wT0884l5CQCXnt2EBgkBFu /HRg0n8cszwJ5/vP8zMTebbzLqH1H7Y2ZqXql2eO4OKoeRIugc9rAtVdpW8dGOr5JzIA 4wBQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=drsG6PqUHfe0cZHXQkrmqsDsFyPzAKvwVmFq3y9Ur0U=; b=CFiow2KdgqSaK/MWVo1ZkEuE90wQhGpAPRn9dNY/EPZo31tAwnQMyJqSN66TESDMCv Kgv5FBI7X+MFUnBSWxC4HY97C89xgZJTaXQh696kKhfF8k3WjdgUmgCS9uq76rUo8rWw GeoTMv9x8Jd9QlBtJkkRBxqk90rHnDQOawkTkyKqVnso7nrdRTCOiYPdGnbxvdBtViWZ Jm0NIy3grVEkeaImohd+FzO7F+kGV2XPXbFHovgUYplmOvbthzKsfggXzlC/sBZ6cBFB U1VaMOAEI+WT4eNKjlUt3zh5v3rsDj1xtLyy+N/8d/HJUdLbM42WK8EiXTurH3e8F9Oj 04FA== X-Gm-Message-State: APjAAAUGAw3usalH0oY1VVcoI8NyRZRwTngVtZLWVetw1lFmKQk7bVrN vjKVhsoKNtmOvRsRRmXqk6lRGhXEHYkarA== X-Google-Smtp-Source: APXvYqwS09r+4Vt18+kVE2PD1c5AHFBHNAf7NPPC0Pwl5l+u/M3VRle+K1KCMZU5IdTZ9e/H4X0dhA== X-Received: by 2002:a62:ee13:: with SMTP id e19mr584127pfi.224.1554311778941; Wed, 03 Apr 2019 10:16:18 -0700 (PDT) Received: from shemminger-XPS-13-9360.lan (204-195-22-127.wavecable.com. [204.195.22.127]) by smtp.gmail.com with ESMTPSA id k14sm23041693pfb.125.2019.04.03.10.16.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 03 Apr 2019 10:16:17 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger Date: Wed, 3 Apr 2019 10:16:08 -0700 Message-Id: <20190403171610.23970-4-stephen@networkplumber.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190403171610.23970-1-stephen@networkplumber.org> References: <20190403171610.23970-1-stephen@networkplumber.org> Subject: [dpdk-dev] [RFC 3/5] examples/bond: use lcore accessor 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" Content-Type: text/plain; charset="UTF-8" Message-ID: <20190403171608.rGbslUS67CogLbSnbIBJAXSPFM0CSaLkQF4MkV6O4sw@z> Refering to lcore_config directly is no longer recommended. Signed-off-by: Stephen Hemminger --- examples/bond/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/bond/main.c b/examples/bond/main.c index ef86194fff4a..48e6755ea294 100644 --- a/examples/bond/main.c +++ b/examples/bond/main.c @@ -526,8 +526,8 @@ static void cmd_start_parsed(__attribute__((unused)) void *parsed_result, int slave_core_id = rte_lcore_id(); rte_spinlock_trylock(&global_flag_stru_p->lock); - if (global_flag_stru_p->LcoreMainIsRunning == 0) { - if (lcore_config[global_flag_stru_p->LcoreMainCore].state != WAIT) { + if (global_flag_stru_p->LcoreMainIsRunning == 0) { + if (rte_lcore_state(global_flag_stru_p->LcoreMainCore) != WAIT) { rte_spinlock_unlock(&global_flag_stru_p->lock); return; } -- 2.17.1