Skip to Content.
Sympa Menu

rare-dev - Re: [rare-dev] RARE@400G

Subject: Rare project developers

List archive

Re: [rare-dev] RARE@400G


Chronological Thread 
  • From: Alexander Gall <>
  • To: <>
  • Cc: <>
  • Subject: Re: [rare-dev] RARE@400G
  • Date: Wed, 8 Jun 2022 08:24:30 +0200

Hi

On Tue, 7 Jun 2022 11:49:53 +0200, mc36 <> said:

> hi,
> sounds cool... i also did some of my homework with the optimizer...
> now it accepts arbitrary p4c parameters after the profile.tmpl name, that
> will be passed...
> (i also updated the .sh files to have the previous functionality...)

> for curiosity i reoptimized the p profile and the difference speaks for
> itself:
> mc36@noti:~$ diff profile-p.old profile-p.p4
> 18c18
> < #define IPV4_LPM_TABLE_SIZE 65536
> ---
>> #define IPV4_LPM_TABLE_SIZE 417385
> 20c20
> < #define IPV6_LPM_TABLE_SIZE 16384
> ---
>> #define IPV6_LPM_TABLE_SIZE 104346
> 28c28
> < #define MPLS_TABLE_SIZE 163840
> ---
>> #define MPLS_TABLE_SIZE 138106

> so please consider running a full reoptimization round for both t1 and t2
> chips
> because for now, the optimizer also works a bit differently on t1 too...

Done, as you've already seen :) My build procedure for compiling
bf_router.p4 now uses -I profiles/9.7.2/tofino or -I
profiles/9.7.2/tofino2 depending on the platform (the platform
determines the target/architecutre).

> another idea, you support now onie_machine=model in /etc/machine.conf
> please consider splitting it to two... let's say model_veth where the
> current
> functionality would be exposed, and model_ext where you dont spin up the
> veth
> creation but start with an external port map exposing the vm physical
> interfaces...
> this way one could drop the image to gns3 and surround it with other
> boxes...
> this is how i start my dataplane vm:
> https://github.com/rare-freertr/freeRtr/blob/master/misc/p4bf/r1.sh
> https://github.com/rare-freertr/freeRtr/blob/master/misc/p4bf/r2.sh
> https://github.com/rare-freertr/freeRtr/blob/master/misc/p4bf/ports.json

This is on my todo list. What I'm planning to do is to make the
port-configuration JSON file (i.e. your ports.json) for the model
configurable and have a wrapper that creates the veths specified in
that file (if there are any).

--
Alex

> thanks,
> cs





> On 6/3/22 15:40, Alexander Gall wrote:
>>
>> It's basically done, at least for a first go. All important features
>> are there, I think. Just one annoying thing left to fix. The Tofino2
>> SDE has a bug in the BFRT code that's harmless but generates so many
>> error messages that I can't release it like that (the bug was reported
>> on the Forum and Vladimir has assigned JIRA issue DRV-6313 to it). I'm
>> going to write a patch that eliminates the messages next week. Then
>> I'll test the ONIE installer and finally I'll make RARE release #2,
>> hopefully also next week.
>>
>> Stay tuned :)
>>



Archive powered by MHonArc 2.6.19.

Top of Page