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 0EB53A046B for ; Fri, 26 Jul 2019 18:51:04 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id D6C001C4F3; Fri, 26 Jul 2019 18:51:03 +0200 (CEST) Received: from mail-pl1-f173.google.com (mail-pl1-f173.google.com [209.85.214.173]) by dpdk.org (Postfix) with ESMTP id 1EA9C1C1F5 for ; Fri, 26 Jul 2019 18:51:03 +0200 (CEST) Received: by mail-pl1-f173.google.com with SMTP id c2so24940627plz.13 for ; Fri, 26 Jul 2019 09:51:03 -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=zoU69Y85wa6UnjvNLamD5240uaNbF2gevq/kijwQfYc=; b=hApNnuYVKIcjn/gZe1VAPF9sJlpNP1MRWv956gbZ7MSwFOQSPmT4fzZEbHAGCKlmbi BgRqe2YENojTCTpPReSWGIZjkdYzyFSxMxkPM09B1DCCQZ7crtST0TyMk8+xfnFNHnhc ixrOOIEGvhJEz7c2p9z0Vi7E8fz8BDwfK3IezUDqSo0Ek/qY2x84k3eujyfbPoFoHd2Y dicgEdXS2+77PDKUmuL1IOYwAPkgHPSgoOP2576T0BtxQ6LJZi7lQHwt/h+puigliaSy Mg+Sj1VUkxtdH9Qaew7D+xJKkcRCEsVmIMXO8YAboc2cbDgzt2SOmYHfbskc3SrPLE2H iJPA== 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=zoU69Y85wa6UnjvNLamD5240uaNbF2gevq/kijwQfYc=; b=EVTsiyfF5T1OPsl+mIYA83nI6WqRSGzdMQMCGlXIQWWn37PdXBeAZf+HPp4QVuWDXe IJnkliYL7FaDHALf0u/QTqru9qy0xeGt0/kTYWWBLfEjG03uZFc9SX7IoqQuF/Xrfquq O/veCmH+Q5vmZkQVP2sKMRXDS8J9ZvR+TAvTRbnS8Pu1gJ/lr4JR1BDN0l1giomRiO1r C2zXG41KASIZ+IGfUSCMcPgKDZtrVKk0vSv1mEKqQl48GxWbbjwWUnGa8UNhEO1lkCky Ev+7NlHmLbs6rn68mn8j5k+eRT+IcRK96KyFca8OeqiFck7g/yNJlDs/rgUSENDlLwDM Y92A== X-Gm-Message-State: APjAAAU4edyHzgyhoCR54LIXM1ick5w/uS6HOR5R3gkdFrmsrKjFmu/p qkREqaUcYLRPcVTQ0bOYA4WOoh7V X-Google-Smtp-Source: APXvYqwoHLlb8i2ez2ssRmF9mlENmxhUwj39WraQY0lBGFH3JwXYJZK9oA+HX7LLyNNqkdh3DutHhw== X-Received: by 2002:a17:902:968d:: with SMTP id n13mr49903613plp.257.1564159862004; Fri, 26 Jul 2019 09:51:02 -0700 (PDT) Received: from hermes.lan (204-195-22-127.wavecable.com. [204.195.22.127]) by smtp.gmail.com with ESMTPSA id s3sm14747747pgq.17.2019.07.26.09.51.00 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Fri, 26 Jul 2019 09:51:00 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger Date: Fri, 26 Jul 2019 09:50:50 -0700 Message-Id: <20190726165054.24078-1-stephen@networkplumber.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190709150939.31338-1-stephen@networkplumber.org> References: <20190709150939.31338-1-stephen@networkplumber.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH v4 0/4] examples/client_server_mp: fix port issues 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. 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 | 81 ++++++++++++------- .../client_server_mp/mp_server/args.h | 2 +- .../client_server_mp/mp_server/init.c | 65 ++++++++------- .../client_server_mp/mp_server/main.c | 68 +++++++--------- 5 files changed, 124 insertions(+), 110 deletions(-) -- 2.20.1