Re: [vpp-dev] Implementation of a hash table that can be both written and read by all VPP workers #vpp

2019-10-01 Thread krishnamurthy . mbnr
Thanks Dave, in our use case the number of reads are definitely going to be 
much higher than the number of writes. That said, we also expect number of 
writes to be about 10K - 20K writes/second. I am trying to figure out if any 
one has optimized the Bihash table for this type of use case as well. If you 
know of any such implementation, could you please let me know.

Regards
Krishna
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#14096): https://lists.fd.io/g/vpp-dev/message/14096
Mute This Topic: https://lists.fd.io/mt/34316400/21656
Mute #vpp: https://lists.fd.io/mk?hashtag=vpp&subid=1480452
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub  [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


[vpp-dev] Implementation of a hash table that can be both written and read by all VPP workers #vpp

2019-09-27 Thread krishnamurthy . mbnr
Hi,

We have a use case that requires us to implement a hash table with multi-thread 
support. In our use case all VPP workers can add/remove/access (i.e. write and 
read) entries to/from this hash table. I looked at the VPP Bihash 
implementation that has the property of not requiring reader locks. Ideally I 
would like to take a writer lock only when multiple writers are trying to 
update the same bucket. If anyone is aware of any such implementation in the 
Fd.Io code base, could you please point me to it so that I can use it as an 
example?

Best Regards,
Krishna
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#14078): https://lists.fd.io/g/vpp-dev/message/14078
Mute This Topic: https://lists.fd.io/mt/34316400/21656
Mute #vpp: https://lists.fd.io/mk?hashtag=vpp&subid=1480452
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub  [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


[vpp-dev] Crash in qsort

2019-09-14 Thread krishnamurthy . mbnr
Hi,

I am using the API vec_sort_with_function to sort a vector and I am noticing 
that it crashes. This API uses qsort function to sort the vector. Are there any 
knows issues with the implementation of qsort? I did see a couple of messages 
in this list discussing potential buffer overflow issues with this function. 
Can someone please educate me about other options I can use for sorting the 
vector (other than writing my own function?)

We are using v18.10 version of Fd.Io.

Thanks
Krishna
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#13984): https://lists.fd.io/g/vpp-dev/message/13984
Mute This Topic: https://lists.fd.io/mt/34147878/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub  [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


Re: [vpp-dev] Support for shared subnet

2019-09-14 Thread krishnamurthy . mbnr
On Wed, Sep 11, 2019 at 10:20 AM, Burt Silverman wrote:

> 
> Perhaps Krishna could use a total of 2 VLANs rather than 2 VLANs per line
> card, and also think in terms of point to point rather than subnets. I
> have not thought through whether or how that helps hide the traffic
> splitting/load balancing issue (or any other fine details.)
> 
> 

Thanks everyone for your responses. I will explore these suggestions.
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#13983): https://lists.fd.io/g/vpp-dev/message/13983
Mute This Topic: https://lists.fd.io/mt/34092746/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub  [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


Re: [vpp-dev] Support for shared subnet

2019-09-10 Thread krishnamurthy . mbnr
Our product has multiple line cards and each line card has multiple interfaces. 
We run an instance of VPP on each line card. All of these interfaces are 
connected to a L2 switching network. A PE router is also connected to this L2 
network for connectivity to internet.

In order to explain this use case, lets say we currently have two line cards 
(LC-1 and LC-2) and each line card has two interfaces. LC-1 has interfaces 
IF-11 & IF-12 and similarly LC-2 has interfaces IF-21 & IF-22. The following is 
a sample of configuration that is currently used.

-- -- 
--

Line CardInterface Name   VLANIP Address on Interface IP Address on 
PE router

-- -- 
--

LC-1  IF-11   101 10.1.1.2/24 ( http://10.1.1.2/24 ) 
10.1.1.1/24 ( http://10.1.1.1/24 )

LC-1  IF-12   102 10.1.2.2/24 ( http://10.1.2.2/24 ) 
10.1.2.1/24 ( http://10.1.2.1/24 )

LC-2  IF-21   103 10.1.3.2/24 ( http://10.1.3.2/24 ) 
10.1.3.1/24 ( http://10.1.3.1/24 )

LC-2  IF-22   104 10.1.4.2/24 ( http://10.1.4.2/24 ) 
10.1.4.1/24 ( http://10.1.4.1/24 )

-- -- 
-

The problem we are facing is that every time we add a new line card to our 
product, we are now required to also configure additional VLANs and IP subnets 
on the PE router. I am trying to explore if we can simply configure one VLAN 
for all of these interfaces and configure IP addresses of the same IP subnet on 
each interface. An example configuration that I’d like to use if this were 
possible is shown below. In this approach we only configure one vlan with one 
IP address on the PE router and when we add a new line card to our product, we 
only need to configure IP addresses in the IP subnet 10.1.1.0/24 ( 
http://10.1.1.0/24 ) IP subnet on the interfaces of this new line card.

-- -- 
--

Line CardInterface Name   VLANIP Address on Interface IP Address on 
PE router

-- -- 
--

LC-1  IF-11   101 10.1.1.2/24 ( http://10.1.1.2/24 ) 
10.1.1.1/24 ( http://10.1.1.1/24 )

LC-1  IF-12   101 10.1.1.3/24 ( http://10.1.1.3/24 )

LC-2  IF-21   101 10.1.1.4/24 ( http://10.1.1.4/24 )

LC-2  IF-22   101 10.1.1.5/24 ( http://10.1.1.5/24 )

-- -- 
-

Thanks
Krishna

Reply Reply all Forward
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#13947): https://lists.fd.io/g/vpp-dev/message/13947
Mute This Topic: https://lists.fd.io/mt/34092746/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub  [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


[vpp-dev] Support for shared subnet

2019-09-10 Thread krishnamurthy . mbnr
Hi,

We have a use case where we'd like to configure IP addresses on multiple 
interfaces in the same IP subnet. Currently this use case seems to be 
unsupported in 18.10 version of Fd.Io. Is this feature supported in a more 
current version? If not, can you please provide me guidance on how I can add 
support to this functionality?

vpp# show version
vpp v18.10-2

vpp# show interface address

VirtualFunctionEthernet0/6/0 (up):

VirtualFunctionEthernet0/6/0.56 (up):

L3 10.10.56.1/24

VirtualFunctionEthernet0/8/0 (up):

VirtualFunctionEthernet0/8/0.57 (up):

L3 10.10.57.1/24

vpp# set int ip address VirtualFunctionEthernet0/6/0.56 10.10.57.2/24
set interface ip address: failed to add 10.10.57.2/24 which conflicts with 
10.10.57.1/24 for interface VirtualFunctionEthernet0/8/0.57

vpp# set int ip address VirtualFunctionEthernet0/6/0.56 10.10.62.2/24

Thanks
Krishna
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#13937): https://lists.fd.io/g/vpp-dev/message/13937
Mute This Topic: https://lists.fd.io/mt/34092746/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub  [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-