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 61492A034E; Wed, 9 Feb 2022 16:29:51 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2FCF041144; Wed, 9 Feb 2022 16:29:51 +0100 (CET) Received: from mail-pl1-f172.google.com (mail-pl1-f172.google.com [209.85.214.172]) by mails.dpdk.org (Postfix) with ESMTP id A0D4641143 for ; Wed, 9 Feb 2022 16:29:49 +0100 (CET) Received: by mail-pl1-f172.google.com with SMTP id k17so2551327plk.0 for ; Wed, 09 Feb 2022 07:29:49 -0800 (PST) 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=dOqxsauPlq3+fsD3Jw/3vANhaVOYfxigfnzMMUav3Xo=; b=CdDFoJytKM05Cbn4jWFeTw0xrvlHb5yAfL0pelDoL/9C2zb0kfCrGJLv83AvucU5tX JwyyEgR8WqmJUY5RNE7nm9XylneC0peugGjDw+XzyIt+q/jKMYpw7k3jxb/Fe43M2Tbx 48oaOsvZGMx3bnyV49c9fuz0F74fvRDkNJxAcuPW2UIQOSNSSro/lpd6tJr1QGw8x2li M0C071UJRy9Lg0YlLqPisZzg5ZbenvhqiwmmMvEA2HWls2RpHjO7EU73ksenMOIGPhtT k6I1ulk+ncjRiEgHKbTxdVnY/JQ1+w54WUD6vQk4Mxf7w605oP4tqsESM8WkLmFDKI3I VW6Q== 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=dOqxsauPlq3+fsD3Jw/3vANhaVOYfxigfnzMMUav3Xo=; b=QPBAw6cg/se8dwk0Ttj9yT+rggvtN9vDj/Ytn7A6/hJe7lVZuYeUfGBpMbbDQdYIcn xoJXqjPSGVLJbO8PaAO+JjutBuVgjBRPVgP8lMcoXPoCTn8gNfHjNmLW15goRrzLAW70 P9gCEzR5FoKOToP6Kp8EH3msSlOowFHQDu0xddLsq3oGszbYDc0EoSIznvNyYN70NHYI ugzPuA0w/dAwKFWI4cQzKMVaYRE07a24hnDTDpleO3sED1q25ZqbRQ/Fs/PSuW+dVScJ HVLTPacSUaPh4Hn4jLATnW+ca6zEezHjVe2vCeNXbhRc/2nk1vOlp4ZoAK2PlzcK8613 itAQ== X-Gm-Message-State: AOAM530th+sb/x3V7MUu341CftQ/0dPLELPMRH1fcwqzzRry9JkuFAIb zVAOufqqi9Yi4Gl+06rlpSEF7A== X-Google-Smtp-Source: ABdhPJyLdUXbazOvmu719Q1yoVFj9uQi/AX/JdyrO2vpA5AQL2+ZnLoRFMdcZqdnwUcIA90a+TffAg== X-Received: by 2002:a17:902:c24d:: with SMTP id 13mr2662910plg.22.1644420588668; Wed, 09 Feb 2022 07:29:48 -0800 (PST) Received: from hermes.local (204-195-112-199.wavecable.com. [204.195.112.199]) by smtp.gmail.com with ESMTPSA id c14sm19234345pfm.169.2022.02.09.07.29.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Feb 2022 07:29:48 -0800 (PST) Date: Wed, 9 Feb 2022 07:29:46 -0800 From: Stephen Hemminger To: Ciara Loftus Cc: dev@dpdk.org, ferruh.yigit@intel.com, anatoly.burakov@intel.com Subject: Re: [PATCH v4] net/af_xdp: re-enable secondary process support Message-ID: <20220209072946.7cc709ff@hermes.local> In-Reply-To: <20220209094808.41464-1-ciara.loftus@intel.com> References: <20220208134800.52142-1-ciara.loftus@intel.com> <20220209094808.41464-1-ciara.loftus@intel.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 Wed, 9 Feb 2022 09:48:08 +0000 Ciara Loftus wrote: > Secondary process support had been disabled for the AF_XDP PMD because > there was no logic in place to share the AF_XDP socket file descriptors > between the processes. This commit introduces this logic using the IPC > APIs. > > Rx and Tx are disabled in the secondary process due to memory mapping of > the AF_XDP rings being assigned by the kernel in the primary process only. > However other operations including retrieval of stats are permitted. > > Signed-off-by: Ciara Loftus Acked-by: Stephen Hemminger