Hello pim,
I try to dry run linux-cp plugin, refer to configuations in you blog
https://ipng.ch/s/articles/2021/12/23/vpp-playground.html ,
It worked fine with linux network default, but it can not work with separate
Linux network namespace "dataplane", Could you kind to give some suggestions
about how to root cause the issue ? thanks in advance!
I tried VPP 22.02 and VPP 22.06 release, both can not work with separate Linux
network namespace "dataplane".
My configurations as below,
1.
cat /etc/vpp/startup.conf
unix
{
log /tmp/vpe.log
cli-listen /run/vpp/cli.sock
nodaemon
full-coredump
exec /etc/vpp/bootstrap_clx4.vpp
}
socksvr
{
socket-name /run/vpp/api.sock
}
memory
{
main-heap-size 2G
main-heap-page-size 2M
default-hugepage-size 2M
}
statseg
{
size 2G
page-size 2M
per-node-counters on
}
plugins
{
plugin default
{
disable
}
plugin dpdk_plugin.so
{
enable
}
plugin perfmon_plugin.so
{
enable
}
plugin linux_nl_plugin.so
{
enable
}
plugin linux_cp_plugin.so
{
enable
}
}
ip6
{
hash-buckets 2000000
heap-size 4G
}
cpu
{
main-core 25
corelist-workers 26,27,28,29
}
buffers
{
buffers-per-numa 107520
}
dpdk
{
dev 0000:d8:00.1
dev 0000:da:00.1
no-tx-checksum-offload
log-level debug
uio-driver vfio-pci
dev default
{
num-rx-queues 4
}
no-multi-seg
}
logging
{
default-log-level info
default-syslog-log-level notice
}
2.
cat /etc/vpp/bootstrap_clx4.vpp
lcp default netns dataplane
lcp lcp-sync on
lcp lcp-auto-subint on
create loopback interface instance 0
lcp create loop0 host-if loop0
set interface state loop0 up
set interface ip address loop0 10.1.1.1/32
lcp create TwentyFiveGigabitEthernetd8/0/1 host-if tap0
lcp create TwentyFiveGigabitEthernetda/0/1 host-if tap1
3.
service vpp restart
root@clx4:~# vppctl
_______ _ _ _____ ___
__/ __/ _ \ (_)__ | | / / _ \/ _ \
_/ _// // / / / _ \ | |/ / ___/ ___/
/_/ /____(_)_/\___/ |___/_/ /_/
vpp# show lcp
lcp default netns 'dataplane'
lcp lcp-auto-subint on
lcp lcp-sync on
itf-pair: [0] loop0 tap3 loop0 14 type tap netns dataplane
itf-pair: [1] TwentyFiveGigabitEthernetd8/0/1 tap1 tap0 15 type tap netns
dataplane
itf-pair: [2] TwentyFiveGigabitEthernetda/0/1 tap2 tap1 16 type tap netns
dataplane
vpp# show interface
Name Idx State MTU (L3/IP4/IP6/MPLS)
Counter Count
TwentyFiveGigabitEthernetd8/0/1 1 down 2018/0/0/0
TwentyFiveGigabitEthernetda/0/1 2 down 2018/0/0/0
local0 0 down 0/0/0/0
loop0 3 up 9000/0/0/0 tx packets
36
tx bytes
2656
drops
18
ip6
17
tap1 5 up 2018/0/0/0
tap2 6 up 1634103909/0/0/0
tap3 4 up 9000/0/0/0 rx packets
17
rx bytes
1286
ip6
17
vpp# show interface addr
TwentyFiveGigabitEthernetd8/0/1 (dn):
TwentyFiveGigabitEthernetda/0/1 (dn):
local0 (dn):
loop0 (up):
L3 10.1.1.1/32
tap1 (up):
tap2 (up):
tap3 (up):
4. at linux host
root@clx4:~# ip netns exec dataplane ip addr show
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group
default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
14: loop0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 9000 qdisc mq state UNKNOWN
group default qlen 1000
link/ether de:ad:00:00:00:00 brd ff:ff:ff:ff:ff:ff
inet 10.1.1.1/32 scope global loop0
valid_lft forever preferred_lft forever
inet6 fe80::dcad:ff:fe00:0/64 scope link
valid_lft forever preferred_lft forever
15: tap0: <BROADCAST,MULTICAST> mtu 2018 qdisc mq state DOWN group default qlen
1000
link/ether 3c:fd:fe:cf:33:55 brd ff:ff:ff:ff:ff:ff
16: tap1: <BROADCAST,MULTICAST> mtu 2018 qdisc mq state DOWN group default qlen
1000
link/ether 3c:fd:fe:c0:e1:d9 brd ff:ff:ff:ff:ff:ff
root@clx4:~# ip netns exec dataplane ip link set tap0 up mtu 1500
root@clx4:~# ip netns exec dataplane ip addr add 192.168.2.1/24 dev tap0
root@clx4:~# ip netns exec dataplane ip link set tap1 up mtu 1500
root@clx4:~# ip netns exec dataplane ip addr add 192.168.1.1/24 dev tap1
root@clx4:~# ip netns exec dataplane ip addr show
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group
default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
14: loop0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 9000 qdisc mq state UNKNOWN
group default qlen 1000
link/ether de:ad:00:00:00:00 brd ff:ff:ff:ff:ff:ff
inet 10.1.1.1/32 scope global loop0
valid_lft forever preferred_lft forever
inet6 fe80::dcad:ff:fe00:0/64 scope link
valid_lft forever preferred_lft forever
15: tap0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UNKNOWN
group default qlen 1000
link/ether 3c:fd:fe:cf:33:55 brd ff:ff:ff:ff:ff:ff
inet 192.168.2.1/24 scope global tap0
valid_lft forever preferred_lft forever
inet6 fe80::3efd:feff:fecf:3355/64 scope link
valid_lft forever preferred_lft forever
16: tap1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UNKNOWN
group default qlen 1000
link/ether 3c:fd:fe:c0:e1:d9 brd ff:ff:ff:ff:ff:ff
inet 192.168.1.1/24 scope global tap1
valid_lft forever preferred_lft forever
inet6 fe80::3efd:feff:fec0:e1d9/64 scope link
valid_lft forever preferred_lft forever
5. it can be seen that tap0 and tap1 pair interfaces in vpp
TwentyFiveGigabitEthernetd8/0/1 and TwentyFiveGigabitEthernetda/0/1 always
in down state, do not have ip addr assigned, also mtu do not changed.
vpp# show interface addr
TwentyFiveGigabitEthernetd8/0/1 (dn):
TwentyFiveGigabitEthernetda/0/1 (dn):
local0 (dn):
loop0 (up):
L3 10.1.1.1/32
tap1 (up):
tap2 (up):
tap3 (up):
vpp# show interface
Name Idx State MTU (L3/IP4/IP6/MPLS)
Counter Count
TwentyFiveGigabitEthernetd8/0/1 1 down 2018/0/0/0 tx-error
11
TwentyFiveGigabitEthernetda/0/1 2 down 2018/0/0/0 tx-error
27
local0 0 down 0/0/0/0
loop0 3 up 9000/0/0/0 tx packets
36
tx bytes
2656
drops
18
ip6
17
tap1 5 up 2018/0/0/0 rx packets
11
rx bytes
866
drops
11
ip6
11
tap2 6 up 1634103909/0/0/0 rx packets
27
rx bytes
1538
drops
27
ip6
11
tap3 4 up 9000/0/0/0 rx packets
17
rx bytes
1286
ip6
17
Best Regards
Yulong Pei
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#21702): https://lists.fd.io/g/vpp-dev/message/21702
Mute This Topic: https://lists.fd.io/mt/92523475/21656
Group Owner: [email protected]
Unsubscribe: https://lists.fd.io/g/vpp-dev/leave/1480452/21656/631435203/xyzzy
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-