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 595FCA00E6 for ; Tue, 9 Jul 2019 17:09:49 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 352B21B954; Tue, 9 Jul 2019 17:09:49 +0200 (CEST) Received: from mail-pl1-f195.google.com (mail-pl1-f195.google.com [209.85.214.195]) by dpdk.org (Postfix) with ESMTP id BF0F61B953 for ; Tue, 9 Jul 2019 17:09:47 +0200 (CEST) Received: by mail-pl1-f195.google.com with SMTP id c14so10231175plo.0 for ; Tue, 09 Jul 2019 08:09:47 -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:mime-version :content-transfer-encoding; bh=8MN3QoeklHSaeOuzThAI7e5S8Qnfxk4Fu2PjM2XZO1w=; b=E27gK6AfkG6i8+MPhwvxcEK0q0fKYEZrpwkOine+nrzLaehTXb1obnEUys4HsK5B6e k9pj060QWT/T01XDXeVhCXU43A4Kwq2W4c0cPE0iPoiQ6307sjbxwZ5AyF2q8gc7dbtv fPvJXD/ukWCl/iP0M6mAHRlzBqDB2UIjSU3iryRqA3iTuU4pCMX6+M0228FmHGjISnYJ nUt1GtOfTNx5dB5hLUJ7NspGf8PZNx95GU4e6utY6dzW8VfO26IxjeJlVtV/Hv6nb9Mm peDt8aCh4sv1OzkL0jfkxbUrPUln6rRFiaATYjpnqh19URuicbzSKFS15gnNASn0bXDx iQng== 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:mime-version :content-transfer-encoding; bh=8MN3QoeklHSaeOuzThAI7e5S8Qnfxk4Fu2PjM2XZO1w=; b=rYE4TMHlE1M0ttVdemkyBPcKK7R11bWYeS4yl8YTu3oCdEaar8mvhF8ba3UHd0I26w Sz6YHCRn1lEnCsg0KOYBvPHakVvwdaF3z9yxoTvQILYbqxDSe3eiOZzzfmYDSen/2xxR bbxrvPhTZRhS7aGiG4hTnw4z6CXuiFGLMi+zi8wRtQnDiL+MhHLHSM2LEk2WI09jRzg5 Dn/V/9qI1HYjlJIC23sqHi9FahNnhuTRS2VBsUqKHkgC1W2pELfqakxr4MQn8jfYVYyI /T4oNyo+IRzlLEzMEaIiXiYUJv0+mvyBwYb2VZwzEhb2GCClAzUPG/lubntWLodaX+PL xrcQ== X-Gm-Message-State: APjAAAWKq6hLZwLPFpNheEbKS8fkygh+8yvB6A7v4aUnAHr/iNC9bKCj RkZUmA5rXei5njQJDDen7sqTdfqwSSY= X-Google-Smtp-Source: APXvYqxOWfxye3BNOTHVUVT7zbkAQFfbvFk3C+c2xbabO5GFX8Yj5j2MRzDiHvJ3HNlCIAg30YBFYw== X-Received: by 2002:a17:902:b497:: with SMTP id y23mr24969548plr.68.1562684986586; Tue, 09 Jul 2019 08:09:46 -0700 (PDT) Received: from hermes.lan (204-195-22-127.wavecable.com. [204.195.22.127]) by smtp.gmail.com with ESMTPSA id u134sm20151651pfc.19.2019.07.09.08.09.45 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Tue, 09 Jul 2019 08:09:46 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger Date: Tue, 9 Jul 2019 08:09:37 -0700 Message-Id: <20190709150939.31338-1-stephen@networkplumber.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH v3 0/2] 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 Azure/Hyper-V because it does not handle the concept of some ports being hidden and unavailable. Stephen Hemminger (2): examples/multi_process/client_server_mp: check port validity examples/multi_process - fix crash in mp_client with sparse ports v3 - merge both patches in one series use alternative algorithm to check port ownership (N^2) because reviewer didn't like direct check. .../client_server_mp/mp_client/client.c | 18 ++++---- .../client_server_mp/mp_server/args.c | 46 +++++++++++++------ .../client_server_mp/mp_server/args.h | 2 +- .../client_server_mp/mp_server/init.c | 7 +-- 4 files changed, 44 insertions(+), 29 deletions(-) -- 2.20.1