Re: [vpp-dev] multicast traffic getting duplicated in lacp bond mode

2020-12-06 Thread ashish . saxena
Hi Steven,

Thanks for replying.

In linux bonding, there is option for xmit_hash_policy , that prevents the 
duplicate packets.

https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/networking_guide/sec-using_channel_bonding
 ( 
https://ind01.safelinks.protection.outlook.com/?url=https%3A%2F%2Faccess.redhat.com%2Fdocumentation%2Fen-us%2Fred_hat_enterprise_linux%2F7%2Fhtml%2Fnetworking_guide%2Fsec-using_channel_bonding&data=04%7C01%7C%7C9067b9113add406ab8b308d89891ca13%7Ca65543b9ae9349b580f00b85821adc50%7C1%7C0%7C637427099215289173%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=XBrzRuuP9X2G83ssSl0TsoKywKSx8s%2FyJc8f%2BMpj66E%3D&reserved=0
 )

Does VPP has anything equivalent to this linux feature?
Thanks and Regards,
Ashish

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#18254): https://lists.fd.io/g/vpp-dev/message/18254
Mute This Topic: https://lists.fd.io/mt/78654798/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] don't see any interface but local0

2020-12-06 Thread Dave Barach
Most likely, the corresponding Linux interface is up. Try running vpp
manually from the command-line, and look for messages of this form:

 

vlib_pci_bind_to_uio: Skipping PCI device :00:1f.6 as host interface
eno2 is up

vlib_pci_bind_to_uio: Skipping PCI device :02:00.0 as host interface
enp2s0f0 is up

vlib_pci_bind_to_uio: Skipping PCI device :02:00.1 as host interface
enp2s0f1 is up

vlib_pci_bind_to_uio: Skipping PCI device :03:00.0 as host interface
enp3s0f0 is up

 

We should change pci.c to put these messages in the vlib log. 

 

D.

 

P.S. "# /build-root/install-vpp-native/vpp/bin/vpp unix interactive"

 

From: vpp-dev@lists.fd.io  On Behalf Of hemant via
lists.fd.io
Sent: Saturday, December 5, 2020 9:21 PM
To: vpp-dev@lists.fd.io
Subject: [vpp-dev] don't see any interface but local0

 

I am using latest VPP on Ubuntu 18.04. I have at least eth0-eth3 interfaces
on my machine.

 

This is a log for what I did and do not see any interface but local0 in the
output of "show interface"?

 

hemant@upper:~/vpp$ sudo make run-release

[sudo] password for hemant: 

WARNING: STARTUP_CONF not defined or file doesn't exist.

 Running with minimal startup config:  unix { interactive cli-listen
/run/vpp/cli.sock gid 0 } dpdk { no-pci } 

 

dpdk [warn  ]: not enough DPDK crypto resources

dpdk/cryptodev   [warn  ]: dpdk_cryptodev_init: Not enough cryptodevs

vat-plug/load[error ]:
/home/hemant/vpp/build-root/install-vpp-native/vpp/lib/vpp_api_test_plugins/
upf_test_plugin.so: undefined symbol: upf_main

vat-plug/load[error ]: vat_plugin_register: oddbuf plugin not loaded...

_____   _  ___ 

 __/ __/ _ \  (_)__| | / / _ \/ _ \

_/ _// // / / / _ \   | |/ / ___/ ___/

/_/ /(_)_/\___/   |___/_/  /_/

 

vpp# sh interface 

  Name   IdxState  MTU (L3/IP4/IP6/MPLS)
Counter  Count 

local00 down  0/0/0/0   

vpp#

 

I did search for the issue first and found:

 

https://www.mail-archive.com/vpp-dev@lists.fd.io/msg00609.html

 

But the above link does not clue me in.

 

Thanks,

 

Hemant

 

 


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#18255): https://lists.fd.io/g/vpp-dev/message/18255
Mute This Topic: https://lists.fd.io/mt/78747831/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[vpp-dev] Packages are not visible

2020-12-06 Thread Merve
Hi,
When i want to send packet from DPDK based generator to VPP. packages are not 
visible when "show int"

DBGvpp# show int
Name   Idx    State  MTU (L3/IP4/IP6/MPLS) Counter  
Count
TenGigabitEthernet1/0/0   1 down 9000/0/0/0
TenGigabitEthernet1/0/1   2  up  9000/0/0/0
local0    0 down  0/0/0/0

but when "show hardware-interfaces", "rx_total_packets"  is not fill

TenGigabitEthernet1/0/1    2    down  TenGigabitEthernet1/0/1
Link speed: unknown
Ethernet address ac:1f:6b:f8:1f:11
Intel 82599
carrier down
flags: admin-up pmd maybe-multiseg tx-offload intel-phdr-cksum rx-ip4-cksum
rx: queues 1 (max 128), desc 2048 (min 32 max 4096 align 8)
tx: queues 1 (max 64), desc 2048 (min 32 max 4096 align 8)
pci: device 8086:1528 subsystem 15d9:0734 address :01:00.01 numa 0
max rx packet len: 15872
promiscuous: unicast off all-multicast on
vlan offload: strip off filter off qinq off
rx offload avail:  vlan-strip ipv4-cksum udp-cksum tcp-cksum tcp-lro
macsec-strip vlan-filter vlan-extend jumbo-frame scatter
security keep-crc rss-hash
rx offload active: ipv4-cksum jumbo-frame scatter
tx offload avail:  vlan-insert ipv4-cksum udp-cksum tcp-cksum sctp-cksum
tcp-tso macsec-insert multi-segs security
tx offload active: udp-cksum tcp-cksum multi-segs
rss avail: ipv4-tcp ipv4-udp ipv4 ipv6-tcp-ex ipv6-udp-ex ipv6-tcp
ipv6-udp ipv6-ex ipv6
rss active:    none
tx burst function: ixgbe_xmit_pkts
rx burst function: ixgbe_recv_scattered_pkts_vec

extended stats:
mac_local_errors    84
mac_remote_errors    3
rx_total_packets   637
rx_total_bytes  581074

What can I do in this situation? Are my packets not being delivered properly to 
my nodes?

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#18256): https://lists.fd.io/g/vpp-dev/message/18256
Mute This Topic: https://lists.fd.io/mt/78753720/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] multicast traffic getting duplicated in lacp bond mode

2020-12-06 Thread steven luong via lists.fd.io
When you create the bond interface using either lacp or xor mode, there is an 
option to specify load-balance l2, l23, or l34 which is equivalent to linux 
xmit_hash_policy.

Steven

From:  on behalf of "ashish.sax...@hsc.com" 

Date: Sunday, December 6, 2020 at 3:24 AM
To: "vpp-dev@lists.fd.io" 
Subject: Re: [vpp-dev] multicast traffic getting duplicated in lacp bond mode

Hi Steven,

Thanks for replying.

In linux bonding, there is option for xmit_hash_policy , that prevents the 
duplicate packets.

 
https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/networking_guide/sec-using_channel_bonding

Does VPP has anything equivalent to this linux feature?
Thanks and Regards,
Ashish

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#18257): https://lists.fd.io/g/vpp-dev/message/18257
Mute This Topic: https://lists.fd.io/mt/78654798/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] don't see any interface but local0

2020-12-06 Thread hemant via lists.fd.io
Hi Dave,

 

Thanks for your reply.  

 

No luck yet.

 

I ran VPP manually and log is included below.  I have also included output
of ifconfig on my machine.  I do have hugepage setup in 80-vpp.conf as well.


 

Thanks,

 

Hemant

 

hemant@upper:~/vpp$ ./build-root/install-vpp-native/vpp/bin/vpp unix
interactive

buffer  [warn  ]: vlib_physmem_shared_map_create: pmalloc_map_pages:
Unable to lock pages: Cannot allocate memory

buffer  [warn  ]: falling back to non-hugepage backed buffer pool

buffer  [warn  ]: vlib_physmem_shared_map_create: pmalloc_map_pages:
Unable to lock pages: Cannot allocate memory

buffer  [warn  ]: falling back to non-hugepage backed buffer pool

dpdk [warn  ]: not enough DPDK crypto resources

dpdk/cryptodev   [warn  ]: dpdk_cryptodev_init: Not enough cryptodevs

vat-plug/load[error ]: vat_plugin_register: oddbuf plugin not loaded...

_____   _  ___ 

 __/ __/ _ \  (_)__| | / / _ \/ _ \

_/ _// // / / / _ \   | |/ / ___/ ___/

/_/ /(_)_/\___/   |___/_/  /_/

 

vpp# sh interface 

  Name   IdxState  MTU (L3/IP4/IP6/MPLS)
Counter  Count 

local00 down  0/0/0/0   

vpp#

 

hemant@upper:~$ ifconfig

docker0: flags=4099  mtu 1500

inet 172.17.0.1  netmask 255.255.0.0  broadcast 172.17.255.255

ether 02:42:28:0a:a8:4a  txqueuelen 0  (Ethernet)

RX packets 0  bytes 0 (0.0 B)

RX errors 0  dropped 0  overruns 0  frame 0

TX packets 0  bytes 0 (0.0 B)

TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

 

eth0: flags=4163  mtu 1500

inet 192.168.1.191  netmask 255.255.255.0  broadcast 192.168.1.255

ether 00:15:17:ec:d1:7c  txqueuelen 1000  (Ethernet)

RX packets 22097  bytes 5057265 (5.0 MB)

RX errors 0  dropped 0  overruns 0  frame 0

TX packets 23675  bytes 12025126 (12.0 MB)

TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

device interrupt 20  memory 0xb270-b272  

 

eth1: flags=4099  mtu 1500

ether 00:15:17:ec:d1:7d  txqueuelen 1000  (Ethernet)

RX packets 0  bytes 0 (0.0 B)

RX errors 0  dropped 0  overruns 0  frame 0

TX packets 0  bytes 0 (0.0 B)

TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

device interrupt 24  memory 0xb260-b262  

 

eth2: flags=4099  mtu 1500

ether 00:1b:21:7b:f3:68  txqueuelen 1000  (Ethernet)

RX packets 0  bytes 0 (0.0 B)

RX errors 0  dropped 0  overruns 0  frame 0

TX packets 0  bytes 0 (0.0 B)

TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

device memory 0xb242-b243  

 

eth3: flags=4099  mtu 1500

ether 00:1b:21:7b:f3:69  txqueuelen 1000  (Ethernet)

RX packets 0  bytes 0 (0.0 B)

RX errors 0  dropped 0  overruns 0  frame 0

TX packets 0  bytes 0 (0.0 B)

TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

device memory 0xb240-b241  

 

lo: flags=73  mtu 65536

inet 127.0.0.1  netmask 255.0.0.0

loop  txqueuelen 1000  (Local Loopback)

RX packets 32018  bytes 11977217 (11.9 MB)

RX errors 0  dropped 0  overruns 0  frame 0

TX packets 32018  bytes 11977217 (11.9 MB)

TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

 

virbr0: flags=4099  mtu 1500

inet 192.168.122.1  netmask 255.255.255.0  broadcast 192.168.122.255

ether 52:54:00:64:6b:b2  txqueuelen 1000  (Ethernet)

RX packets 0  bytes 0 (0.0 B)

RX errors 0  dropped 0  overruns 0  frame 0

TX packets 0  bytes 0 (0.0 B)

TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

 

From: vpp-dev@lists.fd.io  On Behalf Of Dave Barach
Sent: Sunday, December 06, 2020 7:49 AM
To: hem...@mnkcg.com; vpp-dev@lists.fd.io
Subject: Re: [vpp-dev] don't see any interface but local0

 

Most likely, the corresponding Linux interface is up. Try running vpp
manually from the command-line, and look for messages of this form:

 

vlib_pci_bind_to_uio: Skipping PCI device :00:1f.6 as host interface
eno2 is up

vlib_pci_bind_to_uio: Skipping PCI device :02:00.0 as host interface
enp2s0f0 is up

vlib_pci_bind_to_uio: Skipping PCI device :02:00.1 as host interface
enp2s0f1 is up

vlib_pci_bind_to_uio: Skipping PCI device :03:00.0 as host interface
enp3s0f0 is up

 

We should change pci.c to put these messages in the vlib log. 

 

D.

 

P.S. "# /build-root/install-vpp-native/vpp/bin/vpp unix interactive"

 

From: vpp-dev@lists.fd.io   mailto:vpp-dev@lists.fd.io> > On Behalf Of hemant via lists.fd.io
Sent: Saturday, December 5, 2020 9:21 PM
To: vpp-dev@lists.fd.io  
Subject: [vpp-dev] don't see any interface but local0

 

I am using latest VPP on Ubun

Re: [vpp-dev] don't see any interface but local0

2020-12-06 Thread hemant via lists.fd.io
Dave,

 

You were right on the ball.  I realized, I didn't have latest DPDK installed
which is the root cause.  I installed latest DPDK on my machine using the
instructions here: https://core.dpdk.org/doc/quick-start/

 

Now the interface are seen in vpp once I shut them down in linux.

 

$ sudo ./build-root/install-vpp-native/vpp/bin/vpp unix interactive

vlib_pci_bind_to_uio: Skipping PCI device :00:19.0 as host interface
eth0 is updpdk [warn  ]: not enough DPDK crypto resources

dpdk/cryptodev   [warn  ]: dpdk_cryptodev_init: Not enough cryptodevs

vat-plug/load[error ]: vat_plugin_register: oddbuf plugin not loaded...

_____   _  ___ 

 __/ __/ _ \  (_)__| | / / _ \/ _ \

_/ _// // / / / _ \   | |/ / ___/ ___/

/_/ /(_)_/\___/   |___/_/  /_/

 

vpp# sh interface 

  Name   IdxState  MTU (L3/IP4/IP6/MPLS)
Counter  Count 

GigabitEthernet1/0/0  1 down 9000/0/0/0 

GigabitEthernet3/0/0  2 down 9000/0/0/0 

GigabitEthernet3/0/1  3 down 9000/0/0/0 

local00 down  0/0/0/0   

vpp#

 

thanks,

 

Hemant

 

From: vpp-dev@lists.fd.io  On Behalf Of Dave Barach
Sent: Sunday, December 06, 2020 7:49 AM
To: hem...@mnkcg.com; vpp-dev@lists.fd.io
Subject: Re: [vpp-dev] don't see any interface but local0

 

Most likely, the corresponding Linux interface is up. Try running vpp
manually from the command-line, and look for messages of this form:

 

vlib_pci_bind_to_uio: Skipping PCI device :00:1f.6 as host interface
eno2 is up

vlib_pci_bind_to_uio: Skipping PCI device :02:00.0 as host interface
enp2s0f0 is up

vlib_pci_bind_to_uio: Skipping PCI device :02:00.1 as host interface
enp2s0f1 is up

vlib_pci_bind_to_uio: Skipping PCI device :03:00.0 as host interface
enp3s0f0 is up

 

We should change pci.c to put these messages in the vlib log. 

 

D.

 

P.S. "# /build-root/install-vpp-native/vpp/bin/vpp unix interactive"

 

From: vpp-dev@lists.fd.io   mailto:vpp-dev@lists.fd.io> > On Behalf Of hemant via lists.fd.io
Sent: Saturday, December 5, 2020 9:21 PM
To: vpp-dev@lists.fd.io  
Subject: [vpp-dev] don't see any interface but local0

 

I am using latest VPP on Ubuntu 18.04. I have at least eth0-eth3 interfaces
on my machine.

 

This is a log for what I did and do not see any interface but local0 in the
output of "show interface"?

 

hemant@upper:~/vpp$ sudo make run-release

[sudo] password for hemant: 

WARNING: STARTUP_CONF not defined or file doesn't exist.

 Running with minimal startup config:  unix { interactive cli-listen
/run/vpp/cli.sock gid 0 } dpdk { no-pci } 

 

dpdk [warn  ]: not enough DPDK crypto resources

dpdk/cryptodev   [warn  ]: dpdk_cryptodev_init: Not enough cryptodevs

vat-plug/load[error ]:
/home/hemant/vpp/build-root/install-vpp-native/vpp/lib/vpp_api_test_plugins/
upf_test_plugin.so: undefined symbol: upf_main

vat-plug/load[error ]: vat_plugin_register: oddbuf plugin not loaded...

_____   _  ___ 

 __/ __/ _ \  (_)__| | / / _ \/ _ \

_/ _// // / / / _ \   | |/ / ___/ ___/

/_/ /(_)_/\___/   |___/_/  /_/

 

vpp# sh interface 

  Name   IdxState  MTU (L3/IP4/IP6/MPLS)
Counter  Count 

local00 down  0/0/0/0   

vpp#

 

I did search for the issue first and found:

 

https://www.mail-archive.com/vpp-dev@lists.fd.io/msg00609.html

 

But the above link does not clue me in.

 

Thanks,

 

Hemant

 

 



smime.p7s
Description: S/MIME cryptographic signature

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#18259): https://lists.fd.io/g/vpp-dev/message/18259
Mute This Topic: https://lists.fd.io/mt/78747831/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-