From patchwork Wed Dec 14 19:57:57 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Uvarov X-Patchwork-Id: 88066 Delivered-To: patch@linaro.org Received: by 10.140.20.101 with SMTP id 92csp384939qgi; Wed, 14 Dec 2016 12:03:53 -0800 (PST) X-Received: by 10.31.209.132 with SMTP id i126mr41352839vkg.128.1481745833731; Wed, 14 Dec 2016 12:03:53 -0800 (PST) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id a67si9059583vkc.249.2016.12.14.12.03.53; Wed, 14 Dec 2016 12:03:53 -0800 (PST) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) client-ip=54.225.227.206; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=pass (p=NONE dis=NONE) header.from=linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 4BA116350A; Wed, 14 Dec 2016 20:03:53 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252 X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, URIBL_BLOCKED autolearn=disabled version=3.4.0 Received: from [127.0.0.1] (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id BA54F609C9; Wed, 14 Dec 2016 19:59:09 +0000 (UTC) X-Original-To: lng-odp@lists.linaro.org Delivered-To: lng-odp@lists.linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 9BFB96350A; Wed, 14 Dec 2016 19:58:31 +0000 (UTC) Received: from mail-wm0-f51.google.com (mail-wm0-f51.google.com [74.125.82.51]) by lists.linaro.org (Postfix) with ESMTPS id 2DEAF6350C for ; Wed, 14 Dec 2016 19:58:22 +0000 (UTC) Received: by mail-wm0-f51.google.com with SMTP id a197so130305233wmd.0 for ; Wed, 14 Dec 2016 11:58:22 -0800 (PST) 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=gb5300PrEJveptbWHAgg3/XyajXxRiksBDo6+YJiGaw=; b=KCBX2VmSIEUXekLLEx7+wk3jqFi5pERF7le7XxxqRHZ9lA7ZbI5hIjgGSuV9r1ShMv luHpCFdICghZ1mGuKQHF/mrvxMBReT2GWqXG0tiN/wB+ze0W3LiOR6NkFHJ+7ic8/6Ls whcktue3wk1pw96eOpTLarB2yJlS6sYQq5EOzHroLmx+bxIsJFyM34fS8A9LZsvTdnt1 oOTtEHIBu/t87pKctAfMy7J/Lw9F+5NfNWXHH25UwAQMNzZ8dP0LZh+nMlUc0h5e3Abc Z5aMmo0/8ET93EUU6cy5oOUTaJ46MXOX9TPZXTsXX/bk43PnWK3sN3qdZUwiZGu3j9RE v6ww== X-Gm-Message-State: AKaTC02ga5OpxeT98SjFyjsMDHKHIvcWwhcVN+eP/Fyq4XPSnuX8iFDiOu8FXP0ILQz/XztaFPA= X-Received: by 10.25.216.28 with SMTP id p28mr34067935lfg.16.1481745500921; Wed, 14 Dec 2016 11:58:20 -0800 (PST) Received: from localhost.localdomain (ppp91-77-165-188.pppoe.mtu-net.ru. [91.77.165.188]) by smtp.gmail.com with ESMTPSA id f25sm10849604lji.47.2016.12.14.11.58.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 14 Dec 2016 11:58:20 -0800 (PST) From: Maxim Uvarov To: lng-odp@lists.linaro.org Date: Wed, 14 Dec 2016 22:57:57 +0300 Message-Id: <1481745477-6137-6-git-send-email-maxim.uvarov@linaro.org> X-Mailer: git-send-email 2.7.1.250.gff4ea60 In-Reply-To: <1481745477-6137-1-git-send-email-maxim.uvarov@linaro.org> References: <1481745477-6137-1-git-send-email-maxim.uvarov@linaro.org> Subject: [lng-odp] [API-NEXT PATCHv3 5/5] linux-gen: pktio ipc: tests: remove comment about master-slave X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: "The OpenDataPlane \(ODP\) List" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" Implementation take care which process to name master and which slave. Comment is useless. Signed-off-by: Maxim Uvarov --- test/linux-generic/pktio_ipc/pktio_ipc1.c | 3 --- test/linux-generic/pktio_ipc/pktio_ipc2.c | 3 --- 2 files changed, 6 deletions(-) -- 2.7.1.250.gff4ea60 diff --git a/test/linux-generic/pktio_ipc/pktio_ipc1.c b/test/linux-generic/pktio_ipc/pktio_ipc1.c index 838b672..705c205 100644 --- a/test/linux-generic/pktio_ipc/pktio_ipc1.c +++ b/test/linux-generic/pktio_ipc/pktio_ipc1.c @@ -52,9 +52,6 @@ static int pktio_run_loop(odp_pool_t pool) start_cycle = odp_time_local(); current_cycle = start_cycle; - /* slave process should always be run after master process to be - * able to create the same pktio. - */ for (;;) { if (run_time_sec) { cycle = odp_time_local(); diff --git a/test/linux-generic/pktio_ipc/pktio_ipc2.c b/test/linux-generic/pktio_ipc/pktio_ipc2.c index fb6f994..daf3841 100644 --- a/test/linux-generic/pktio_ipc/pktio_ipc2.c +++ b/test/linux-generic/pktio_ipc/pktio_ipc2.c @@ -49,9 +49,6 @@ static int ipc_second_process(int master_pid) wait = odp_time_local_from_ns(run_time_sec * ODP_TIME_SEC_IN_NS); start_cycle = odp_time_local(); - /* slave process should always be run after master process to be - * able to create the same pktio. - */ for (;;) { /* exit loop if time specified */ if (run_time_sec) {