Odp: Re: [vpp-dev] vpp 18.07.1 hangs on intel x520-sr2

2018-10-22 Thread Glaza
# sysctl -w vm.nr_hugepages=4096  # /usr/local/bin/testpmd -v  EAL: Detected 40 
lcore(s)  EAL: RTE Version: 'DPDK 17.05.2'  EAL: No free hugepages 
reported in hugepages-1048576kB  EAL: Probing VFIO support...  EAL: Cannot get 
a virtual area: Cannot allocate memory  EAL: Failed to remap 2 MB pages  EAL: 
FATAL: Cannot init memory   EAL: Cannot init memory   PANIC in main():  Cannot 
init EAL  Przerwane (core dumped)   # /opt/vpp/external/x86_64/bin/t -v  EAL: 
Detected 40 lcore(s)  EAL: Detected 2 NUMA nodes  EAL: RTE Version: 'DPDK 
18.08.0'  EAL: Multi-process socket /var/run/dpdk/rte/mp_socket  EAL: No 
free hugepages reported in hugepages-1048576kB  EAL: Probing VFIO support...  
EAL: PCI device :06:00.0 on NUMA socket 0  EAL:   probe driver: 8086:1533 
net_e1000_igb  EAL: PCI device :07:00.0 on NUMA socket 0  EAL:   probe 
driver: 8086:1533 net_e1000_igb  EAL: PCI device :81:00.0 on NUMA socket 1  
EAL:   probe driver: 8086:10fb net_ixgbe  EAL: PCI device :81:00.1 on NUMA 
socket 1  EAL:   probe driver: 8086:10fb net_ixgbe  testpmd: create a new mbuf 
pool <mbuf_pool_socket_0>: n=459456, size=2176, socket=0  testpmd: 
preferred mempool ops selected: ring_mp_mc  testpmd: create a new mbuf pool 
<mbuf_pool_socket_1>: n=459456, size=2176, socket=1  testpmd: preferred 
mempool ops selected: ring_mp_mc  Configuring Port 0 (socket 1)  Port 0: 
90:E2:BA:9D:94:0C  Configuring Port 1 (socket 1)  Port 1: 90:E2:BA:9D:94:0D  
Checking link statuses...  Done  No commandline core given, start packet 
forwarding  io packet forwarding - ports=2 - cores=1 - streams=2 - NUMA support 
enabled, MP over anonymous pages disabled  Logical Core 1 (socket 0) forwards 
packets on 2 streams:    RX P=0/Q=0 (socket 1) -> TX P=1/Q=0 (socket 1) 
peer=02:00:00:00:00:01    RX P=1/Q=0 (socket 1) -> TX P=0/Q=0 (socket 1) 
peer=02:00:00:00:00:00     io packet forwarding packets/burst=32    nb 
forwarding cores=1 - nb forwarding ports=2    port 0: RX queue number: 1 Tx 
queue number: 1      Rx offloads=0x1000 Tx offloads=0x0      RX queue: 0    
RX desc=256 - RX free threshold=32    RX threshold registers: pthresh=8 
hthresh=8  wthresh=0    RX Offloads=0x0      TX queue: 0    TX desc=256 
- TX free threshold=32    TX threshold registers: pthresh=32 hthresh=0  
wthresh=0    TX offloads=0x0 - TX RS bit threshold=32    port 1: RX queue 
number: 1 Tx queue number: 1      Rx offloads=0x1000 Tx offloads=0x0      RX 
queue: 0    RX desc=256 - RX free threshold=32    RX threshold 
registers: pthresh=8 hthresh=8  wthresh=0    RX Offloads=0x0      TX queue: 
0    TX desc=256 - TX free threshold=32    TX threshold registers: 
pthresh=32 hthresh=0  wthresh=0    TX offloads=0x0 - TX RS bit threshold=32 
 Press enter to exit   Telling cores to stop...  Waiting for lcores to 
finish...     -- Forward statistics for port 0  
--    RX-packets: 0  RX-dropped: 0 
RX-total: 0    TX-packets: 0  TX-dropped: 0 TX-total: 0 
   --     -- Forward statistics 
for port 1  --    RX-packets: 0  RX-dropped: 0  
   RX-total: 0    TX-packets: 0  TX-dropped: 0 
TX-total: 0    --     +++ Accumulated 
forward statistics for all ports+++    RX-packets: 0  
RX-dropped: 0 RX-total: 0    TX-packets: 0  TX-dropped: 
0 TX-total: 0    ++   Done.   Shutting 
down port 0...  Stopping ports...  Done  Closing ports...  Done   Shutting down 
port 1...  Stopping ports...  Done  Closing ports...  Done   Bye...   On 
20.10.2018 20:56 Damjan Marion <dmar...@me.com> wrote:   Just try to run 
testpmd on that port, your traceback shows that  your problem happens inside 
DPDK code...   --   Damjan   On 19 Oct 2018, at 22:28, Tomasz Płaza <   
gla...@wp.pl > wrote:   No I have not. Are there any special
  steps I should follow?  On 2018-10-19 22:11 Damjan Marion   
<dmar...@me.com>  wrote:   Have you tried with dpdk testpmd?—    
Damjan   On 19 Oct 2018, at 20:51, Tomasz Płaza <   gla...@wp.pl >
wrote: Tested on two indetical computers
and under kernel management nic works just fine.  On 2018-10-19 
09:56 Damjan Marion wrote:   Looks like DPDK issue, might also be hardware 
problem.  Have you tried different computer/nic?  --    Damjan   On 17 Oct 
2018, at 11:14, Glaza <   gla...@wp.pl >
  wrote:   Investigating
it further I have build 18.10-rc1 and than
master. In both cases I got a crash dump in
rte_eal_init. Bellow is BT from master:   #0 
0x7ff377

Re: [vpp-dev] vpp 18.07.1 hangs on intel x520-sr2

2018-10-17 Thread Glaza
Investigating it further I have build 18.10-rc1 and than master. In both cases 
I got a crash dump in rte_eal_init. Bellow is BT from master:  #0  
0x7ff377882277 in raise () from /lib64/libc.so.6  #1  0x7ff377883968 in 
abort () from /lib64/libc.so.6  #2  0x0040817c in os_exit (code=1) at 
/var/vpp/vpp/src/vpp/vnet/main  #3  0x7ff379021c9f in unix_signal_handler 
(signum=6, si=0x7ff3369feeb0, uc=0x7ff3369fed80) at 
/var/vpp/vpp/src/vlib/unix/mai  #4  <signal handler called>  #5  
0x7ff377882277 in raise () from /lib64/libc.so.6  #6  0x7ff377883968 in 
abort () from /lib64/libc.so.6  #7  0x7ff334aba345 in __rte_panic () from 
/usr/lib/vpp_plugins/dpdk_plug  #8  0x7ff334af3f90 in rte_eal_init () from 
/usr/lib/vpp_plugins/dpdk_plug  #9  0x7ff335142df7 in dpdk_config 
(vm=0x7ff37924d240 <vlib_global_main>, input=0x7ff33553e0a8 
<_vlib_config_function_dpdk_co at /var/vpp/vpp/src/plugins/dpdk/  #10 
0x7ff378fa854f in vlib_call_all_config_functions (vm=0x7ff37924d240 
<vlib_global_main>, input=0x7ff3369fffb0, is_early=0) at 
/var/vpp/vpp/src/vlib/init.c:1  #11 0x7ff378fcc004 in vlib_main 
(vm=0x7ff37924d240 <vlib_global_main>, input=0x7ff3369fffb0) at 
/var/vpp/vpp/src/vlib/main.c:1  #12 0x7ff3790234b5 in thread0 
(arg=140683686236736) at /var/vpp/vpp/src/vlib/unix/mai  #13 0x7ff37864d88c 
in clib_calljmp () from /lib64/libvppinfra.so.19.01  #14 0x7ffdbc134110 in 
?? ()  #15 0x7ff379023966 in vlib_unix_main (argc=29, argv=0x1315830) at 
/var/vpp/vpp/src/vlib/unix/mai  #16 0x00407b45 in main (argc=29, 
argv=0x1315830) at /var/vpp/vpp/src/vpp/vnet/main   # dpdk-devbind -s   Network 
devices using DPDK-compatible driver  ==  
:07:00.0 'I210 Gigabit Network Connection 1533' drv=vfio-pci 
unused=igb_uio,uio_pci_generic  :81:00.0 '82599ES 10-Gigabit SFI/SFP+ 
Network Connection 10fb' drv=vfio-pci unused=igb_uio,uio_pci_generic  
:81:00.1 '82599ES 10-Gigabit SFI/SFP+ Network Connection 10fb' 
drv=vfio-pci unused=igb_uio,uio_pci_generic   startup.conf is:   unix {    
nodaemon    log /var/log/vpp/vpp.log    full-coredump    cli-listen 
/run/vpp/cli.sock    gid vpp  }   api-trace {    on  }   api-segment {    gid 
vpp  }   cpu {   }   dpdk {      uio-driver vfio-pci  }  On 15 10 2018 
12:26 Glaza wrote:  Hi All,   On centos 7 after install vpp-18.07.1-release 
hangs after start when x520-sr2 NIC is in use.   # dpdk-devbind -s | head   
Network devices using DPDK-compatible driver  ==  
:81:00.0 '82599ES 10-Gigabit SFI/SFP+ Network Connection 10fb' 
drv=uio_pci_generic unused=igb_uio  :81:00.1 '82599ES 10-Gigabit 
SFI/SFP+ Network Connection 10fb' drv=uio_pci_generic unused=igb_uio   # 
/usr/bin/vpp -c /etc/vpp/startup.conf  vlib_plugin_early_init:361: plugin path 
/usr/lib/vpp_plugins:/usr/lib6  load_one_plugin:189: Loaded plugin: 
abf_plugin.so (ACL based Forwarding)  load_one_plugin:189: Loaded plugin: 
acl_plugin.so (Access Control Lists)  load_one_plugin:189: Loaded plugin: 
avf_plugin.so (Intel Adaptive Virtual Function (AVF) Device Plugin)  
load_one_plugin:191: Loaded plugin: cdp_plugin.so  load_one_plugin:189: Loaded 
plugin: dpdk_plugin.so (Data Plane Development Kit (DPDK))  
load_one_plugin:189: Loaded plugin: flowprobe_plugin.so (Flow per Packet)  
load_one_plugin:189: Loaded plugin: gbp_plugin.so (Group Based Policy)  
load_one_plugin:189: Loaded plugin: gtpu_plugin.so (GTPv1-U)  
load_one_plugin:189: Loaded plugin: igmp_plugin.so (IGMP messaging)  
load_one_plugin:189: Loaded plugin: ila_plugin.so (Identifier-locator 
addressing for IPv6)  load_one_plugin:189: Loaded plugin: ioam_plugin.so 
(Inbound OAM)  load_one_plugin:117: Plugin disabled (default): ixge_plugin.so  
load_one_plugin:189: Loaded plugin: l2e_plugin.so (L2 Emulation)  
load_one_plugin:189: Loaded plugin: lacp_plugin.so (Link Aggregation Control 
Protocol)  load_one_plugin:189: Loaded plugin: lb_plugin.so (Load Balancer)  
load_one_plugin:189: Loaded plugin: mactime_plugin.so (Time-based MAC 
source-address filter)  load_one_plugin:189: Loaded plugin: map_plugin.so 
(Mapping of address and port (MAP))  load_one_plugin:189: Loaded plugin: 
memif_plugin.so (Packet Memory Interface (experimetal))  load_one_plugin:189: 
Loaded plugin: nat_plugin.so (Network Address Translation)  
load_one_plugin:189: Loaded plugin: pppoe_plugin.so (PPPoE)  
load_one_plugin:189: Loaded plugin: srv6ad_plugin.so (Dynamic SRv6 proxy)  
load_one_plugin:189: Loaded plugin: srv6am_plugin.so (Masquerading SRv6 proxy)  
load_one_plugin:189: Loaded plugin: srv6as_plugin.so (Static SRv6 proxy)  
load_one_plugin:189: Loaded plugin: stn_plugin.so (VPP Steals the NIC for 
Container integration)  load_one_plugin:189: Loaded plugin: 
tlsmbedtls_plugin.so (mbedtls based TLS Engine)  load_one_plugin:189: Loaded 
plugin: tlsopenssl_plugin.so (openssl b

[vpp-dev] vpp 18.07.1 hangs on intel x520-sr2

2018-10-15 Thread Glaza
Hi All,   On centos 7 after install vpp-18.07.1-release hangs after start when 
x520-sr2 NIC is in use.   # dpdk-devbind -s | head   Network devices using 
DPDK-compatible driver  ==  :81:00.0 
'82599ES 10-Gigabit SFI/SFP+ Network Connection 10fb' 
drv=uio_pci_generic unused=igb_uio  :81:00.1 '82599ES 10-Gigabit 
SFI/SFP+ Network Connection 10fb' drv=uio_pci_generic unused=igb_uio  # 
/usr/bin/vpp -c /etc/vpp/startup.conf  vlib_plugin_early_init:361: plugin path 
/usr/lib/vpp_plugins:/usr/lib6  load_one_plugin:189: Loaded plugin: 
abf_plugin.so (ACL based Forwarding)  load_one_plugin:189: Loaded plugin: 
acl_plugin.so (Access Control Lists)  load_one_plugin:189: Loaded plugin: 
avf_plugin.so (Intel Adaptive Virtual Function (AVF) Device Plugin)  
load_one_plugin:191: Loaded plugin: cdp_plugin.so  load_one_plugin:189: Loaded 
plugin: dpdk_plugin.so (Data Plane Development Kit (DPDK))  
load_one_plugin:189: Loaded plugin: flowprobe_plugin.so (Flow per Packet)  
load_one_plugin:189: Loaded plugin: gbp_plugin.so (Group Based Policy)  
load_one_plugin:189: Loaded plugin: gtpu_plugin.so (GTPv1-U)  
load_one_plugin:189: Loaded plugin: igmp_plugin.so (IGMP messaging)  
load_one_plugin:189: Loaded plugin: ila_plugin.so (Identifier-locator 
addressing for IPv6)  load_one_plugin:189: Loaded plugin: ioam_plugin.so 
(Inbound OAM)  load_one_plugin:117: Plugin disabled (default): ixge_plugin.so  
load_one_plugin:189: Loaded plugin: l2e_plugin.so (L2 Emulation)  
load_one_plugin:189: Loaded plugin: lacp_plugin.so (Link Aggregation Control 
Protocol)  load_one_plugin:189: Loaded plugin: lb_plugin.so (Load Balancer)  
load_one_plugin:189: Loaded plugin: mactime_plugin.so (Time-based MAC 
source-address filter)  load_one_plugin:189: Loaded plugin: map_plugin.so 
(Mapping of address and port (MAP))  load_one_plugin:189: Loaded plugin: 
memif_plugin.so (Packet Memory Interface (experimetal))  load_one_plugin:189: 
Loaded plugin: nat_plugin.so (Network Address Translation)  
load_one_plugin:189: Loaded plugin: pppoe_plugin.so (PPPoE)  
load_one_plugin:189: Loaded plugin: srv6ad_plugin.so (Dynamic SRv6 proxy)  
load_one_plugin:189: Loaded plugin: srv6am_plugin.so (Masquerading SRv6 proxy)  
load_one_plugin:189: Loaded plugin: srv6as_plugin.so (Static SRv6 proxy)  
load_one_plugin:189: Loaded plugin: stn_plugin.so (VPP Steals the NIC for 
Container integration)  load_one_plugin:189: Loaded plugin: 
tlsmbedtls_plugin.so (mbedtls based TLS Engine)  load_one_plugin:189: Loaded 
plugin: tlsopenssl_plugin.so (openssl based TLS Engine)  
svm_client_scan_this_region_no /vpe-api: cleanup ghost pid 2517  
svm_client_scan_this_region_no /global_vm: cleanup ghost pid 2517  
tls_init_ca_chain:652: Could not initialize TLS CA certificates  
tls_openssl_init:702: failed to initialize TLS CA chain  tls_init_ca_chain:567: 
Could not initialize TLS CA certificates  tls_mbedtls_init:606: failed to 
initialize TLS CA chain  load_one_vat_plugin:67: Loaded plugin: 
acl_test_plugin.so  load_one_vat_plugin:67: Loaded plugin: dpdk_test_plugin.so  
load_one_vat_plugin:67: Loaded plugin: ioam_export_test_plugin.so  
load_one_vat_plugin:67: Loaded plugin: ioam_pot_test_plugin.so  
load_one_vat_plugin:67: Loaded plugin: ioam_trace_test_plugin.so  
load_one_vat_plugin:67: Loaded plugin: ioam_vxlan_gpe_test_plugin.so  
load_one_vat_plugin:67: Loaded plugin: lb_test_plugin.so  
load_one_vat_plugin:67: Loaded plugin: udp_ping_test_plugin.so  
load_one_vat_plugin:67: Loaded plugin: vxlan_gpe_ioam_export_test_plu  
load_one_vat_plugin:67: Loaded plugin: flowprobe_test_plugin.so  
load_one_vat_plugin:67: Loaded plugin: gtpu_test_plugin.so  
load_one_vat_plugin:67: Loaded plugin: memif_test_plugin.so  
load_one_vat_plugin:67: Loaded plugin: nat_test_plugin.so  
load_one_vat_plugin:67: Loaded plugin: pppoe_test_plugin.so  
load_one_vat_plugin:67: Loaded plugin: cdp_test_plugin.so  
load_one_vat_plugin:67: Loaded plugin: lacp_test_plugin.so  
load_one_vat_plugin:67: Loaded plugin: stn_test_plugin.so  
load_one_vat_plugin:67: Loaded plugin: avf_test_plugin.so  
load_one_vat_plugin:67: Loaded plugin: mactime_test_plugin.so  
load_one_vat_plugin:67: Loaded plugin: map_test_plugin.so  0: 
dpdk_ipsec_process:1026: not enough DPDK crypto resources, default to OpenSSL   
   ___    _    _   _  ___  __/ __/ _ \  (_)__    | | / / _ \/ _ \  
_/ _// // / / / _ \   | |/ / ___/ ___/  /_/ /(_)_/\___/   |___/_/  /_/      
vpp#   and no input is accepted.
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

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


[vpp-dev] vppctl hangs after upgrade from 18.04 to 18.07.1

2018-10-05 Thread Glaza
Hi
Everyone,   After
upgrade (yum update vpp) from 18.04 to 18.07.1 vppctl hangs. In 18.04
vppctl was lagging, but after update it is not responding at all.  After
whitelisting one dev at a time it looks like it is related to:  :81:00.0
'82599ES 10-Gigabit SFI/SFP+ Network Connection 10fb'
drv=uio_pci_generic unused=vfio-pci  :81:00.1
'82599ES 10-Gigabit SFI/SFP+ Network Connection 10fb'
drv=uio_pci_generic unused=vfio-pci  Disabling
those devices makes vppctl runs smoothly. Enabling one of those two makes
vppctl lagging, enabling second one makes it unresponsive at all.
System is Centos 7.5 (kernel is 3.10.0-862.14.4.el7.x86_64).   Please
help.
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

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


Odp: RE: [vpp-dev] Failed to build vppsb router plugin (librtnl)

2018-06-01 Thread Glaza

Yes I do see error without lacp.
 
Yusuke Tatsumi  wrote


Hi Glaza,
 
Thanks for your patch!
I also build successfully with your patch on CentOS 7.3 (kernel 3.10).
 
 
> But when I tried to use it with lacp I got: > rtnl_ns_recv:398: Received notification while in sync. Restart synchronization. > rtnl_process_read:462: rtnetlink recv error (29) []: Bad file descriptor
Do you think this recv error caused by lacp interconnection between VPP and counter switch?
 
In other words, do you see error without lacp?
 
Thanks,
Yusuke.


$B:9=P?M(B: vpp-dev@lists.fd.io  $B$,(B Glaza  $B$NBeM}$GAw?.(B $BAw?.F|;~(B: 2018$BG/(B5$B7n(B22$BF|(B 20:13:02 $B08@h(B: vpp-dev $B7oL>(B: Re: [vpp-dev] Failed to build vppsb router plugin (librtnl)
 


Hi Yusuke,  I did: diff --git a/netlink/librtnl/netns.c b/netlink/librtnl/netns.c index 1b40227..f899f28 100644 --- a/netlink/librtnl/netns.c +++ b/netlink/librtnl/netns.c @@ -66,7 +66,7 @@ u8 *format_ns_link (u8 *s, va_list *args)  #define ns_foreach_rta  \ 
   _(RTA_DST, dst, 1)    \    _(RTA_SRC, src, 1)    \ -  _(RTA_VIA, via, 
1)    \ +  _(__RH_RESERVED_RTA_VIA, via, 1)  \    _(RTA_GATEWAY, gateway, 1)    \    _(RTA_IIF, iif, 
1)    \    _(RTA_OIF, oif, 1)    \ diff --git a/netlink/librtnl/rtnl.c b/netlink/librtnl/rtnl.c index 14ea0e8..2d22bd5 100644 --- 
a/netlink/librtnl/rtnl.c +++ b/netlink/librtnl/rtnl.c @@ -263,7 +263,7 @@ static int rtnl_socket_open(rtnl_ns_t *ns)  .nl_groups = grpmask(RTNLGRP_LINK)| grpmask(RTNLGRP_IPV6_IFADDR) |  grpmask(RTNLGRP_IPV4_IFADDR) | grpmask(RTNLGRP_IPV4_ROUTE) |  grpmask(RTNLGRP_IPV6_ROUTE) | grpmask(RTNLGRP_NEIGH) | -    grpmask(RTNLGRP_NOTIFY) | grpmask(RTNLGRP_MPLS_ROUTE), 
+    grpmask(RTNLGRP_NOTIFY) | grpmask(__RH_RESERVED_RTNLGRP_MPLS_ROUTE),    };      if (bind(ns->rtnl_socket, (struct sockaddr*) &addr, sizeof(addr))) { diff --git a/router/Makefile.am b/router/Makefile.am index b9de6a1..d16f103 100644 --- a/router/Makefile.am +++ b/router/Makefile.am @@ -1,6 +1,6 @@  AUTOMAKE_OPTIONS = foreign subdir-objects   -AM_CFLAGS = -Wall 
-I@TOOLKIT_INCLUDE@ +AM_CFLAGS = -std=gnu99 -Wall -I@TOOLKIT_INCLUDE@    lib_LTLIBRARIES = router.la  router_la_SOURCES = router/tap_inject.c \ diff --git a/router/router/tap_inject_netlink.c b/router/router/tap_inject_netlink.c index 3dca013..8f30216 100644 --- a/router/router/tap_inject_netlink.c +++ b/router/router/tap_inject_netlink.c @@ -33,6 +33,14 @@  #include   #include 
   +#define AF_MPLS    28  /* MPLS */ + +/* RTA_VIA */ +struct rtvia { +   __kernel_sa_family_t    rtvia_family; +   
__u8    rtvia_addr[0]; +}; +  static void  add_del_addr (ns_addr_t * a, int is_del)  {  But when I tried to use it with lacp I got: rtnl_ns_recv:398: Received notification while in sync. Restart synchronization. rtnl_process_read:462: rtnetlink recv error (29) []: Bad file descriptor 
 






_._,_._,_

Links:

You receive all messages sent to this group.




View/Reply Online (#9489) |


  Reply To Sender
  
| Reply To Group
  


|


  Mute This Topic
 
| New Topic






Your Subscription |
Group Home |
Contact Group Owner |
Terms |

Unsubscribe
Email sent to: arch...@mail-archive.com


_._,_._,_



Re: [vpp-dev] Failed to build vppsb router plugin (librtnl)

2018-05-22 Thread Glaza
Hi Yusuke,

I did:
diff --git a/netlink/librtnl/netns.c b/netlink/librtnl/netns.c
index 1b40227..f899f28 100644
--- a/netlink/librtnl/netns.c
+++ b/netlink/librtnl/netns.c
@@ -66,7 +66,7 @@ u8 *format_ns_link (u8 *s, va_list *args)
 #define ns_foreach_rta  \
   _(RTA_DST, dst, 1)\
   _(RTA_SRC, src, 1)\
-  _(RTA_VIA, via, 1)\
+  _(__RH_RESERVED_RTA_VIA, via, 1)  \
   _(RTA_GATEWAY, gateway, 1)\
   _(RTA_IIF, iif, 1)\
   _(RTA_OIF, oif, 1)\
diff --git a/netlink/librtnl/rtnl.c b/netlink/librtnl/rtnl.c
index 14ea0e8..2d22bd5 100644
--- a/netlink/librtnl/rtnl.c
+++ b/netlink/librtnl/rtnl.c
@@ -263,7 +263,7 @@ static int rtnl_socket_open(rtnl_ns_t *ns)
 .nl_groups = grpmask(RTNLGRP_LINK)| grpmask(RTNLGRP_IPV6_IFADDR) |
 grpmask(RTNLGRP_IPV4_IFADDR) | grpmask(RTNLGRP_IPV4_ROUTE) |
 grpmask(RTNLGRP_IPV6_ROUTE) | grpmask(RTNLGRP_NEIGH) |
-grpmask(RTNLGRP_NOTIFY) | grpmask(RTNLGRP_MPLS_ROUTE),
+grpmask(RTNLGRP_NOTIFY) | grpmask(__RH_RESERVED_RTNLGRP_MPLS_ROUTE),
   };
 
   if (bind(ns->rtnl_socket, (struct sockaddr*) &addr, sizeof(addr))) {
diff --git a/router/Makefile.am b/router/Makefile.am
index b9de6a1..d16f103 100644
--- a/router/Makefile.am
+++ b/router/Makefile.am
@@ -1,6 +1,6 @@
 AUTOMAKE_OPTIONS = foreign subdir-objects
 
-AM_CFLAGS = -Wall -I@TOOLKIT_INCLUDE@
+AM_CFLAGS = -std=gnu99 -Wall -I@TOOLKIT_INCLUDE@
 
 lib_LTLIBRARIES = router.la
 router_la_SOURCES = router/tap_inject.c \
diff --git a/router/router/tap_inject_netlink.c 
b/router/router/tap_inject_netlink.c
index 3dca013..8f30216 100644
--- a/router/router/tap_inject_netlink.c
+++ b/router/router/tap_inject_netlink.c
@@ -33,6 +33,14 @@
 #include 
 #include 
 
+#define AF_MPLS28  /* MPLS */
+
+/* RTA_VIA */
+struct rtvia {
+   __kernel_sa_family_trtvia_family;
+   __u8rtvia_addr[0];
+};
+
 static void
 add_del_addr (ns_addr_t * a, int is_del)
 {

But when I tried to use it with lacp I got:
rtnl_ns_recv:398: Received notification while in sync. Restart synchronization.
rtnl_process_read:462: rtnetlink recv error (29) []: Bad file descriptor




-=-=-=-=-=-=-=-=-=-=-=-
Links:

You receive all messages sent to this group.

View/Reply Online (#9357): https://lists.fd.io/g/vpp-dev/message/9357
View All Messages In Topic (3): https://lists.fd.io/g/vpp-dev/topic/19740620
Mute This Topic: https://lists.fd.io/mt/19740620/21656
New Topic: https://lists.fd.io/g/vpp-dev/post

Change Your Subscription: https://lists.fd.io/g/vpp-dev/editsub/21656
Group Home: https://lists.fd.io/g/vpp-dev
Contact Group Owner: vpp-dev+ow...@lists.fd.io
Terms of Service: https://lists.fd.io/static/tos
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub
-=-=-=-=-=-=-=-=-=-=-=-



[vpp-dev] router plugin improvements

2018-05-17 Thread Glaza
Hi

At the beginning I would like to thank for router plugin.

Actually my systemd service to start vpp looks like:

ExecStart=/usr/bin/vpp -c /etc/vpp/startup.conf
ExecStartPost=-/bin/sleep 5
ExecStartPost=-/sbin/ip link set dev vpp0 up
ExecStartPost=-/sbin/ip address add 10.0.0.14/30 dev vpp0

Is there any better way to start vpp with router plugin enabled? It would be 
nice to have it in configuration like in https://github.com/iqiyi/dpvs where 
rte_kni.ko is used to make similar functionality.

Thanks,
Tom



-=-=-=-=-=-=-=-=-=-=-=-
Links:

You receive all messages sent to this group.

View/Reply Online (#9316): https://lists.fd.io/g/vpp-dev/message/9316
View All Messages In Topic (1): https://lists.fd.io/g/vpp-dev/topic/19284371
Mute This Topic: https://lists.fd.io/mt/19284371/21656
New Topic: https://lists.fd.io/g/vpp-dev/post

Change Your Subscription: https://lists.fd.io/g/vpp-dev/editsub/21656
Group Home: https://lists.fd.io/g/vpp-dev
Contact Group Owner: vpp-dev+ow...@lists.fd.io
Terms of Service: https://lists.fd.io/static/tos
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub
-=-=-=-=-=-=-=-=-=-=-=-



[vpp-dev] Highly available VPP

2018-05-17 Thread Glaza
Hi

I am using vpp 18.04 with lacp and router plugin and looking for a way to make 
it highly available. Does anyone now how to achieve this, for example using 
keepalived+VRRP?

Thanks,
Tom



-=-=-=-=-=-=-=-=-=-=-=-
Links:

You receive all messages sent to this group.

View/Reply Online (#9315): https://lists.fd.io/g/vpp-dev/message/9315
View All Messages In Topic (1): https://lists.fd.io/g/vpp-dev/topic/19284370
Mute This Topic: https://lists.fd.io/mt/19284370/21656
New Topic: https://lists.fd.io/g/vpp-dev/post

Change Your Subscription: https://lists.fd.io/g/vpp-dev/editsub/21656
Group Home: https://lists.fd.io/g/vpp-dev
Contact Group Owner: vpp-dev+ow...@lists.fd.io
Terms of Service: https://lists.fd.io/static/tos
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub
-=-=-=-=-=-=-=-=-=-=-=-



[vpp-dev] can't expand fixed-size pool

2017-11-29 Thread Glaza
Hi everybody,

I just build an rpm package of vpp-17.10 and on build host it runs OK, but on 
second clean host it fails with:
# /usr/bin/vpp -c /etc/vpp/startup.conf.rpmnew 
vlib_plugin_early_init:356: plugin path /usr/lib/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:184: Loaded plugin: router.so (router)
/usr/bin/vpp[1754]: load_one_plugin:63: Loaded plugin: 
/usr/lib/vpp_api_test_plugins/acl_test_plugin.so
/usr/bin/vpp[1754]: load_one_plugin:63: Loaded plugin: 
/usr/lib/vpp_api_test_plugins/dpdk_test_plugin.so
/usr/bin/vpp[1754]: load_one_plugin:63: Loaded plugin: 
/usr/lib/vpp_api_test_plugins/ioam_export_test_plugin.so
/usr/bin/vpp[1754]: load_one_plugin:63: Loaded plugin: 
/usr/lib/vpp_api_test_plugins/ioam_pot_test_plugin.so
/usr/bin/vpp[1754]: load_one_plugin:63: Loaded plugin: 
/usr/lib/vpp_api_test_plugins/ioam_trace_test_plugin.so
/usr/bin/vpp[1754]: load_one_plugin:63: Loaded plugin: 
/usr/lib/vpp_api_test_plugins/ioam_vxlan_gpe_test_plugin.so
/usr/bin/vpp[1754]: load_one_plugin:63: Loaded plugin: 
/usr/lib/vpp_api_test_plugins/lb_test_plugin.so
/usr/bin/vpp[1754]: load_one_plugin:63: Loaded plugin: 
/usr/lib/vpp_api_test_plugins/udp_ping_test_plugin.so
/usr/bin/vpp[1754]: load_one_plugin:63: Loaded plugin: 
/usr/lib/vpp_api_test_plugins/vxlan_gpe_ioam_export_test_plugin.so
/usr/bin/vpp[1754]: load_one_plugin:63: Loaded plugin: 
/usr/lib/vpp_api_test_plugins/flowprobe_test_plugin.so
/usr/bin/vpp[1754]: load_one_plugin:63: Loaded plugin: 
/usr/lib/vpp_api_test_plugins/gtpu_test_plugin.so
/usr/bin/vpp[1754]: load_one_plugin:63: Loaded plugin: 
/usr/lib/vpp_api_test_plugins/memif_test_plugin.so
/usr/bin/vpp[1754]: load_one_plugin:63: Loaded plugin: 
/usr/lib/vpp_api_test_plugins/nat_test_plugin.so
/usr/bin/vpp[1754]: load_one_plugin:63: Loaded plugin: 
/usr/lib/vpp_api_test_plugins/pppoe_test_plugin.so
/usr/bin/vpp[1754]: scan_device:510: can't expand fixed-size pool

Host is Centos 7.3.

Please help.


___
vpp-dev mailing list
vpp-dev@lists.fd.io
https://lists.fd.io/mailman/listinfo/vpp-dev


[vpp-dev] VPPSB router plug-in and LACP issue

2017-06-07 Thread Glaza
Hi everybody,

I want to test router plug-in from vppsb. I am working on VPP 17.04. There is 
no "tap inject" command in this version that is used by this plug-in (as in the 
plug-in wiki page mentioned).

I have read https://lists.fd.io/pipermail/vpp-dev/2017-May/004889.html and 
"show plugins" includes: "10. router.so router"
I have also read https://lists.fd.io/pipermail/vpp-dev/2017-May/004890.html and 
commented this function, 

I also tried to use LACP bond (vdev 
eth_bond0,mode=4,slave=:81:00.0,xmit_policy=l23,mac=00:1e:67:1d:fd:1d)
DBGvpp# sh int
  Name   Idx   State  Counter  
Count 
BondEthernet0 2down  
TenGigabitEthernet81/0/0  1 bond-slave   
local00down  

if I tried:
#ip add add 172.168.25.2/25 dev vpp0
#ip link set vpp0 up

it fails with:
DBGvpp# 0: /root/git/vpp/build-data/../src/vnet/fib/fib_table.c:35 
(fib_table_get) assertion `! pool_is_free (ip6_main.fibs, _e)' fails

changing vpp0 to vpp1 fails with:
DBGvpp# PMD: ixgbe_dev_link_status_print():  Port 0: Link Down

Thanks


___
vpp-dev mailing list
vpp-dev@lists.fd.io
https://lists.fd.io/mailman/listinfo/vpp-dev