Subject: Rare project developers
List archive
- From: Alexander Gall <>
- To: <>
- Cc: <>
- Subject: Re: [rare-dev] RARE on Tofino model
- Date: Fri, 17 Jun 2022 14:02:21 +0200
On Fri, 17 Jun 2022 09:35:02 +0200, mc36 <> said:
> hi,
> well, if we're talking about workarounds, freerouter already had the knob
> no autostate to have a down interface in the routing tables...
> with this commit
> https://github.com/rare-freertr/freeRtr/commit/cc0cb4f563bd5e4da2eeeff6d9c5fa40e3c9f79c
> it just passes traffic in such
> a case... (before it dropped everything regardless of the autostate
> configured or not on down interfaces)
> now i see hw counters reported from the dataplane that is, it went out
> somewhere on the tofino model....
Yes, as I said, the model happily passes packets in and out of ports
that are in the down state. I just checked and the same is true for
the Tofino2 model as well (remember, there the port is also marked
with RDY == NO in addition to being in oper DWN state).
So this option makes freertr work on both models, which is nice. The
only drawback is that we have to add that config option specifically
for the model. The workaround with the forwarder would avoid that.
--
Alex
> br,
> cs
> rare(cfg-if)#no autostate
> rare(cfg-if)#do cle co
> rare(cfg-if)#do pin 1.1.1.2 vr v1 re 1111 tim 1
> pinging 1.1.1.2, src=null, vrf=v1, cnt=1111, len=64, df=false, tim=1,
> gap=0, ttl=255, tos=0, sgt=0, flow=0, fill=0, sweep=false, multi=false
> .......................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
> result=0%, recv/sent/lost/err=0/1111/1111/0, rtt
> min/avg/max/sum=10/0/0/1343, ttl min/avg/max=256/0/0, tos
> min/avg/max=256/0/0
> rare(cfg-if)#show interfaces summary
> interface state tx rx drop
> ethernet0 up 35552 0 0
> ethernet1 up 2362 0 0
> ethernet2 up 0 0 0
> sdn1 up 33330+31186 0+0 0+0
> rare(cfg-if)#
> On 6/17/22 08:49, Alexander Gall wrote:
>>
>> Hi
>>
>> On Tue, 14 Jun 2022 16:28:14 +0200, mc36 <> said:
>>
>>> hmmm... then we should move the sde990 then, for at least for the tofino1
>>> model to work?
>>
>> There is one obvious workaround: if running on the model, the
>> forwarder could simply synthesize the oper status by copying the admin
>> status. That would work at least on the Tofino1 model, which appears
>> to ignore the actual oper status in any case. I'd have to check
>> whether that would work for the Tofino2 model as well.
>>
- Re: [rare-dev] RARE on Tofino model, (continued)
- Re: [rare-dev] RARE on Tofino model, Alexander Gall, 06/14/2022
- Re: [rare-dev] RARE on Tofino model, mc36, 06/14/2022
- Re: [rare-dev] RARE on Tofino model, Alexander Gall, 06/14/2022
- Re: [rare-dev] RARE on Tofino model, mc36, 06/14/2022
- Re: [rare-dev] RARE on Tofino model, Alexander Gall, 06/14/2022
- Re: [rare-dev] RARE on Tofino model, mc36, 06/14/2022
- Re: [rare-dev] RARE on Tofino model, Alexander Gall, 06/14/2022
- Re: [rare-dev] RARE on Tofino model, mc36, 06/14/2022
- Re: [rare-dev] RARE on Tofino model, Alexander Gall, 06/17/2022
- Re: [rare-dev] RARE on Tofino model, mc36, 06/17/2022
- Re: [rare-dev] RARE on Tofino model, Alexander Gall, 06/17/2022
- Re: [rare-dev] RARE on Tofino model, mc36, 06/17/2022
- Re: [rare-dev] RARE on Tofino model, Alexander Gall, 06/17/2022
- Re: [rare-dev] RARE on Tofino model, Alexander Gall, 06/14/2022
- Re: [rare-dev] RARE on Tofino model, mc36, 06/14/2022
- Re: [rare-dev] RARE on Tofino model, Alexander Gall, 06/14/2022
Archive powered by MHonArc 2.6.19.