Re: [vpp-dev] vpp ip6 fib

2017-06-13 Thread Pragash Vijayaragavan
Thanks for the help Neale, works fine now.

Thanks,

Pragash Vijayaragavan
Grad Student at Rochester Institute of Technology
email : pxv3...@rit.edu
ph : 585 764 4662


On Tue, Jun 13, 2017 at 3:40 AM, Neale Ranns (nranns) 
wrote:

> Hi Pragash,
>
>
>
> To update table[FWD] we use the ip6_fib_table_fwding* functions.
>
> Tp update table[NON_FWD] we use the ip6_fb_table_entry_* functions.
>
>
>
> In both cases the key is the prefix (a/x in your example). In table[FWD]
> the value is the index of the load-balance object, in table[NON-FWD] the
> value is the index of the fib_entry_t.
>
>
>
> If you add this route;
>
>   Ip route add a/x via b.
>
>
>
> You’ll first see additions to both tables for b/128 and then additions for
> a/x.
>
>
>
> Hth,
>
> neale
>
>
>
> *From: *Pragash Vijayaragavan 
> *Reply-To: *"pxv3...@rit.edu" 
> *Date: *Tuesday, 13 June 2017 at 07:26
> *To: *"Neale Ranns (nranns)" , "vpp-dev@lists.fd.io" <
> vpp-dev@lists.fd.io>
> *Cc: *Minseok Kwon , Shailesh Vajpayee 
> *Subject: *vpp ip6 fib
>
>
>
> Hi,
>
>
>
> Can someone please help me on below,
>
>
>
> when i insert a route using "ip route add  via "
>
>
>
> how does the fib insert this in its table[FWD, NON_FWD], -> does it call
> different functions for forwarding and nonforwarding ip6_addresses?
>
>
>
> I have inserted a cuckoo_add code on "ip6_fib_table_fwding_dpo_update"
> function,
>
> but only the  ip is getting inserted into my cuckoo filter always.
>
>
>
> Which function does a/x call to insert into the fib?,
>
>
>
> i also tried a cuckoo_add inside "ip6_fib_table_entry_insert"
>
> but this didnt work as well.
>
>
>
> I came across this when i made a CLI to display my cuckoo filter, and im
> pretty sure there is
>
> nothing wrong with the cli.
>
>
>
>
> Thanks,
>
>
>
> Pragash Vijayaragavan
>
> Grad Student at Rochester Institute of Technology
>
> email : pxv3...@rit.edu
>
> ph : 585 764 4662 <(585)%20764-4662>
>
>
>
>
___
vpp-dev mailing list
vpp-dev@lists.fd.io
https://lists.fd.io/mailman/listinfo/vpp-dev

Re: [vpp-dev] vpp ip6 fib

2017-06-13 Thread Neale Ranns (nranns)
Hi Pragash,

To update table[FWD] we use the ip6_fib_table_fwding* functions.
Tp update table[NON_FWD] we use the ip6_fb_table_entry_* functions.

In both cases the key is the prefix (a/x in your example). In table[FWD] the 
value is the index of the load-balance object, in table[NON-FWD] the value is 
the index of the fib_entry_t.

If you add this route;
  Ip route add a/x via b.

You’ll first see additions to both tables for b/128 and then additions for a/x.

Hth,
neale

From: Pragash Vijayaragavan 
Reply-To: "pxv3...@rit.edu" 
Date: Tuesday, 13 June 2017 at 07:26
To: "Neale Ranns (nranns)" , "vpp-dev@lists.fd.io" 

Cc: Minseok Kwon , Shailesh Vajpayee 
Subject: vpp ip6 fib

Hi,

Can someone please help me on below,

when i insert a route using "ip route add  via "

how does the fib insert this in its table[FWD, NON_FWD], -> does it call 
different functions for forwarding and nonforwarding ip6_addresses?

I have inserted a cuckoo_add code on "ip6_fib_table_fwding_dpo_update" function,
but only the  ip is getting inserted into my cuckoo filter always.

Which function does a/x call to insert into the fib?,

i also tried a cuckoo_add inside "ip6_fib_table_entry_insert"
but this didnt work as well.

I came across this when i made a CLI to display my cuckoo filter, and im pretty 
sure there is
nothing wrong with the cli.


Thanks,

Pragash Vijayaragavan
Grad Student at Rochester Institute of Technology
email : pxv3...@rit.edu
ph : 585 764 4662

___
vpp-dev mailing list
vpp-dev@lists.fd.io
https://lists.fd.io/mailman/listinfo/vpp-dev