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 5B6E0A0C4D; Mon, 4 Oct 2021 17:46:50 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D1D8F41307; Mon, 4 Oct 2021 17:46:49 +0200 (CEST) Received: from mail-pj1-f50.google.com (mail-pj1-f50.google.com [209.85.216.50]) by mails.dpdk.org (Postfix) with ESMTP id 9842441307 for ; Mon, 4 Oct 2021 17:46:48 +0200 (CEST) Received: by mail-pj1-f50.google.com with SMTP id rj12-20020a17090b3e8c00b0019f88e44d85so5935233pjb.4 for ; Mon, 04 Oct 2021 08:46:48 -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=C68SKYqoooj6IYElO91vaVBMqAN9TQnxV/v7m0GQcEs=; b=77594G7OaD4MRlHY1GrnE20x4KCEfev0vho8/c+PS5wXxUKQ5LaMcHW+GmEyYyx/Xm RCMyUNkuW+HiWJyvjeeiJ2kIkSjbbdnYXF0duwYQ8/IEGZD39J6u0Vo7Tzo2RK5O0RPe jjM1/69GKsjdYjCSsVeOjXwEqYDTS4Ndwy1KeNlNVsBMBz+WvmfoUk6SBzcgHJCs7RXj yWYW8ggMwNGB4goiVuEwId8jrmu+r39HjyfnAzlud3mpISiO55NLE6SXCnsLnGTng7f+ R7oeXuQStlGaUNrZ9nCQvBirdDvE971mO4Hz8MNNlOekCtxGPgnV/o8jnI5pqT1oxnE3 buag== 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=C68SKYqoooj6IYElO91vaVBMqAN9TQnxV/v7m0GQcEs=; b=OHsg42TzeeyeyJKP+8tY5hJHKSgSqHeAJjTxPfanBcSjtmX0QhOtf5B94P+yI6gfHA DCEwv1bzShsDSPBGNAHBqcSXS5mtaddcRIt4xAxvXqnKabGZ6fysIsYoilv7vITrBGFk 2YpuYzD56bqsIfj0bMAhaih11EH6GsSFEywswEi8zjC+hTGR4LivcaY9j/Hhfc+/wFWf NKLUlyr8+OrW9mM49nCoBhX5GSht52KU54dmURZe5m4Qv03JqsJVeWmb219e+S0mLIav JSUG3u1CXpsHaxvDOJz8As/x9ciwt4NoFTlephlvmR1EaE+PLyRmMma3vfeU+bKdmHUp TkWg== X-Gm-Message-State: AOAM532XaaWaswH3IJfSydBJP7GBp28q+Oo1EZ4D8QTSKJvzLVWC2qr4 VSdEfQMTcmOmxlDPz9/MsDUQ0w== X-Google-Smtp-Source: ABdhPJyD7pcXaftlhGb6oHPHdD0zvSiW001uOIMpRy/PPSpcugPxsx/B6xLi1kpanSiiYl1/Af2mvg== X-Received: by 2002:a17:90a:181:: with SMTP id 1mr31462450pjc.214.1633362407639; Mon, 04 Oct 2021 08:46:47 -0700 (PDT) Received: from hermes.local (204-195-33-123.wavecable.com. [204.195.33.123]) by smtp.gmail.com with ESMTPSA id qe17sm15022140pjb.39.2021.10.04.08.46.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Oct 2021 08:46:47 -0700 (PDT) Date: Mon, 4 Oct 2021 08:46:44 -0700 From: Stephen Hemminger To: Cc: , Message-ID: <20211004084644.4e82c036@hermes.local> In-Reply-To: <20211003201110.10448-1-pbhagavatula@marvell.com> References: <20200802181631.691-1-pbhagavatula@marvell.com> <20211003201110.10448-1-pbhagavatula@marvell.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [PATCH 1/3] examples/l3fwd: increase number of routes 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 Sender: "dev" On Mon, 4 Oct 2021 01:41:08 +0530 wrote: > From: Pavan Nikhilesh > > Increase the number of routes from 8 to 16 that are statically added for > lpm and em mode as most of the SoCs support more than 8 interfaces. > The number of routes added is equal to the number of ethernet devices > ports enabled through port mask. > > Signed-off-by: Pavan Nikhilesh > --- > v3 Changes: (Finally!) > - Add FIB to the list. > - Update release notes. > - Update EM route addition routine and use the correct IP addresses > DTS need not be updated as EM test doesn't use IP addresses defined > in l3fwd. > > v2 Changes: > - Fixup for EM mode. > > examples/l3fwd/l3fwd_route.h | 4 ++-- > examples/l3fwd/main.c | 20 ++++++++++++++++++-- > 2 files changed, 20 insertions(+), 4 deletions(-) > > diff --git a/examples/l3fwd/l3fwd_route.h b/examples/l3fwd/l3fwd_route.h > index 89f8634443..c7eba06c4d 100644 > --- a/examples/l3fwd/l3fwd_route.h > +++ b/examples/l3fwd/l3fwd_route.h > @@ -14,6 +14,6 @@ struct ipv6_l3fwd_route { > uint8_t if_out; > }; > > -extern const struct ipv4_l3fwd_route ipv4_l3fwd_route_array[8]; > +extern const struct ipv4_l3fwd_route ipv4_l3fwd_route_array[16]; > > -extern const struct ipv6_l3fwd_route ipv6_l3fwd_route_array[8]; > +extern const struct ipv6_l3fwd_route ipv6_l3fwd_route_array[16]; > diff --git a/examples/l3fwd/main.c b/examples/l3fwd/main.c > index 00ac267af1..194f6ac1a4 100644 > --- a/examples/l3fwd/main.c > +++ b/examples/l3fwd/main.c > @@ -179,7 +179,7 @@ static struct l3fwd_lkp_mode l3fwd_fib_lkp = { > > /* > * 198.18.0.0/16 are set aside for RFC2544 benchmarking (RFC5735). > - * 198.18.{0-7}.0/24 = Port {0-7} > + * 198.18.{0-15}.0/24 = Port {0-15} > */ > const struct ipv4_l3fwd_route ipv4_l3fwd_route_array[] = { > {RTE_IPV4(198, 18, 0, 0), 24, 0}, > @@ -190,11 +190,19 @@ const struct ipv4_l3fwd_route ipv4_l3fwd_route_array[] = { > {RTE_IPV4(198, 18, 5, 0), 24, 5}, > {RTE_IPV4(198, 18, 6, 0), 24, 6}, > {RTE_IPV4(198, 18, 7, 0), 24, 7}, > + {RTE_IPV4(198, 18, 8, 0), 24, 8}, > + {RTE_IPV4(198, 18, 9, 0), 24, 9}, > + {RTE_IPV4(198, 18, 10, 0), 24, 10}, > + {RTE_IPV4(198, 18, 11, 0), 24, 11}, > + {RTE_IPV4(198, 18, 12, 0), 24, 12}, > + {RTE_IPV4(198, 18, 13, 0), 24, 13}, > + {RTE_IPV4(198, 18, 14, 0), 24, 14}, > + {RTE_IPV4(198, 18, 15, 0), 24, 15}, > }; > > /* > * 2001:200::/48 is IANA reserved range for IPv6 benchmarking (RFC5180). > - * 2001:200:0:{0-7}::/64 = Port {0-7} > + * 2001:200:0:{0-15}::/64 = Port {0-15} > */ > const struct ipv6_l3fwd_route ipv6_l3fwd_route_array[] = { > {{32, 1, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, 64, 0}, > @@ -205,6 +213,14 @@ const struct ipv6_l3fwd_route ipv6_l3fwd_route_array[] = { > {{32, 1, 2, 0, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 0}, 64, 5}, > {{32, 1, 2, 0, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 0}, 64, 6}, > {{32, 1, 2, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 0}, 64, 7}, > + {{32, 1, 2, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 0, 0}, 64, 8}, > + {{32, 1, 2, 0, 0, 0, 0, 9, 0, 0, 0, 0, 0, 0, 0, 0}, 64, 9}, > + {{32, 1, 2, 0, 0, 0, 0, 10, 0, 0, 0, 0, 0, 0, 0, 0}, 64, 10}, > + {{32, 1, 2, 0, 0, 0, 0, 11, 0, 0, 0, 0, 0, 0, 0, 0}, 64, 11}, > + {{32, 1, 2, 0, 0, 0, 0, 12, 0, 0, 0, 0, 0, 0, 0, 0}, 64, 12}, > + {{32, 1, 2, 0, 0, 0, 0, 13, 0, 0, 0, 0, 0, 0, 0, 0}, 64, 13}, > + {{32, 1, 2, 0, 0, 0, 0, 14, 0, 0, 0, 0, 0, 0, 0, 0}, 64, 14}, > + {{32, 1, 2, 0, 0, 0, 0, 15, 0, 0, 0, 0, 0, 0, 0, 0}, 64, 15}, > }; > > /* > -- > 2.33.0 > Maybe the table should be generated or take an input file generated by a script.