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 E7198A0C47 for ; Wed, 14 Jul 2021 17:15:35 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 12FE94128C; Wed, 14 Jul 2021 17:15:35 +0200 (CEST) Received: from mail-pg1-f179.google.com (mail-pg1-f179.google.com [209.85.215.179]) by mails.dpdk.org (Postfix) with ESMTP id ECBF041289 for ; Wed, 14 Jul 2021 17:15:33 +0200 (CEST) Received: by mail-pg1-f179.google.com with SMTP id k20so2766179pgg.7 for ; Wed, 14 Jul 2021 08:15:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=4EBtAwEOGtbQk0wHbgy3AO+CLxS6kqHlzN22XdU8nQU=; b=ddb7WuJ3rIA7U5F7XC3wRL5uNw6X9T30MJbiQDhRFEBjKV5o4ZC1g8jhE+BFXDSXZu dj27QrzAx7UjIqqa5Qdh4Dl1dTsMdRW+ovMKOguVYFi0PK9dNVOtlIBJNFSkX8prtdir /yowrWh3A+hSbcN1SRnt12sq7PX1vtlhVjMWhnDc6RMoBqSrv7X+vw8pcNOm2ZoQJ6II NYFZ5kOEq7nr9b2FqJEieeBNANCJSWYhZA2qZaYnsi7eYH28XDFkK6jTwgBrdzoqpSwJ bq1DvUWhCfzV3f11ftexioiiQJaPMoDjlAzqfIoamTD2PYDVVRzF8L2VrU1Ao5Q0Z0lB 3kAg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=4EBtAwEOGtbQk0wHbgy3AO+CLxS6kqHlzN22XdU8nQU=; b=rLOFEfXm0Q39ZRc+cLJ8M1n9n4wtxesglf4q6IeJ2MbicK9+qjTawfdsbYLkIYZOLq KYSTgoMHysPdFHMacBIV1+k1YWTGgE8FV7AjQ7eI+rqyc1ITNht5qrm7a2ocUpbg5YFx X8BOBin3LsrtTLrJyS/55+aPFncHTsFm4Gt26eld7XFh7vZj/JeYtWhwqQFZ+neQqrlC rSqlPYuUhcNmGvDqv9ZGMALY3TTpZwZHq3Vnvs27oqYZrCUPUFHTW/d1Dzy3lQfm0tAg tXiL4v9wZteTu+XJgjWpADzEm9N5Tz2W0FLQZgl+HAmiDo5u1rG/ye4O6lQIPEgqRwcH wvWg== X-Gm-Message-State: AOAM530pX68GXali73n6tPAChLBs8lJ2mC4b5HXKyhTPVfxWpyVBs0i/ 0g3AsJtaa+0P9vgRKR44djUQag== X-Google-Smtp-Source: ABdhPJxQOExYXmre0Ti9ZQ3sOZt5fi1TqEgV5RGFk6hAfDUAUxys5a+qX4YCY6JcK/wNVzcphmnJ4w== X-Received: by 2002:a63:214d:: with SMTP id s13mr10326774pgm.260.1626275733198; Wed, 14 Jul 2021 08:15:33 -0700 (PDT) Received: from hermes.local (204-195-33-123.wavecable.com. [204.195.33.123]) by smtp.gmail.com with ESMTPSA id q3sm3462713pfb.184.2021.07.14.08.15.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Jul 2021 08:15:32 -0700 (PDT) Date: Wed, 14 Jul 2021 08:15:30 -0700 From: Stephen Hemminger To: Nirmal R Cc: "users@dpdk.org" Message-ID: <20210714081530.07d2cbbd@hermes.local> In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-users] Dpdk multi core packet acquisition. X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: users-bounces@dpdk.org Sender: "users" On Wed, 14 Jul 2021 10:32:56 +0200 Nirmal R wrote: > Hello All, > > I need to acquire packets from a source at more than 40Gbps. I was thinking > to use rx_burst in a function with more than one core and load it into a > ring. My question is, will the packets received will be in order between > the cores say core 1 receives packet 1,2,3 and core 2 receives packet 4,5,6 > or will it be in out of order(Random). Also can we combine 2 cores to > launch one function. > > Thank you, > > With Regards, > Nirmalraj R DPDK drivers assume a single core at a time is reading a single queue. If you have multiple cores reading a single queue then you need to do some form of mutual exclusion in your application. This is in the documentation