Re: [vpp-dev] VPP support for 25GbE DPDK ports?

2017-12-17 Thread Damjan Marion

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;
> break;
> + case ETH_SPEED_NUM_2_5G:
> +   hw_flags |= VNET_HW_INTERFACE_FLAG_SPEED_2_5G;
> +   break;
> + case ETH_SPEED_NUM_5G:
> +   hw_flags |= VNET_HW_INTERFACE_FLAG_SPEED_5G;
> +   break;
>   case ETH_SPEED_NUM_10G:
> hw_flags |= VNET_HW_INTERFACE_FLAG_SPEED_10G;
> break;
> + case ETH_SPEED_NUM_20G:
> +   hw_flags |= VNET_HW_INTERFACE_FLAG_SPEED_20G;
> +   break;
> + case ETH_SPEED_NUM_25G:
> +   hw_flags |= VNET_HW_INTERFACE_FLAG_SPEED_25G;
> +   break;
>   case ETH_SPEED_NUM_40G:
> hw_flags |= VNET_HW_INTERFACE_FLAG_SPEED_40G;
> break;
> + case ETH_SPEED_NUM_50G:
> +   hw_flags |= VNET_HW_INTERFACE_FLAG_SPEED_50G;
> +   break;
> + case ETH_SPEED_NUM_56G:
> +   hw_flags |= 

Re: [vpp-dev] what is the password for hc2vpp ssh?

2017-12-17 Thread Marek Gradzki -X (mgradzki - PANTHEON TECHNOLOGIES at Cisco)
Moved to hc2...@lists.fd.io

Marek

From: vpp-dev-boun...@lists.fd.io [mailto:vpp-dev-boun...@lists.fd.io] On 
Behalf Of mirzaei.reza
Sent: 17 grudnia 2017 10:02
To: Vpp Dev 
Subject: [vpp-dev] what is the password for hc2vpp ssh?


Hi

Does anyone know the hc2vpp ssh password?

I used this command for ssh according to this 
tutorial:

ssh -oHostKeyAlgorithms=+ssh-dss admin@localhost -p 2831 -s netconf

But I dont know the password for login:

Password authentication
Password:



Can you please help me to solve this problem?

Best regards

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

Re: [vpp-dev] a problem about dhcp

2017-12-17 Thread 薛欣颖

Hi Neale,

I have filed a JIRA ticket : VPP-1104. Thank you for your help.

Thanks,
Xyxue


 
From: Neale Ranns (nranns)
Date: 2017-12-18 00:20
To: 薛欣颖; vpp-dev
Subject: Re: [vpp-dev] a problem about dhcp
 
Hi Xyxue,
 
Please file a JIRA ticket at:
  https://jira.fd.io/secure/Dashboard.jspa
 
/neale
 
From:  on behalf of 薛欣颖 
Date: Saturday, 16 December 2017 at 07:26
To: vpp-dev 
Subject: [vpp-dev] a problem about dhcp
 
 
Hi guys,

I'm testing the dhcp function. There is a problem : when I delete the dhcp 
client, the address del success, but there is no 'release message' to server.

Is there a plan to solve this problem?

Thanks,
Xyxue


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

Re: [vpp-dev] a problem about dhcp

2017-12-17 Thread Neale Ranns (nranns)

Hi Xyxue,

Please file a JIRA ticket at:
  https://jira.fd.io/secure/Dashboard.jspa

/neale

From:  on behalf of 薛欣颖 
Date: Saturday, 16 December 2017 at 07:26
To: vpp-dev 
Subject: [vpp-dev] a problem about dhcp


Hi guys,

I'm testing the dhcp function. There is a problem : when I delete the dhcp 
client, the address del success, but there is no 'release message' to server.

Is there a plan to solve this problem?

Thanks,
Xyxue

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

Re: [vpp-dev] mpls API

2017-12-17 Thread Neale Ranns (nranns)

Hi Holoo,

The MPLS API is at;
  /src/vnet/mpls/mpls.api
there are examples of the various types of MPLS FIB entries in the unit-tests. 
See;
  /test/test-mpls.py

hth
/neale

From:  on behalf of Holoo Gulakh 

Date: Sunday, 17 December 2017 at 12:58
To: "vpp-dev@lists.fd.io" 
Subject: [vpp-dev] mpls API

Hi,
I want to add an entry to mpls fib.
How can I do that??? What are essential parameters??

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

Re: [vpp-dev] Need Help on an ipsec Problem

2017-12-17 Thread Neale Ranns (nranns)
Hi Bin,

I expect your IPsec tunnel is not enabled/configured to accept IPv4 packets.
Do:
  sh int featuee 

and if you see:
ip4-unicast:
  ip4-drop

then the tunnel is configured to drop all IPv4 packets.
In order to enable any interface to receive IP it must either have an IP 
address applied;
  set int ip addr  p.q.r.s/t
Or be unnumbered to another interface that has one;
  set int ip addr  p.q.r.s/t
  set int unnumbered  use 

/neale

From:  on behalf of "Bin Zhang (binzhang)" 

Date: Friday, 15 December 2017 at 23:04
To: "vpp-dev@lists.fd.io" 
Subject: [vpp-dev] Need Help on an ipsec Problem

Hi Team,

I am new to VPP and would appreciate your comments and debugging tips on the 
following problem.

I have set up an ipsec tunnel between two VMs (as shown in the diagram).  The 
client side is Strongswan and the server side is VPP.  But I can not ping 
through the tunnel from the client VM (on the left) to the subnet in the VPP VM 
(on the right).  In other words, “ping 151.1.1.2” failed.  The packet is 
dropped by VPP.

I used gdb to track the code execution.  The “next index” was changed from 2 
(IP4_INPUT_NEXT_LOOKUP) to 5 (IP4_INPUT_N_NEXT) in function 
vnet_get_config_data.



  /* Last 32 bits are next index. */

  *next_index = d[n];


How do I move forward with my investigation?

More info:
[1] Packet trace of the ping packet.  As we can see, the de-tunneling worked 
and the (inner) ICMP packet was moved to ip4-input.  But it was then dropped.
00:12:16:877859: dpdk-input
  GigabitEthernet0/8/0 rx queue 0
  buffer 0x494a: current data 14, length 152, free-list 0, clone-count 0, 
totlen-nifb 0, trace 0x0
  PKT MBUF: port 0, nb_segs 1, pkt_len 166
buf_len 2176, data_len 166, ol_flags 0x0, data_off 128, phys_addr 0x10b25300
packet_type 0x0
  IP4: 08:00:27:57:ad:8c -> 08:00:27:94:51:9e
  IPSEC_ESP: 172.28.128.4 -> 172.28.128.5
tos 0x00, ttl 64, length 152, checksum 0xe6d7
fragment id 0xfb19, flags DONT_FRAGMENT
00:12:16:877919: ip4-input
  IPSEC_ESP: 172.28.128.4 -> 172.28.128.5
tos 0x00, ttl 64, length 152, checksum 0xe6d7
fragment id 0xfb19, flags DONT_FRAGMENT
00:12:16:877924: ip4-lookup
  fib 0 dpo-idx 7 flow hash: 0x
  IPSEC_ESP: 172.28.128.4 -> 172.28.128.5
tos 0x00, ttl 64, length 152, checksum 0xe6d7
fragment id 0xfb19, flags DONT_FRAGMENT
00:12:16:877926: ip4-local
IPSEC_ESP: 172.28.128.4 -> 172.28.128.5
  tos 0x00, ttl 64, length 152, checksum 0xe6d7
  fragment id 0xfb19, flags DONT_FRAGMENT
00:12:16:877927: ipsec-if-input
  IPSec: spi 945163011 seq 22
00:12:16:877929: esp-decrypt
  esp: crypto aes-cbc-192 integrity sha1-96
00:12:16:877956: ip4-input
  ICMP: 172.28.128.4 -> 151.1.1.2
tos 0x00, ttl 64, length 84, checksum 0xc378
fragment id 0xb30c, flags DONT_FRAGMENT
  ICMP echo_request checksum 0xe0c1
00:12:16:877958: ip4-drop
ICMP: 172.28.128.4 -> 151.1.1.2
  tos 0x00, ttl 64, length 84, checksum 0xc378
  fragment id 0xb30c, flags DONT_FRAGMENT
ICMP echo_request checksum 0xe0c1
00:12:16:877959: error-drop
  ip4-input: valid ip4 packets

[2] Ikev2 profile on VPP
DBGvpp# show ikev2 profile
profile pr1
  auth-method shared-key-mic auth data Vpp123
  local id-type fqdn data vpp.home
  remote id-type fqdn data ss.vpn.example.com
  local traffic-selector addr 151.1.1.0 - 151.1.1.255 port 0 - 65535 protocol 0
  remote traffic-selector addr 172.28.128.4 - 172.28.128.4 port 0 - 65535 
protocol 0

[3] Tunnel info on VPP
DBGvpp# show ikev2 sa
 iip 172.28.128.4 ispi e934164d91e57f38 rip 172.28.128.5 rspi d17da080720b0634
 encr:aes-cbc-256 prf:hmac-sha1 integ:sha1-96 dh-group:modp-2048
  nonce i:62ecfcedebb59e043bc9ccfcbceeb17ab32439f93cb0005bb81633f0a914fa48
r:15ebb5e167b57c0079951a9ea2c77198b08d8398002a82c333ecd92a96e76f12
  SK_d88d1534d0e99c4430059c82c7b6d20b59ef54bbd
  SK_a  i:4766ba54d3f2d68c3575f0610f14226b7066bf53
r:b27d54dcb76cb7f261a1d9e25e93cb91ec67864c
  SK_e  i:b0c0719ad7d219a8a2b51f8b45ca4e9af6ab7bf5e4e2e50b3a6b05e8fc4d1095
r:475962cd9e562ee5f7581fecdfe50e12ab56fd946bed64283d19b5799c4edef8
  SK_p  i:9ca87f1f298b29948878900f0ae4fe3d1cb3
r:aa950829e67985a7395e7c96cb5f1eef4c7c46a4
  identifier (i) fqdn ss.vpn.example.com
  identifier (r) fqdn vpp.home
  child sa 0:
encr:aes-cbc-192 integ:sha1-96 esn:yes
spi(i) c8423981 spi(r) fc77442b
SK_e  i:fb2002ca400eda904856a61894bbb445b5df9f5c0b647034
  r:54618f411597bb6b92d619b9bd10b2fe86d50530b86b00bd
SK_a  i:2ef6391d25c7cc5b32bef76194201abdc80956f6
  r:0b211b0a7845b380146595535c7f99aa994cc3c9
traffic selectors (i):
  0 type 7 protocol_id 0 addr 172.28.128.4 - 172.28.128.4 port 0 - 65535
traffic selectors (r):
  0 type 7 protocol_id 0 addr 151.1.1.0 - 151.1.1.255 port 0 - 65535
 iip 172.28.128.4 ispi e934164d91e57f38 rip 172.28.128.5 rspi d17da080720b0634

[4] Tunnel info on Client
vagrant@client1:/etc$ sudo ip xfrm stat

[vpp-dev] mpls API

2017-12-17 Thread Holoo Gulakh
Hi,
I want to add an entry to mpls fib.
How can I do that??? What are essential parameters??

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