[Edited Message Follows]

Hi all,
 
I did an experiment on interface capacity in vpp-agent and the results are as 
follows:

1. af_packet: Less than 240 ( when host memory is 8g )

created by:
  ip link add name veth_lan$i type veth peer name lan$i
  ip link set dev lan$i up
  ip link set dev veth_lan$i up
  vppctl create host-interface name lan$i

If I only creat ip dev without vpp host-interface, the number is far more than 
1000, why does the af_packet interface take up so much memory? Is there any way 
to create more af_packet interfaces?
 
2. memif: Less than 255
created by:

  vppctl create interface memif id $i
The limiting factor for memif is node_index in src/vlib/error.h : ( 
https://github.com/FDio/vpp/commit/aa682a39b76ee043f65313f23e134bf18fe7a47e#diff-957e9419019250abf89c224349060611
 )

always_inline vlib_error_t
vlib_error_set (u32 node_index, u32 code)
{
  ASSERT (node_index < (1 << 10));
  ASSERT (code < (1 << 6));
  return (node_index << 6) | code;
}
If I change node_index of error_set back to 1<<20, the number of memif 
interfaces can reach 3000+. If so, What other effects?

3. tapV2: Less than 1024
created by:
  vppctl create tap id $i
The limiting factor for tapV2 is TAP_MAX_INSTANCE 1024 in 
src/vnet/devices/tap/tap.c ( 
https://github.com/FDio/vpp/commit/cbe8d65068c9c39ca6b1f7e116dac2744835f18c#diff-e37d3f4d89a66ac984f7dc3c31f9bb35
 ).
Why set TAP_MAX_INSTANCE to 1024? If it is changed to 2048, what other effects?
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#10592): https://lists.fd.io/g/vpp-dev/message/10592
Mute This Topic: https://lists.fd.io/mt/25838930/21656
Group Owner: [email protected]
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub  [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to