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 665F1A10DA for ; Fri, 2 Aug 2019 04:58:32 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 558341C1FA; Fri, 2 Aug 2019 04:58:31 +0200 (CEST) Received: from mail-pl1-f194.google.com (mail-pl1-f194.google.com [209.85.214.194]) by dpdk.org (Postfix) with ESMTP id B26201C1F1 for ; Fri, 2 Aug 2019 04:58:29 +0200 (CEST) Received: by mail-pl1-f194.google.com with SMTP id w24so33048346plp.2 for ; Thu, 01 Aug 2019 19:58:29 -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 :mime-version:content-transfer-encoding; bh=Bo1ZcyaU4rXCShwJ1ZexDlDu91weBCec5qoqCRxBkhY=; b=tMyF/qoQ13pfAtK2DjI5hqxVThF5vnM8Qtt1eHnwFsCjny2cHS4RNt/O2sWTch3x9v 5NBYhjOYIgGhKy7T63mTEKhCquzyuxPg8SCMyFMswhzaRASbV/V2gv75qVJ55G6WZedG qFJBr7/EOuBsPBudiUdl5nHHlmc48c/gL8eAAJn78+2leDO3vL9+YNzdGbov2nfdgukF TyezGv9ftAKMed6zGF6R75htvEIr5ycabr9X92GA0mU7EF9m/NV/D6pxPau2oARC1uCG qqNe9JFS+sup2GoBm7XCWoEW2bMKri6kARqE3p2O1k7JnXsWPX2IHvOogM2c4ug3Jsch i8XA== 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:mime-version:content-transfer-encoding; bh=Bo1ZcyaU4rXCShwJ1ZexDlDu91weBCec5qoqCRxBkhY=; b=dHkhdgETNTNtbwZmyemEb0ggRbe8pyj59JegrnPwcboU1ugBSs1YXz+CcCxReP+cxp Fb1XG8kcKtwAdhChUH53Mm9kVve10zpnxeUzp71CwphYwd+7xiWk1WGdXTQ40XCZrYkq BNNbfGSmyyjUw3an0+OIo10L49n47rEoRiWSFcj4Zm6bF2e5CEDGqFwjDKUe+FcsHiXt ykl4izBukYGxtmawEr1N2zM+w2OeWSmxhh6YGYMZI48pXtKXS+dSlgJfX3wChP84mu0w AXvftxP0APiN/d67iMw6S+RuHKFGHkOkdjTkQCPgF5VHf45GcDDKtB/p8BqxuTDRpsUs ZocQ== X-Gm-Message-State: APjAAAXJoXOg6+2vjEqsst57vZoRIXG7rBN/50+1Yk/UXbMLosyLq1Md r57M5qZJQ7Grq4ydrLTjYD9dhY3F X-Google-Smtp-Source: APXvYqzE4cdR38zrCEJZehUP3kQrpACGQVIuqf7gk0kG4ncyl2ykM27v9FQOacM+8O1nU3niPMdylg== X-Received: by 2002:a17:902:f216:: with SMTP id gn22mr125994804plb.118.1564714708374; Thu, 01 Aug 2019 19:58:28 -0700 (PDT) Received: from hermes.lan (204-195-22-127.wavecable.com. [204.195.22.127]) by smtp.gmail.com with ESMTPSA id a20sm5788738pjo.0.2019.08.01.19.58.27 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Thu, 01 Aug 2019 19:58:27 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger Date: Thu, 1 Aug 2019 19:58:22 -0700 Message-Id: <20190802025826.1174-1-stephen@networkplumber.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190726165054.24078-1-stephen@networkplumber.org> References: <20190726165054.24078-1-stephen@networkplumber.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH v5 0/4] examples/client_server_mp: port id fixes 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" The client_server_mp application does not work correctly with failsafe or other devices using port ownership. v5 - change logic in server_mp for evaluating port mask v4 - fix checkpatch warning add patches to fix style issues and use ether format addr v3 - merge both patches in one series use alternative algorithm to check port ownership (N^2) because reviewer didn't like direct check. Stephen Hemminger (4): examples/multi_process/client_server_mp: check port validity examples/multi_process/client_server_mp - fix crash in mp_client with sparse ports examples/multi_process/client_server_mp/mp_server: fix style examples/multi_process/client_server_mp/mp_server: use ether format address .../client_server_mp/mp_client/client.c | 18 ++-- .../client_server_mp/mp_server/args.c | 70 ++++++++------- .../client_server_mp/mp_server/args.h | 2 +- .../client_server_mp/mp_server/init.c | 86 ++++++++++--------- .../client_server_mp/mp_server/main.c | 68 +++++++-------- 5 files changed, 123 insertions(+), 121 deletions(-) -- 2.20.1