From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 105D1A00C4; Fri, 1 Jul 2022 18:47:42 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A5BF140E03; Fri, 1 Jul 2022 18:47:41 +0200 (CEST) Received: from mail-pl1-f180.google.com (mail-pl1-f180.google.com [209.85.214.180]) by mails.dpdk.org (Postfix) with ESMTP id 9854540A7D for ; Fri, 1 Jul 2022 18:47:39 +0200 (CEST) Received: by mail-pl1-f180.google.com with SMTP id d5so2835572plo.12 for ; Fri, 01 Jul 2022 09:47:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20210112.gappssmtp.com; s=20210112; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=UJ0yIDgwkIAmrZxHJisMzQgz8NzJ7J07l65Skspnyig=; b=JrQgemZz44xYT49OX+SQqAYtHFwG+F/swuShA42pcKQilX+Om3KCqq02OUowYKmOLK X1kCixjZcHFWyluWFz4QUJ7WAm63QccPaD89TwFT6VJSdqfTR/c7iUkrwi420gVczeTX YGqvlcO+GaGGlhjKflF/HT1TkY9Od+M5IGqOB1LwUlq/LGewvsq1Y4D2pDg74DCBrGsU 5k9lBlHiveEheAuVbXZuLBMZfiHIVr3uD5XCGBMPKtBYEuNQ0u9991zJCjVGtKcPYBht XBz7FFnHfQIk3yIWzrrPGtP1zfFmBHDBvzDrvR6Bq2Sb8IPYmrAODDFg7yfcMrklLFo/ pr2A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=UJ0yIDgwkIAmrZxHJisMzQgz8NzJ7J07l65Skspnyig=; b=Me6zq7vuYvKH0nZf9phhAuh+ybhFgPluZafiremxVnlj3r95EK6nbejIKqqUsseS+U TJicbW7V/Y6iqIyK6aFHSDf2Be+HH8fSmflTmnWxkP3Dz7QX+ghOjxnzTl7HN2/Gh0ey CGB1S5hdKil4ppZUaAG3zNrygbkuk3FwopbFo9pQ2EcEYmPX3BLCyiCrGmW8V+whIH1H URUPV7U79/9Eh3lPjUpvswi90hfb+54oCBP5tF3ngMIZGO8sYjtg1kG04n22vKX5Msy/ mDOm0EbL1ZohiD67BqXfLUczOo6JDw/beNay5JK4C6XeMQn+8zUa0h+AcmXrwPmbRYuF 2klA== X-Gm-Message-State: AJIora8joMwO6zD6d7DFU5BcjzCPxZhxQANqmLhAUt+GHuDbkWAdySo+ f+n1YgW+19l74O9kbImqJm/mmw== X-Google-Smtp-Source: AGRyM1sD7Ujl7REuVE7hTWUEtWCrC+ptBtoRRnZU7JAKWCST13tSTVxK7EWo5Ax5tdC5xIPxnH8lag== X-Received: by 2002:a17:90b:2251:b0:1ed:29d2:e013 with SMTP id hk17-20020a17090b225100b001ed29d2e013mr18731482pjb.223.1656694058934; Fri, 01 Jul 2022 09:47:38 -0700 (PDT) Received: from hermes.local (204-195-112-199.wavecable.com. [204.195.112.199]) by smtp.gmail.com with ESMTPSA id bc26-20020a656d9a000000b0040c8dd84ff5sm15283720pgb.72.2022.07.01.09.47.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Jul 2022 09:47:38 -0700 (PDT) Date: Fri, 1 Jul 2022 09:47:36 -0700 From: Stephen Hemminger To: longli@linuxonhyperv.com Cc: longli@microsoft.com, Ferruh Yigit , dev@dpdk.org, Ajay Sharma , Stephen Hemminger Subject: Re: [PATCH 01/17] net/mana: add basic driver, build environment and doc Message-ID: <20220701094736.7d7589b5@hermes.local> In-Reply-To: <1656666167-26035-2-git-send-email-longli@linuxonhyperv.com> References: <1656666167-26035-1-git-send-email-longli@linuxonhyperv.com> <1656666167-26035-2-git-send-email-longli@linuxonhyperv.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org On Fri, 1 Jul 2022 02:02:31 -0700 longli@linuxonhyperv.com wrote: > + uint64_t max_mr_size; > + rte_rwlock_t mr_list_lock; > +}; Reader/Writer locks are slower for the usual uncontended case. Unless you have a reader holding onto the lock for a long time, better to use spin lock. This is Linux wisdom (thank you paulmck), Windows seems to love reader/writer locks.