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 0232045B10; Fri, 11 Oct 2024 08:46:57 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id BEEAE4029A; Fri, 11 Oct 2024 08:46:56 +0200 (CEST) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mails.dpdk.org (Postfix) with ESMTP id BD1DE40264 for ; Fri, 11 Oct 2024 08:46:54 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1728629214; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=glaWaaZsYq04SrfcC6ynKgY4GCmNiZPxajAj05cRI5o=; b=Gbx5NwY9kSMbPAKIYR/ePET1j9CIN1i0dzNUCbhMwO/u2+B3AoLrOqvd18wTY0/Hj9oiek 4VEA7MkRhcO9FW5bAScHOZn13Nhouj5eHZekFMk8jinVpm2bi0rUOaoglKopoEAlylr9eW bFXKYiRII1hlEGyVXBaSi0853IzfbwU= Received: from mail-lf1-f69.google.com (mail-lf1-f69.google.com [209.85.167.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-279-b8H6Quq4PeCv_KFSup3PLQ-1; Fri, 11 Oct 2024 02:46:53 -0400 X-MC-Unique: b8H6Quq4PeCv_KFSup3PLQ-1 Received: by mail-lf1-f69.google.com with SMTP id 2adb3069b0e04-53691cd5a20so1512871e87.3 for ; Thu, 10 Oct 2024 23:46:52 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728629212; x=1729234012; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=glaWaaZsYq04SrfcC6ynKgY4GCmNiZPxajAj05cRI5o=; b=r8dwr5IapElNOWdQfi7hBj49FzCCVPKTCxQi+BFnYcCGIFHC3AdIkpD9NtgYyAfqL+ nPOaWh3TeZG+BHaqPxeKuQEzrvqhCb2aRM448EjE0tieqHfJ7X/bJPcSjzAdRExWFkEO MAbttN6LTgJJay6DU3UPuweZnWBwqqWd2hDP/j68eCo91yf6eTVSxDgjiPT5ujldkWUl RTCnbl4uCUr6UMJcpd5q8D4lpVJY+t8KzrwEeiTyKz1vznqYE2dnX050FvfYSyR6ZvkJ i7sJjQ2CElou/PQXFsnvPML9OnOqvlO5KkAF5xs7300xXYlN2MBy4HgWumj7IypgKCQP SaVA== X-Forwarded-Encrypted: i=1; AJvYcCUxgVOEhDOpnvnaNvE0rhZqKnKRDRigb63f7ILRm9ZWvMm284tPj7iX/1hu05GlMSAiWO4=@dpdk.org X-Gm-Message-State: AOJu0Yy0oumUrzBlafhqtQrUy1OSMqDRQcs+ZCBT+ytX6TfO9Zz3u7Ih ZEpI4T8Mi/NFgyhCQ2ot5FCLeSysOf/5Pr3N7h5p1i4RZZijcXZP0iQ45PNeawDQ+O93qYhXOT8 Sd64/NgvJjKD6mInyiZgvUcxHUMMHXZgYPYw0+rgJ4MfnYweE+eEZucyUmw/HZdspK+yXnpZlDE f+V8yJg7bNtCSpyds= X-Received: by 2002:a05:6512:31c8:b0:539:9867:eec6 with SMTP id 2adb3069b0e04-539da58b2acmr712087e87.54.1728629211592; Thu, 10 Oct 2024 23:46:51 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG2WKLbS9vczayDl47UFt4BvjS7Mtpm2wyyMlDMCAQ5AJLKkgtaSwcLErPb6pEG05QPbfP3IoUEWRFjAQbXc2k= X-Received: by 2002:a05:6512:31c8:b0:539:9867:eec6 with SMTP id 2adb3069b0e04-539da58b2acmr712056e87.54.1728629210827; Thu, 10 Oct 2024 23:46:50 -0700 (PDT) MIME-Version: 1.0 References: <20240828104002.226704-1-konrad.sztyber@intel.com> <20241007104918.463c9adf@hermes.local> <20241009081210.42fdcde8@hermes.local> <548b0ee3-9d25-4c70-a4f5-bdcdf7081192@intel.com> In-Reply-To: <548b0ee3-9d25-4c70-a4f5-bdcdf7081192@intel.com> From: David Marchand Date: Fri, 11 Oct 2024 08:46:39 +0200 Message-ID: Subject: Re: [PATCH] bus/pci: don't open uio device in secondary process To: Konrad Sztyber Cc: Stephen Hemminger , dev@dpdk.org, Chenbo Xia , Nipun Gupta , Peng Zhang , Long Wu , Zerun Fu , Chaoyong He X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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, Oct 11, 2024 at 8:38=E2=80=AFAM Konrad Sztyber wrote: > > On 10/9/24 17:12, Stephen Hemminger wrote: > > That is what tap, and xdp are doing. > > Thanks for the info. I'll take a look and will send a next rev doing > something similar in uio. My two cents. net/tap uses the rte_mp_* infrastructure and this is what you need. net/af_xdp has two cases, so don't get confused with the custom SCM_RIGHTS stuff and stick to rte_mp_*. --=20 David Marchand