Re: [vpp-dev] problem in SRV6
Hi Pablo, According to the following configs, since the SRv6 SID is not an interface address, VPP1: sr policy add bsid 1::1:999 next 2::2 next 3::3 , how to find VPP2 2::2? The packets could not find the next-hop and out-if. trace in VPP1: 00:20:47:954483: af-packet-input af_packet: hw_if_index 2 next-index 4 tpacket2_hdr: status 0x2001 len 98 snaplen 98 mac 66 net 80 sec 0x5a59a8b5 nsec 0x287052ff vlan 0 00:20:47:954525: ethernet-input IP6: 00:22:12:66:00:33 -> 00:0c:29:4d:af:b5 00:20:47:954649: ip6-input ICMP6: 2001::5 -> 2003::5 tos 0x00, flow label 0x0, hop limit 64, payload length 44 ICMP echo_request checksum 0xa6e8 00:20:47:954664: ip6-lookup fib 0 dpo-idx 20 flow hash: 0x ICMP6: 2001::5 -> 2003::5 tos 0x00, flow label 0x0, hop limit 64, payload length 44 ICMP echo_request checksum 0xa6e8 00:20:47:954687: ip6-load-balance fib 0 dpo-idx 20 flow hash: 0x ICMP6: 2001::5 -> 2003::5 tos 0x00, flow label 0x0, hop limit 64, payload length 44 ICMP echo_request checksum 0xa6e8 00:20:47:954695: sr-pl-rewrite-encaps SR-policy-rewrite: src 1::1 dst 2::2 00:20:47:954709: ip6-lookup fib 0 dpo-idx 1 flow hash: 0x IPV6_ROUTE: 1::1 -> 2::2 tos 0x00, flow label 0x0, hop limit 64, payload length 124 00:20:47:954714: ip6-drop IPV6_ROUTE: 1::1 -> 2::2 tos 0x00, flow label 0x0, hop limit 64, payload length 124 00:20:47:954729: error-drop ethernet-input: no error Thanks, Xyxue From: Pablo Camarillo (pcamaril) Date: 2018-01-12 18:53 To: 薛欣颖; vpp-dev Subject: Re: [vpp-dev] problem in SRV6 Hi Xyxue, The SRv6 SID is not an interface address. Hence creating the loopback interfaces and adding the SID address on the loopback is not necessary. Find below some corrected configs. (you were also missing the config on VPP3). Thanks. Cheers, Pablo. From: 薛欣颖Date: Friday, 12 January 2018 at 09:19 To: "Pablo Camarillo (pcamaril)" , vpp-dev Subject: Re: Re: [vpp-dev] problem in SRV6 Hi Pablo, My configuration and the trace info is shown below: VPP1: create host-interface name eth0 mac 00:0c:29:4d:af:8d create host-interface name eth4 mac 00:0c:29:4d:af:b5 set interface state host-eth0 up set interface state host-eth4 up enable ip6 interface host-eth0 set interface ip address host-eth0 a::1/64 enable ip6 interface host-eth4 set interface ip address host-eth4 2001::1/64 create loopback interface instance 0 set interface state loop0 up set interface ip address loop0 1::1/128 ip route add 2::2/128 via ip6-address a::2 host-eth0 ip route add 3::3/128 via ip6-address a::2 host-eth0 ip route add b::1/64 via ip6-address a::2 host-eth0 set sr encaps source addr 1::1 sr policy add bsid 1::1:999 next 2::2 next 3::3 sr steer l3 2003::1/64 via sr policy bsid 1::1:999 trace: 02:01:10:720008: af-packet-input af_packet: hw_if_index 3 next-index 4 tpacket2_hdr: status 0x2001 len 98 snaplen 98 mac 66 net 80 sec 0x5a571037 nsec 0x28091fb7 vlan 0 02:01:10:720040: ethernet-input IP6: 00:22:12:66:00:33 -> 00:0c:29:4d:af:b5 02:01:10:720068: ip6-input ICMP6: 2001::5 -> 2003::5 tos 0x00, flow label 0x0, hop limit 64, payload length 44 ICMP echo_request checksum 0xa6e8 02:01:10:720075: ip6-lookup fib 0 dpo-idx 35 flow hash: 0x ICMP6: 2001::5 -> 2003::5 tos 0x00, flow label 0x0, hop limit 64, payload length 44 ICMP echo_request checksum 0xa6e8 02:01:10:720085: ip6-load-balance fib 0 dpo-idx 35 flow hash: 0x ICMP6: 2001::5 -> 2003::5 tos 0x00, flow label 0x0, hop limit 64, payload length 44 ICMP echo_request checksum 0xa6e8 02:01:10:720089: sr-pl-rewrite-encaps SR-policy-rewrite: src 1::1 dst 2::2 02:01:10:720096: ip6-lookup fib 0 dpo-idx 9 flow hash: 0x IPV6_ROUTE: 1::1 -> 2::2 tos 0x00, flow label 0x0, hop limit 64, payload length 140 02:01:10:720097: ip6-rewrite tx_sw_if_index 1 adj-idx 9 : ipv6 via a::2 host-eth0: 000c29198e58000c294daf8d86dd flow hash: 0x : 000c29198e58000c294daf8d86dd608c2b3f0001 0020: 0001000200022906040202002003 0040: 0005000300030002 0060: 0002602c3a3f2001 02:01:10:720103: host-eth0-output host-eth0 IP6: 00:0c:29:4d:af:8d -> 00:0c:29:19:8e:58 IPV6_ROUTE: 1::1 -> 2::2 tos 0x00, flow label 0x0, hop limit 63, payload length 140 VPP2: create host-interface name eth0 mac 00:0c:29:19:8e:58 create host-interface name eth2 mac 00:0c:29:19:8e:6c set interface state host-eth0 up set interface state host-eth2 up enable ip6 interface host-eth0 enable ip6 interface host-eth2 set interface ip address host-eth0 a::2/64 set interface ip address host-eth2 b::1/64 create loopback interface instance 0 set interface state loop0 up set interface ip
[vpp-dev] Proposal to remove ssvm_eth
Hi everyone, I’m in the process of cleaning up the ssvm code and realized some of the data structures have fields that are only used within the ssvm_eth code. Since we now have memif, and nobody is really maintaining ssvm_eth, I’d like to remove the code. Therefore, does anybody have something against me doing that? Thanks, Florin ___ vpp-dev mailing list vpp-dev@lists.fd.io https://lists.fd.io/mailman/listinfo/vpp-dev
[vpp-dev] Difference between v3po and vdb-odl app
Hi, I am just querying to find out how many Apps are available at the moment for ODL to manage your VPP switch. I have seen the VPP virtual bridge domain app. Is there any other apps available? Also I was reading on V3po. It seems its just a plugin. But all the functionalities in V3po plugin don't necessarily reflect in VPP VBD app in ODL. Is there anything additional that needs to be done to make sure all those yang models are reflected in the VBD app? BR Kawshik This electronic message and any files transmitted with it contains information from iDirect, which may be privileged, proprietary and/or confidential. It is intended solely for the use of the individual or entity to whom they are addressed. If you are not the original recipient or the person responsible for delivering the email to the intended recipient, be advised that you have received this email in error, and that any use, dissemination, forwarding, printing, or copying of this email is strictly prohibited. If you received this email in error, please delete it and immediately notify the sender. ___ vpp-dev mailing list vpp-dev@lists.fd.io https://lists.fd.io/mailman/listinfo/vpp-dev
Re: [vpp-dev] VPP support for 25GbE DPDK ports?
VPP 17.10 gives the following error messages when using XXV710-DA2 cards: Jan 11 15:20:08 tqt100 vnet[30861]: dpdk_update_link_state:1337: unknown link speed 25000 Jan 11 15:20:14 tqt100 vnet[30861]: message repeated 7 times: [ dpdk_update_link_state:1337: unknown link speed 25000] Jan 11 16:15:10 tqt100 vnet[10927]: dpdk_update_link_state:1337: unknown link speed 25000 Jan 11 16:15:10 tqt100 vnet[10927]: message repeated 7 times: [ dpdk_update_link_state:1337: unknown link speed 25000] - Lee Roberts -Original Message- From: Damjan Marion [mailto:dmarion.li...@gmail.com] Sent: Sunday, December 17, 2017 10:44 AM To: Roberts, Lee A.Cc: vpp-dev@lists.fd.io Subject: Re: [vpp-dev] VPP support for 25GbE DPDK ports? Please use 17.10 or master.I use XXV710 (2x25G) for perf testing and they work pretty well on the latest master. > On 16 Dec 2017, at 00:22, Roberts, Lee A. wrote: > > I'm new to using VPP and encountered problems getting VPP to use DPDK on my > Intel XXV710-DA2 cards. Using a base of v17.07, I get messages about > "unknown link speed 25000": > > Dec 15 10:57:58 tqt100 vpp[5244]: /usr/bin/vpp[5244]: > dpdk_update_link_state:1321: unknown link speed 25000 > Dec 15 10:57:58 tqt100 /usr/bin/vpp[5244]: dpdk_update_link_state:1321: > unknown link speed 25000 > > I've made changes to a number of files to enable the 25GbE ports, plus a few > other > speeds that may be of interest. Might this be of general interest? The > following changes > are relative to the current "master". > > - Lee Roberts > > > diff --git a/src/plugins/dpdk/device/dpdk.h b/src/plugins/dpdk/device/dpdk.h > index 770da6e..745f3b8 100644 > --- a/src/plugins/dpdk/device/dpdk.h > +++ b/src/plugins/dpdk/device/dpdk.h > @@ -94,10 +94,14 @@ typedef enum > typedef enum > { > VNET_DPDK_PORT_TYPE_ETH_1G, > + VNET_DPDK_PORT_TYPE_ETH_2_5G, > + VNET_DPDK_PORT_TYPE_ETH_5G, > VNET_DPDK_PORT_TYPE_ETH_10G, > + VNET_DPDK_PORT_TYPE_ETH_20G, > VNET_DPDK_PORT_TYPE_ETH_25G, > VNET_DPDK_PORT_TYPE_ETH_40G, > VNET_DPDK_PORT_TYPE_ETH_50G, > + VNET_DPDK_PORT_TYPE_ETH_56G, > VNET_DPDK_PORT_TYPE_ETH_100G, > VNET_DPDK_PORT_TYPE_ETH_BOND, > VNET_DPDK_PORT_TYPE_ETH_SWITCH, > diff --git a/src/plugins/dpdk/device/format.c > b/src/plugins/dpdk/device/format.c > index 8ea65c1..ddd6762 100644 > --- a/src/plugins/dpdk/device/format.c > +++ b/src/plugins/dpdk/device/format.c > @@ -180,10 +180,22 @@ format_dpdk_device_name (u8 * s, va_list * args) > device_name = "GigabitEthernet"; > break; > > +case VNET_DPDK_PORT_TYPE_ETH_2_5G: > + device_name = "Two_FiveGigabitEthernet"; > + break; > + > +case VNET_DPDK_PORT_TYPE_ETH_5G: > + device_name = "FiveGigabitEthernet"; > + break; > + > case VNET_DPDK_PORT_TYPE_ETH_10G: > device_name = "TenGigabitEthernet"; > break; > > +case VNET_DPDK_PORT_TYPE_ETH_20G: > + device_name = "TwentyGigabitEthernet"; > + break; > + > case VNET_DPDK_PORT_TYPE_ETH_25G: > device_name = "TwentyFiveGigabitEthernet"; > break; > @@ -196,6 +208,10 @@ format_dpdk_device_name (u8 * s, va_list * args) > device_name = "FiftyGigabitEthernet"; > break; > > +case VNET_DPDK_PORT_TYPE_ETH_56G: > + device_name = "FiftySixGigabitEthernet"; > + break; > + > case VNET_DPDK_PORT_TYPE_ETH_100G: > device_name = "HundredGigabitEthernet"; > break; > diff --git a/src/plugins/dpdk/device/init.c b/src/plugins/dpdk/device/init.c > index 6041a3c..5f55c16 100755 > --- a/src/plugins/dpdk/device/init.c > +++ b/src/plugins/dpdk/device/init.c > @@ -62,14 +62,22 @@ port_type_from_speed_capa (struct rte_eth_dev_info > *dev_info) > > if (dev_info->speed_capa & ETH_LINK_SPEED_100G) > return VNET_DPDK_PORT_TYPE_ETH_100G; > + else if (dev_info->speed_capa & ETH_LINK_SPEED_56G) > +return VNET_DPDK_PORT_TYPE_ETH_56G; > else if (dev_info->speed_capa & ETH_LINK_SPEED_50G) > return VNET_DPDK_PORT_TYPE_ETH_50G; > else if (dev_info->speed_capa & ETH_LINK_SPEED_40G) > return VNET_DPDK_PORT_TYPE_ETH_40G; > else if (dev_info->speed_capa & ETH_LINK_SPEED_25G) > return VNET_DPDK_PORT_TYPE_ETH_25G; > + else if (dev_info->speed_capa & ETH_LINK_SPEED_20G) > +return VNET_DPDK_PORT_TYPE_ETH_20G; > else if (dev_info->speed_capa & ETH_LINK_SPEED_10G) > return VNET_DPDK_PORT_TYPE_ETH_10G; > + else if (dev_info->speed_capa & ETH_LINK_SPEED_5G) > +return VNET_DPDK_PORT_TYPE_ETH_5G; > + else if (dev_info->speed_capa & ETH_LINK_SPEED_2_5G) > +return VNET_DPDK_PORT_TYPE_ETH_2_5G; > else if (dev_info->speed_capa & ETH_LINK_SPEED_1G) > return VNET_DPDK_PORT_TYPE_ETH_1G; > > @@ -1364,12 +1372,33 @@ dpdk_update_link_state (dpdk_device_t * xd, f64 now) > case ETH_SPEED_NUM_1G: > hw_flags |= VNET_HW_INTERFACE_FLAG_SPEED_1G; >
[vpp-dev] VPP native vhost-user issue on stable/1710
Hi all, I am trying to use VPP native vhost-user to communicate between Host and Containers. But I met an issue, Could you help to give some advice on it? Thanks a lot. My setup is as bellows: Inside Host: vppctl create vhost socket /tmp/sock0 server vppctl set int state VirtualEthernet0/0/0 up Then run docker: docker run -itd --privileged \ -v /tmp/sock0:/tmp/sock0 \ --name=vpp0 hongjunni/vpp_1710 /bin/bash docker attach vpp0 Inside docker vpp0: 1). Run VPP: sudo vpp unix {log /tmp/vpp.log cli-listen /run/vpp/cli.sock} api-trace { on } \ dpdk {coremask 0x2 no-multi-seg } cpu {skip-cores 1} 2). Creat vhost-user client: vppctl create vhost-user socket /tmp/sock0 vppctl set int state VirtualEthernet0/0/0 up Here is the issue: Inside container vpp0: VirtualEthernet0/0/0's admin and link status are both up. Inside Host: VirtualEthernet0/0/0's admin status is up, but its link status is down. Is there any configuration wrong in my setup? How can I fix this issue? Thanks a lot, Hongjun ___ vpp-dev mailing list vpp-dev@lists.fd.io https://lists.fd.io/mailman/listinfo/vpp-dev
Re: [vpp-dev] problem in SRV6
Hi Xyxue, The SRv6 SID is not an interface address. Hence creating the loopback interfaces and adding the SID address on the loopback is not necessary. Find below some corrected configs. (you were also missing the config on VPP3). Thanks. Cheers, Pablo. From: 薛欣颖Date: Friday, 12 January 2018 at 09:19 To: "Pablo Camarillo (pcamaril)" , vpp-dev Subject: Re: Re: [vpp-dev] problem in SRV6 Hi Pablo, My configuration and the trace info is shown below: VPP1: create host-interface name eth0 mac 00:0c:29:4d:af:8d create host-interface name eth4 mac 00:0c:29:4d:af:b5 set interface state host-eth0 up set interface state host-eth4 up enable ip6 interface host-eth0 set interface ip address host-eth0 a::1/64 enable ip6 interface host-eth4 set interface ip address host-eth4 2001::1/64 create loopback interface instance 0 set interface state loop0 up set interface ip address loop0 1::1/128 ip route add 2::2/128 via ip6-address a::2 host-eth0 ip route add 3::3/128 via ip6-address a::2 host-eth0 ip route add b::1/64 via ip6-address a::2 host-eth0 set sr encaps source addr 1::1 sr policy add bsid 1::1:999 next 2::2 next 3::3 sr steer l3 2003::1/64 via sr policy bsid 1::1:999 trace: 02:01:10:720008: af-packet-input af_packet: hw_if_index 3 next-index 4 tpacket2_hdr: status 0x2001 len 98 snaplen 98 mac 66 net 80 sec 0x5a571037 nsec 0x28091fb7 vlan 0 02:01:10:720040: ethernet-input IP6: 00:22:12:66:00:33 -> 00:0c:29:4d:af:b5 02:01:10:720068: ip6-input ICMP6: 2001::5 -> 2003::5 tos 0x00, flow label 0x0, hop limit 64, payload length 44 ICMP echo_request checksum 0xa6e8 02:01:10:720075: ip6-lookup fib 0 dpo-idx 35 flow hash: 0x ICMP6: 2001::5 -> 2003::5 tos 0x00, flow label 0x0, hop limit 64, payload length 44 ICMP echo_request checksum 0xa6e8 02:01:10:720085: ip6-load-balance fib 0 dpo-idx 35 flow hash: 0x ICMP6: 2001::5 -> 2003::5 tos 0x00, flow label 0x0, hop limit 64, payload length 44 ICMP echo_request checksum 0xa6e8 02:01:10:720089: sr-pl-rewrite-encaps SR-policy-rewrite: src 1::1 dst 2::2 02:01:10:720096: ip6-lookup fib 0 dpo-idx 9 flow hash: 0x IPV6_ROUTE: 1::1 -> 2::2 tos 0x00, flow label 0x0, hop limit 64, payload length 140 02:01:10:720097: ip6-rewrite tx_sw_if_index 1 adj-idx 9 : ipv6 via a::2 host-eth0: 000c29198e58000c294daf8d86dd flow hash: 0x : 000c29198e58000c294daf8d86dd608c2b3f0001 0020: 0001000200022906040202002003 0040: 0005000300030002 0060: 0002602c3a3f2001 02:01:10:720103: host-eth0-output host-eth0 IP6: 00:0c:29:4d:af:8d -> 00:0c:29:19:8e:58 IPV6_ROUTE: 1::1 -> 2::2 tos 0x00, flow label 0x0, hop limit 63, payload length 140 VPP2: create host-interface name eth0 mac 00:0c:29:19:8e:58 create host-interface name eth2 mac 00:0c:29:19:8e:6c set interface state host-eth0 up set interface state host-eth2 up enable ip6 interface host-eth0 enable ip6 interface host-eth2 set interface ip address host-eth0 a::2/64 set interface ip address host-eth2 b::1/64 create loopback interface instance 0 set interface state loop0 up set interface ip address loop0 2::2/128 ip route add 1::1/128 via ip6-address a::1 host-eth0 ip route add 3::3/128 via ip6-address b::2 host-eth2 sr localsid address 2::2 behavior end trace: 00:08:01:715943: af-packet-input af_packet: hw_if_index 1 next-index 4 tpacket2_hdr: status 0x2001 len 178 snaplen 178 mac 66 net 80 sec 0x5a571fb9 nsec 0x2c338c0a vlan 0 00:08:01:715969: ethernet-input IP6: 00:0c:29:4d:af:8d -> 00:0c:29:19:8e:58 00:08:01:716017: ip6-input IPV6_ROUTE: 1::1 -> 2::2 tos 0x00, flow label 0x0, hop limit 63, payload length 124 00:08:01:716022: ip6-lookup fib 0 dpo-idx 13 flow hash: 0x IPV6_ROUTE: 1::1 -> 2::2 tos 0x00, flow label 0x0, hop limit 63, payload length 124 00:08:01:716030: ip6-local IPV6_ROUTE: 1::1 -> 2::2 tos 0x00, flow label 0x0, hop limit 63, payload length 124 00:08:01:716037: ip6-punt IPV6_ROUTE: 1::1 -> 2::2 tos 0x00, flow label 0x0, hop limit 63, payload length 124 00:08:01:716044: error-punt ip6-input: unknown ip protocol VPP3: create host-interface name eth2 mac 00:0c:29:a6:67:7c create host-interface name eth5 mac 00:0c:29:a6:67:9a set interface state host-eth2 up set interface state host-eth5 up enable ip6 interface host-eth2 enable ip6 interface host-eth5 set interface ip address host-eth2 b::2/64 set interface ip address host-eth5 2003::1/64 create loopback interface instance 0 set interface state loop0 up set interface ip address loop0 3::3/128 ip route add 2::2/128 via ip6-address b::1 host-eth2 ip route add 1::1/128 via ip6-address b::1 host-eth2 ip route add a::1/64 via ip6-address b::1
Re: [vpp-dev] problem in SRV6
Hi Pablo, My configuration and the trace info is shown below: VPP1: create host-interface name eth0 mac 00:0c:29:4d:af:8d create host-interface name eth4 mac 00:0c:29:4d:af:b5 set interface state host-eth0 up set interface state host-eth4 up enable ip6 interface host-eth0 set interface ip address host-eth0 a::1/64 enable ip6 interface host-eth4 set interface ip address host-eth4 2001::1/64 create loopback interface instance 0 set interface state loop0 up set interface ip address loop0 1::1/128 ip route add 2::2/128 via ip6-address a::2 host-eth0 ip route add 3::3/128 via ip6-address a::2 host-eth0 ip route add b::1/64 via ip6-address a::2 host-eth0 set sr encaps source addr 1::1 sr policy add bsid 1::1:999 next 2::2 next 3::3 sr steer l3 2003::1/64 via sr policy bsid 1::1:999 trace: 02:01:10:720008: af-packet-input af_packet: hw_if_index 3 next-index 4 tpacket2_hdr: status 0x2001 len 98 snaplen 98 mac 66 net 80 sec 0x5a571037 nsec 0x28091fb7 vlan 0 02:01:10:720040: ethernet-input IP6: 00:22:12:66:00:33 -> 00:0c:29:4d:af:b5 02:01:10:720068: ip6-input ICMP6: 2001::5 -> 2003::5 tos 0x00, flow label 0x0, hop limit 64, payload length 44 ICMP echo_request checksum 0xa6e8 02:01:10:720075: ip6-lookup fib 0 dpo-idx 35 flow hash: 0x ICMP6: 2001::5 -> 2003::5 tos 0x00, flow label 0x0, hop limit 64, payload length 44 ICMP echo_request checksum 0xa6e8 02:01:10:720085: ip6-load-balance fib 0 dpo-idx 35 flow hash: 0x ICMP6: 2001::5 -> 2003::5 tos 0x00, flow label 0x0, hop limit 64, payload length 44 ICMP echo_request checksum 0xa6e8 02:01:10:720089: sr-pl-rewrite-encaps SR-policy-rewrite: src 1::1 dst 2::2 02:01:10:720096: ip6-lookup fib 0 dpo-idx 9 flow hash: 0x IPV6_ROUTE: 1::1 -> 2::2 tos 0x00, flow label 0x0, hop limit 64, payload length 140 02:01:10:720097: ip6-rewrite tx_sw_if_index 1 adj-idx 9 : ipv6 via a::2 host-eth0: 000c29198e58000c294daf8d86dd flow hash: 0x : 000c29198e58000c294daf8d86dd608c2b3f0001 0020: 0001000200022906040202002003 0040: 0005000300030002 0060: 0002602c3a3f2001 02:01:10:720103: host-eth0-output host-eth0 IP6: 00:0c:29:4d:af:8d -> 00:0c:29:19:8e:58 IPV6_ROUTE: 1::1 -> 2::2 tos 0x00, flow label 0x0, hop limit 63, payload length 140 VPP2: create host-interface name eth0 mac 00:0c:29:19:8e:58 create host-interface name eth2 mac 00:0c:29:19:8e:6c set interface state host-eth0 up set interface state host-eth2 up enable ip6 interface host-eth0 enable ip6 interface host-eth2 set interface ip address host-eth0 a::2/64 set interface ip address host-eth2 b::1/64 create loopback interface instance 0 set interface state loop0 up set interface ip address loop0 2::2/128 ip route add 1::1/128 via ip6-address a::1 host-eth0 ip route add 3::3/128 via ip6-address b::2 host-eth2 sr localsid address 2::2 behavior end trace: 00:08:01:715943: af-packet-input af_packet: hw_if_index 1 next-index 4 tpacket2_hdr: status 0x2001 len 178 snaplen 178 mac 66 net 80 sec 0x5a571fb9 nsec 0x2c338c0a vlan 0 00:08:01:715969: ethernet-input IP6: 00:0c:29:4d:af:8d -> 00:0c:29:19:8e:58 00:08:01:716017: ip6-input IPV6_ROUTE: 1::1 -> 2::2 tos 0x00, flow label 0x0, hop limit 63, payload length 124 00:08:01:716022: ip6-lookup fib 0 dpo-idx 13 flow hash: 0x IPV6_ROUTE: 1::1 -> 2::2 tos 0x00, flow label 0x0, hop limit 63, payload length 124 00:08:01:716030: ip6-local IPV6_ROUTE: 1::1 -> 2::2 tos 0x00, flow label 0x0, hop limit 63, payload length 124 00:08:01:716037: ip6-punt IPV6_ROUTE: 1::1 -> 2::2 tos 0x00, flow label 0x0, hop limit 63, payload length 124 00:08:01:716044: error-punt ip6-input: unknown ip protocol VPP3: create host-interface name eth2 mac 00:0c:29:a6:67:7c create host-interface name eth5 mac 00:0c:29:a6:67:9a set interface state host-eth2 up set interface state host-eth5 up enable ip6 interface host-eth2 enable ip6 interface host-eth5 set interface ip address host-eth2 b::2/64 set interface ip address host-eth5 2003::1/64 create loopback interface instance 0 set interface state loop0 up set interface ip address loop0 3::3/128 ip route add 2::2/128 via ip6-address b::1 host-eth2 ip route add 1::1/128 via ip6-address b::1 host-eth2 ip route add a::1/64 via ip6-address b::1 host-eth2 Thanks, Xyxue From: Pablo Camarillo (pcamaril) Date: 2018-01-12 15:56 To: 薛欣颖; vpp-dev@lists.fd.io Subject: Re: [vpp-dev] problem in SRV6 Hi Xyxue, What is your entire config at VPP2? Looks like a misconfiguration in VPP2. Thanks, Pablo. From:on behalf of 薛欣颖 Date: Friday, 12 January 2018 at 02:04 To: "vpp-dev@lists.fd.io"
Re: [vpp-dev] Building and running sample plugin
Hi, vpp-dev teams. I think this issue is a minor bug and still exists on v18.01-rc2. There are no declaration of "sample_main" among all code files . "sample_main" only has been declared as "extern" in sample.h. > > load_one_plugin:142: > > /vpp/build-root/install-vpp_debug-native/sample-plugin/lib64/vpp_plugins/sample_plugin.so: > > undefined symbol: sample_main > > > > load_one_plugin:143: Failed to load plugin 'sample_plugin.so' Below one line will solve it. diff --git a/src/examples/sample-plugin/sample/sample.c b/src/examples/sample-plugin/sample/sample.c index 703e604..cdd6d44 100644 --- a/src/examples/sample-plugin/sample/sample.c +++ b/src/examples/sample-plugin/sample/sample.c @@ -63,6 +63,7 @@ VLIB_PLUGIN_REGISTER () = { }; /* *INDENT-ON* */ +sample_main_t sample_main; /** * @brief Enable/disable the macswap plugin. * Thanks! --- Best Regards, Ryota Yushina, > -Original Message- > From: vpp-dev-boun...@lists.fd.io [mailto:vpp-dev-boun...@lists.fd.io] On > Behalf Of Kinsella, Ray > Sent: Thursday, December 07, 2017 11:03 PM > To: Pradeep Patel (pradpate); vpp-dev@lists.fd.io > Subject: Re: [vpp-dev] Building and running sample plugin > > > You can find previous guidance on how to build it here. > > https://docs.fd.io/vpp/17.10/sample_plugin_doc.html > > Ray K > > On 06/12/2017 19:44, Pradeep Patel (pradpate) wrote: > > > > I am trying to build and run sample plugin using make option. I see > > sample plugin so gets created but failed due to undefined symbol: > > sample_main. Any pointers with be helpful. > > > > Regards, > > Pradeep > > > > >make build SAMPLE_PLUGIN=yes > > > > > make run SAMPLE_PLUGIN=yes > > > > vagrant@localhost:/vpp$ make run SAMPLE_PLUGIN=yes > > > > WARNING: STARTUP_CONF not defined or file doesn't exist. > > > > Running with minimal startup config: unix { interactive cli-listen > > /run/vpp/cli.sock gid 1000 } > > > > vlib_plugin_early_init:356: plugin path > > /vpp/build-root/install-vpp_debug-native/sample-plugin/lib64/vpp_plugi > > ns:/vpp/build-root/install-vpp_debug-native/vpp/lib64/vpp_plugins > > > > load_one_plugin:184: Loaded plugin: acl_plugin.so (Access Control > > Lists) > > > > load_one_plugin:184: Loaded plugin: dpdk_plugin.so (Data Plane > > Development Kit (DPDK)) > > > > load_one_plugin:184: Loaded plugin: flowprobe_plugin.so (Flow per > > Packet) > > > > load_one_plugin:184: Loaded plugin: gtpu_plugin.so (GTPv1-U) > > > > load_one_plugin:184: Loaded plugin: ila_plugin.so (Identifier-locator > > addressing for IPv6) > > > > load_one_plugin:184: Loaded plugin: ioam_plugin.so (Inbound OAM) > > > > load_one_plugin:114: Plugin disabled (default): ixge_plugin.so > > > > load_one_plugin:184: Loaded plugin: lb_plugin.so (Load Balancer) > > > > load_one_plugin:184: Loaded plugin: libsixrd_plugin.so (IPv6 Rapid > > Deployment on IPv4 Infrastructure (RFC5969)) > > > > load_one_plugin:184: Loaded plugin: memif_plugin.so (Packet Memory > > Interface (experimetal)) > > > > load_one_plugin:184: Loaded plugin: nat_plugin.so (Network Address > > Translation) > > > > load_one_plugin:184: Loaded plugin: pppoe_plugin.so (PPPoE) > > > > load_one_plugin:142: > > /vpp/build-root/install-vpp_debug-native/sample-plugin/lib64/vpp_plugins/sample_plugin.so: > > undefined symbol: sample_main > > > > load_one_plugin:143: Failed to load plugin 'sample_plugin.so' > > > > Aborted > > > > Makefile:434: recipe for target 'run' failed > > > > make: *** [run] Error 134 > > > > vagrant@localhost:/vpp$ vim ^C > > > > > > > > ___ > > vpp-dev mailing list > > vpp-dev@lists.fd.io > > https://lists.fd.io/mailman/listinfo/vpp-dev > > ___ > vpp-dev mailing list > vpp-dev@lists.fd.io > https://lists.fd.io/mailman/listinfo/vpp-dev smime.p7s Description: S/MIME cryptographic signature ___ vpp-dev mailing list vpp-dev@lists.fd.io https://lists.fd.io/mailman/listinfo/vpp-dev