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 650E3A0562; Sat, 4 Apr 2020 18:10:53 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 394924C8A; Sat, 4 Apr 2020 18:10:53 +0200 (CEST) Received: from mail-io1-f68.google.com (mail-io1-f68.google.com [209.85.166.68]) by dpdk.org (Postfix) with ESMTP id 7CC622BEA for ; Sat, 4 Apr 2020 18:10:51 +0200 (CEST) Received: by mail-io1-f68.google.com with SMTP id y14so10940704iol.12 for ; Sat, 04 Apr 2020 09:10:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=wb+Xe1Es28o1S01AwAQqnERqCQNm1lDKbDctz33w0Ws=; b=BfPYkDIliZIKV+VxLQSsetNZnGsHY0U27qL0G4RaemIXmiV5TbkdUNdEHryuRw90vu WtGGOP1hdfoQNg++Y4tHbqZ4UcIy5U45P7DM3QtYgxlADpamh96FRJHvQoC7l2gWCh6h E9dUsMq1anr7nASelkmx7bo36Ty2JgH9chCKhJQwgzhRdSihbBEMkjfQREAF7zsyR2VS lLpqGLCz4WxpKJuN0z2rBdhCDJ6Hvoht33+PNKqt/m5IjNXF+IGVGjXQJF8cgKj23oFg 3b64CtbtyyvwNP8pYnflsh7dbyYhbO1X/fzBEWESoyHN66JaLVBBKaIcn42S8TSdyLy6 lxHQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=wb+Xe1Es28o1S01AwAQqnERqCQNm1lDKbDctz33w0Ws=; b=dG5Afa9ZuuNU/c9NnamWEnssjB9L659uWz+z6LnDVNlNZZIb0kwBcvmbZTlKE5DvX/ IYcS1MEr1XAX69rQWAAK8wbG70fHM5X9Rqb3gsVB3oKOzRO0H8fYdOhl4ZcYVVI1p/8p XQqh+pW8jpC4twlbFYnggGXReanf4UjtsB5KwNYkF80u8o5TKqMT49xMpiR/GOMciakS FrgWNKPdmC59+og4hZ/Sd1/TNTlYUMQWZQxLEvvXOyxS3aEuai5o/4nLs2tl1pvSTSzO sgvF0U25e9/piDKm1Kl+y33JvEbMu3AoW1JGPE1LLwCum5fcbfj1SzJrAd0IkrmB9DNa dz0w== X-Gm-Message-State: AGi0PubCCCreskWamYpYWk7fF59cLQcfytZsk97OXX7PXCnPHURL5cKq /ovB8dhHRDnfulT/mXQa6SfUEItNbGO8rg3D1LMy3+f67x4= X-Google-Smtp-Source: APiQypIV7XVl+aiWN1qqa16t7y5Rnrw3QrL/7uPRfBm6s1RM3E3Z/wtE8t845VQuyMxaGj9vIvdwJA5TVvqu1cKdisI= X-Received: by 2002:a5d:87c6:: with SMTP id q6mr12312252ios.163.1586016650872; Sat, 04 Apr 2020 09:10:50 -0700 (PDT) MIME-Version: 1.0 References: <20200326064216.5676-1-pbhagavatula@marvell.com> <20200331125315.2521-1-pbhagavatula@marvell.com> <8becda5f-9d4b-f4b4-9147-fa22fcacf497@semihalf.com> In-Reply-To: <8becda5f-9d4b-f4b4-9147-fa22fcacf497@semihalf.com> From: Jerin Jacob Date: Sat, 4 Apr 2020 21:40:34 +0530 Message-ID: To: Andrzej Ostruszka Cc: dpdk-dev Content-Type: text/plain; charset="UTF-8" Subject: Re: [dpdk-dev] [PATCH v3] examples/l2fwd-event: add option to configure port pairs 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" On Tue, Mar 31, 2020 at 10:37 PM Andrzej Ostruszka wrote: > > On 3/31/20 2:53 PM, pbhagavatula@marvell.com wrote: > > From: Pavan Nikhilesh > > > > Current l2fwd-event application statically configures adjacent ports as > > destination ports for forwarding the traffic. > > > > Add a config option to pass the forwarding port pair mapping which allows > > the user to configure forwarding port mapping. > > > > If no config argument is specified, destination port map is not > > changed and traffic gets forwarded with existing mapping. > > > > To align port/queue configuration of each lcore with destination port > > map, port/queue configuration of each lcore gets modified when config > > option is specificed. > > > > Ex: ./l2fwd-event -c 0xff -- -p 0x3f -q 2 --config="(0,3)(1,4)(2,5)" > > > > With above config option, traffic received from portid = 0 gets forwarded > > to port = 3 and vice versa, similarly traffic gets forwarded on other port > > pairs (1,4) and (2,5). > > > > Signed-off-by: Pavan Nikhilesh > > --- > > v3 Changes: > > - Use simple memcpy instead of snprintf. (Andrzej) > > - Skip redudant loop iterations. (Andrzej) > > - Use RTE_MAX_ETHPORTS instead of hardcoding to 255. (Andrzej) > > > > v2 Changes: > > - Fix minor formatting error. > > - Change uint8_t to bool. > > Reviewed-by: Andrzej Ostruszka Applied to dpdk-next-eventdev/master. Thanks.