Re: [vpp-dev] cmake is on

2018-09-06 Thread Kingwel Xie
Hi Damijan,

Thanks for the great job done. It is now much faster.

We noticed a difference between using cmake and automake in the latest code:

Vppinfra/qsort.c is included in vppinfra/CMakefile.txt but not in vppinfra.am, 
which creates a situation that cmake image would be linked to the qsort.c but 
automake linked to glibc.

The reason why we noticed is there is a buffer overrun bug in qsort.c that 
causes cli crashed occasionally.

Please comment how to fix. Personally I'd like to remove qsort.c, like before.

Regards,
Kingwel

From: vpp-dev@lists.fd.io  On Behalf Of Damjan Marion via 
Lists.Fd.Io
Sent: Sunday, September 02, 2018 8:48 PM
To: vpp-dev 
Cc: vpp-dev@lists.fd.io
Subject: [vpp-dev] cmake is on


Dear all,

We just switched from autotools to cmake and retired all autotools related 
files in src/.

All verify jobs are ok, and we also tried it on 3 different x86 and 2 different 
ARM Aarch64 machines.

Due to blast radius, i will not be surprised that some small issues pop out, 
but i don't expect anything hard to fix.

Let us know if you hit something...

PS As a part of this change, CentOS 7 build are now using devtoolset-7, so they 
are compiled with gcc-7, which also means images have support for Skylake 
Servers (AVX512).

--
Damjan

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#10420): https://lists.fd.io/g/vpp-dev/message/10420
Mute This Topic: https://lists.fd.io/mt/25155374/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] Unable to create sub-interface with 'untagged' option

2018-09-06 Thread Chandra Mohan, Vijay Mohan
Did anyone get a chance to take a look at this ?

-vijay

From: "Chandra Mohan, Vijay Mohan" 
Date: Wednesday, September 5, 2018 at 1:35 PM
To: "vpp-dev@lists.fd.io" 
Subject: Unable to create sub-interface with 'untagged' option

Hi All,

Creation of a sub-interface with ‘untagged’ option fails with the message “ 
create sub-interfaces: vlan is already in use” . Any idea what I am missing 
here ? There is no other configs present and trying to create sub-interface for 
the first time.

vpp# create sub-interfaces GigabitEthernet5/0/0 1 untagged
create sub-interfaces: vlan is already in use


Thanks,
Vijay
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

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


Re: [**EXTERNAL**] Re: [vpp-dev] What is 'punt' in 'set interface' command

2018-09-06 Thread Chandra Mohan, Vijay Mohan
Thanks for the response. 

I created a sub-interface on a physical interface and am trying to set the 
interface state of that sub-interface as 'punt' . Its failing with a message :

vpp# set interface state TenGigabitEthernet3/0/0.1 punt
set interface state: super-interface TenGigabitEthernet3/0/0 must be down/punt

Question is, the physical interface must be 'down/punt' in order to 
successfully set 'punt' on the corresponding sub-interface whose state would 
eventually become 'down/punt' . Was wondering what's the real purpose of this 
configuration ? If the physical interface is down it wouldn’t receive any 
frames.  

I am missing something here and trying to figure what that is. 

-vijay

On 9/5/18, 5:34 PM, "Jim Thompson"  wrote:

https://github.com/FDio/vpp/blob/master/src/vnet/ip/punt.c#L18-L22

  @brief Local TCP/IP stack punt infrastructure.
 
  Provides a set of VPP nodes together with the relevant APIs and CLI
  commands in order to adjust and dispatch packets from the VPP data plane
  to the local TCP/IP stack


> On Sep 6, 2018, at 1:19 AM, Chandra Mohan, Vijay Mohan 
 wrote:
> 
> Did anyone get a chance to look at this ?
>  
> -Vijay
>  
> From: "Chandra Mohan, Vijay Mohan" 
> Date: Tuesday, September 4, 2018 at 3:41 PM
> To: "vpp-dev@lists.fd.io" 
> Subject: What is 'punt' in 'set interface' command
>  
> Hi,
>  
> I am looking to understand when ‘punt’ option is used in “ set interface 
state  [up | down | punt | enable] “  . The command description says 
that it is used to punt traffic to slow-path and not used for forwarding. 
Looking to understand more about what this means. I am trying to explore if 
there is a way by which control frames can be forwarded to CPU and was 
wondering if ‘punt’ is that way to do this.
>  
> Thanks,
> Vijay
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> 
> View/Reply Online (#10390): https://lists.fd.io/g/vpp-dev/message/10390
> Mute This Topic: https://lists.fd.io/mt/25192021/675164
> Group Owner: vpp-dev+ow...@lists.fd.io
> Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub  [j...@netgate.com]
> -=-=-=-=-=-=-=-=-=-=-=-



-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

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


[vpp-dev] vpp-arm-verify-master-ubuntu1604 failing

2018-09-06 Thread Matthew Smith
Hi,

The jenkins job vpp-arm-verify-master-ubuntu1604 seems to have failed every
time it has run over the last 36 hours or so. Is that a known issue?

https://jenkins.fd.io/job/vpp-arm-verify-master-ubuntu1604/buildTimeTrend

Is vpp-dev the appropriate place to report issues like this? Or is there
some other email alias that will go directly to whomever might need to kick
jenkins?

Thanks,
-Matt
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#10416): https://lists.fd.io/g/vpp-dev/message/10416
Mute This Topic: https://lists.fd.io/mt/25265335/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] To support plugin's statistics

2018-09-06 Thread Ni, Hongjun
Thank you Ole!  Will give it a try.

Thanks,
Hongjun

-Original Message-
From: vpp-dev@lists.fd.io [mailto:vpp-dev@lists.fd.io] On Behalf Of Ole Troan
Sent: Thursday, September 6, 2018 10:39 PM
To: Ni, Hongjun 
Cc: vpp-dev 
Subject: Re: [vpp-dev] To support plugin's statistics

Hongjun,

> I get that you guys have developed a new statistics infrastructure recently.
>  
> Could you help to give me some guide on how to add plugin’s stats to the new 
> stats infra?

All plugin error counters get there by default.
If you add new named counters, they will also get there without any action 
required from the plugin.

Use vpp_get_stats to list, dump and poll counters as an example of external 
application.
Otherwise there’s also a python interface.

Cheers,
Ole
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#10415): https://lists.fd.io/g/vpp-dev/message/10415
Mute This Topic: https://lists.fd.io/mt/25237422/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] To support plugin's statistics

2018-09-06 Thread Ole Troan
Hongjun,

> I get that you guys have developed a new statistics infrastructure recently.
>  
> Could you help to give me some guide on how to add plugin’s stats to the new 
> stats infra?

All plugin error counters get there by default.
If you add new named counters, they will also get there without any action 
required from the plugin.

Use vpp_get_stats to list, dump and poll counters as an example of external 
application.
Otherwise there’s also a python interface.

Cheers,
Ole-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#10414): https://lists.fd.io/g/vpp-dev/message/10414
Mute This Topic: https://lists.fd.io/mt/25237422/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] cmake is on

2018-09-06 Thread Nitin Saxena

Thanks Marco, Damjan. Adding cpu id fixes the compilation

Pushed the patch: https://gerrit.fd.io/r/#/c/14701/

Thanks,

Nitin


On Thursday 06 September 2018 07:06 PM, Damjan Marion wrote:


External Email


Dear Nitin,

Yes, it is missing.  I took care only for platforms I have access to...

—
Damjan

On 6 Sep 2018, at 14:04, Nitin Saxena > wrote:



Hi Damjan,

cmake is making Cavium's OCTEONTx build failure. Following is the 
failure log




In function ‘dpdk_init’:
/home/nsaxena/vpp/src/plugins/dpdk/device/init.c:1802:3: error: 
static assertion failed: "DPDK RTE CACHE LINE SIZE does not match 
with 1<
   STATIC_ASSERT (RTE_CACHE_LINE_SIZE == 1 << CLIB_LOG2_CACHE_LINE_BYTES,

===

I am failing to see translation of Autoconf changes from commit id: 
473f46135c3fd77dad5614215cc279b1164e9a74 to CMake.


Thanks,

Nitin

On Sunday 02 September 2018 06:18 PM, Damjan Marion via Lists.Fd.Io 
wrote:


External Email


Dear all,

We just switched from autotools to cmake and retired all autotools 
related files in src/.


All verify jobs are ok, and we also tried it on 3 different x86 and 
2 different ARM Aarch64 machines.


Due to blast radius, i will not be surprised that some small issues 
pop out, but i don't expect anything hard to fix.


Let us know if you hit something...

PS As a part of this change, CentOS 7 build are now using 
devtoolset-7, so they are compiled with gcc-7, which also means 
images have support for Skylake Servers (AVX512).


--
Damjan



-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#10337):https://lists.fd.io/g/vpp-dev/message/10337
Mute This Topic:https://lists.fd.io/mt/25155374/675748
Group Owner:vpp-dev+ow...@lists.fd.io
Unsubscribe:https://lists.fd.io/g/vpp-dev/unsub   [nsax...@caviumnetworks.com]
-=-=-=-=-=-=-=-=-=-=-=-


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#10407): 
https://lists.fd.io/g/vpp-dev/message/10407 


Mute This Topic: https://lists.fd.io/mt/25155374/675642
Group Owner: vpp-dev+ow...@lists.fd.io 
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub  [dmar...@me.com 
]

-=-=-=-=-=-=-=-=-=-=-=-


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#10413): https://lists.fd.io/g/vpp-dev/message/10413
Mute This Topic: https://lists.fd.io/mt/25155374/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] cmake is on

2018-09-06 Thread Damjan Marion via Lists.Fd.Io

Dear Nitin,

Yes, it is missing.  I took care only for platforms I have access to...

— 
Damjan

> On 6 Sep 2018, at 14:04, Nitin Saxena  wrote:
> 
> Hi Damjan,
> 
> cmake is making Cavium's OCTEONTx build failure. Following is the failure log
> 
> 
> 
> In function ‘dpdk_init’:
> /home/nsaxena/vpp/src/plugins/dpdk/device/init.c:1802:3: error: static 
> assertion failed: "DPDK RTE CACHE LINE SIZE does not match with 
> 1 
> ===
> 
> I am failing to see translation of Autoconf changes from commit id: 
> 473f46135c3fd77dad5614215cc279b1164e9a74 to CMake.
> 
> Thanks,
> 
> Nitin
> 
>> On Sunday 02 September 2018 06:18 PM, Damjan Marion via Lists.Fd.Io wrote:
>> External Email
>> 
>> 
>> Dear all,
>> 
>> We just switched from autotools to cmake and retired all autotools related 
>> files in src/.
>> 
>> All verify jobs are ok, and we also tried it on 3 different x86 and 2 
>> different ARM Aarch64 machines.
>> 
>> Due to blast radius, i will not be surprised that some small issues pop out, 
>> but i don't expect anything hard to fix.
>> 
>> Let us know if you hit something...
>> 
>> PS As a part of this change, CentOS 7 build are now using devtoolset-7, so 
>> they are compiled with gcc-7, which also means images have support for 
>> Skylake Servers (AVX512).
>> 
>> -- 
>> Damjan
>> 
>> 
>> 
>> -=-=-=-=-=-=-=-=-=-=-=-
>> Links: You receive all messages sent to this group.
>> 
>> View/Reply Online (#10337): https://lists.fd.io/g/vpp-dev/message/10337
>> Mute This Topic: https://lists.fd.io/mt/25155374/675748
>> Group Owner: vpp-dev+ow...@lists.fd.io
>> Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub  
>> [nsax...@caviumnetworks.com]
>> -=-=-=-=-=-=-=-=-=-=-=-
> 
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> 
> View/Reply Online (#10407): https://lists.fd.io/g/vpp-dev/message/10407
> Mute This Topic: https://lists.fd.io/mt/25155374/675642
> Group Owner: vpp-dev+ow...@lists.fd.io
> Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub  [dmar...@me.com]
> -=-=-=-=-=-=-=-=-=-=-=-
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

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


Re: [EXTERNAL] [vpp-dev] Pager Buffer limit

2018-09-06 Thread Chris Luke
I should add that after the pager limit is exceeded, it simply disables the 
pager (if that does not work and it eats the output, please let me know!)

This is to limit memory consumption more than anything since it has to keep all 
the CLI output in memory to be able to paginate it. 100K lines was thought a 
reasonable default limit for this – at 80 characters per line this would be 
about 8MB+overhead and thus doesn’t put too much pressure on the heap. I would 
recommend you use vppctl and send the output to a file, or pipe to less, if you 
really do generate that much output.

Chris.

From: vpp-dev@lists.fd.io [mailto:vpp-dev@lists.fd.io] On Behalf Of Chris Luke
Sent: Thursday, September 06, 2018 9:18 AM
To: siddarth rai ; vpp-dev@lists.fd.io
Subject: Re: [EXTERNAL] [vpp-dev] Pager Buffer limit

Siddarth,

A quick Google reveals these resources in the first three responses that may 
answer your question:


· 
https://docs.fd.io/vpp/16.12/clicmd_vlib_vlib_unix_cli_c.html#clicmd_set_terminal_pager

· 
https://wiki.fd.io/view/VPP/Command-line_Arguments#.22unix.22_parameters

· https://docs.fd.io/vpp/16.12/syscfg_vlib_vlib_unix.html

Chris.

From: vpp-dev@lists.fd.io 
[mailto:vpp-dev@lists.fd.io] On Behalf Of siddarth rai
Sent: Thursday, September 06, 2018 7:07 AM
To: vpp-dev@lists.fd.io
Subject: [EXTERNAL] [vpp-dev] Pager Buffer limit

Hi,

I am working on creating a VPP cli which dumps a lot of info.

Is there any limitation to the number of lines we can print in a paged format 
using vlib_cli_output ? I am not able to print more than 100K lines.

Beyond that i get the error "-- pager buffer overflowed --" .
Also, how do I modify this limit ?

Thanks & Regards,
Siddarth
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

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


[vpp-dev] To support plugin's statistics

2018-09-06 Thread Ni, Hongjun
Hi Ole and all,

I get that you guys have developed a new statistics infrastructure recently.

Could you help to give me some guide on how to add plugin's stats to the new 
stats infra?

Thanks a lot,
Hongjun

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

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


Re: [EXTERNAL] [vpp-dev] Pager Buffer limit

2018-09-06 Thread Chris Luke
Siddarth,

A quick Google reveals these resources in the first three responses that may 
answer your question:


· 
https://docs.fd.io/vpp/16.12/clicmd_vlib_vlib_unix_cli_c.html#clicmd_set_terminal_pager

· 
https://wiki.fd.io/view/VPP/Command-line_Arguments#.22unix.22_parameters

· https://docs.fd.io/vpp/16.12/syscfg_vlib_vlib_unix.html

Chris.

From: vpp-dev@lists.fd.io [mailto:vpp-dev@lists.fd.io] On Behalf Of siddarth rai
Sent: Thursday, September 06, 2018 7:07 AM
To: vpp-dev@lists.fd.io
Subject: [EXTERNAL] [vpp-dev] Pager Buffer limit

Hi,

I am working on creating a VPP cli which dumps a lot of info.

Is there any limitation to the number of lines we can print in a paged format 
using vlib_cli_output ? I am not able to print more than 100K lines.

Beyond that i get the error "-- pager buffer overflowed --" .
Also, how do I modify this limit ?

Thanks & Regards,
Siddarth
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#10409): https://lists.fd.io/g/vpp-dev/message/10409
Mute This Topic: https://lists.fd.io/mt/25237417/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] cmake is on

2018-09-06 Thread Marco Varlese
Hi Nitin,
On Thu, 2018-09-06 at 18:34 +0530, Nitin Saxena wrote:
> Hi Damjan,
> 
> cmake is making Cavium's OCTEONTx build failure. Following is the
>   failure log
> 
> 
> 
> 
> 
> In function ‘dpdk_init’:
> 
>   /home/nsaxena/vpp/src/plugins/dpdk/device/init.c:1802:3: error:
>   static assertion failed: "DPDK RTE CACHE LINE SIZE does not match
>   with 1< 
>  STATIC_ASSERT (RTE_CACHE_LINE_SIZE == 1 <<
>   CLIB_LOG2_CACHE_LINE_BYTES,

I believe there's a missing CPU_TYPE detection in here "src/cmake/cpu.cmake"I
don't have an OCTEONTX machine to check so if you can provide them (or submit a
patch with those) I think that could fix it...
> ===
> 
> I am failing to see translation of Autoconf changes from commit
>   id: 473f46135c3fd77dad5614215cc279b1164e9a74 to CMake.
> 
> Thanks,
> 
> Nitin
> 
> 
> 
> On Sunday 02 September 2018 06:18 PM,
>   Damjan Marion via Lists.Fd.Io wrote:
> 
> 
> 
> 
> >   
> >   External Email
> >   
> > 
> > 
> > 
> > Dear all,
> > 
> > 
> > 
> > We just switched from autotools to cmake and
> >   retired all autotools related files in src/.
> > 
> > 
> > 
> > All verify jobs are ok, and we also tried it on 3
> >   different x86 and 2 different ARM Aarch64 machines.
> > 
> > 
> > 
> > Due to blast radius, i will not be surprised that
> >   some small issues pop out, but i don't expect anything hard to
> >   fix.
> > 
> > 
> > 
> > Let us know if you hit something...
> > 
> > 
> > 
> > PS As a part of this change, CentOS 7 build are
> >   now using devtoolset-7, so they are compiled with gcc-7, which
> >   also means images have support for Skylake Servers (AVX512).
> > 
> > 
> >   
> > 
> >   -- 
> > 
> >   Damjan
> >   
> >   
> > 
> > 
> >   
> >   
> > 
> >   
> >   
> > 
> >   -=-=-=-=-=-=-=-=-=-=-=-Links: You receive all messages sent to this
> > group.
> > View/Reply Online (#10337): https://lists.fd.io/g/vpp-dev/message/10337Mute
> > This Topic: https://lists.fd.io/mt/25155374/675748Group Owner: vpp-
> > dev+ow...@lists.fd.ioUnsubscribe: https://lists.fd.io/g/vpp-dev/unsubb  [nsa
> > x...@caviumnetworks.com]-=-=-=-=-=-=-=-=-=-=-=-
> > 
> > 
> 
> 
> 
>   
> 
> -=-=-=-=-=-=-=-=-=-=-=-Links: You receive all messages sent to this group.
> View/Reply Online (#10407): https://lists.fd.io/g/vpp-dev/message/10407Mute
> This Topic: https://lists.fd.io/mt/25155374/675056Group Owner: vpp-
> dev+ow...@lists.fd.ioUnsubscribe: https://lists.fd.io/g/vpp-dev/unsubb  [mvarl
> e...@suse.de]-=-=-=-=-=-=-=-=-=-=-=-
-- 
Marco V


SUSE LINUX GmbH | GF: Felix Imendörffer, Jane Smithard, Graham Norton
HRB 21284 (AG Nürnberg) Maxfeldstr. 5, D-90409, Nürnberg
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#10408): https://lists.fd.io/g/vpp-dev/message/10408
Mute This Topic: https://lists.fd.io/mt/25155374/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] cmake is on

2018-09-06 Thread Nitin Saxena

Hi Damjan,

cmake is making Cavium's OCTEONTx build failure. Following is the 
failure log




In function ‘dpdk_init’:
/home/nsaxena/vpp/src/plugins/dpdk/device/init.c:1802:3: error: static 
assertion failed: "DPDK RTE CACHE LINE SIZE does not match with 
1<
   STATIC_ASSERT (RTE_CACHE_LINE_SIZE == 1 << CLIB_LOG2_CACHE_LINE_BYTES,

===

I am failing to see translation of Autoconf changes from commit id: 
473f46135c3fd77dad5614215cc279b1164e9a74 to CMake.


Thanks,

Nitin

On Sunday 02 September 2018 06:18 PM, Damjan Marion via Lists.Fd.Io wrote:


External Email


Dear all,

We just switched from autotools to cmake and retired all autotools 
related files in src/.


All verify jobs are ok, and we also tried it on 3 different x86 and 2 
different ARM Aarch64 machines.


Due to blast radius, i will not be surprised that some small issues 
pop out, but i don't expect anything hard to fix.


Let us know if you hit something...

PS As a part of this change, CentOS 7 build are now using 
devtoolset-7, so they are compiled with gcc-7, which also means images 
have support for Skylake Servers (AVX512).


--
Damjan



-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#10337): https://lists.fd.io/g/vpp-dev/message/10337
Mute This Topic: https://lists.fd.io/mt/25155374/675748
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub  [nsax...@caviumnetworks.com]
-=-=-=-=-=-=-=-=-=-=-=-


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#10407): https://lists.fd.io/g/vpp-dev/message/10407
Mute This Topic: https://lists.fd.io/mt/25155374/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] crash when pressing TAB on CLI

2018-09-06 Thread Dave Barach via Lists.Fd.Io
In future, please refer to https://wiki.fd.io/view/VPP/BugReports. The issue 
you're reporting is not trivially reproducible.

At a minimum: we'll need a backtrace from a debug image, the vpp version 
string, the vpp startup config, and the connection method you used.

D.

From: vpp-dev@lists.fd.io  On Behalf Of Liu Anhua
Sent: Wednesday, September 5, 2018 10:55 PM
To: vpp-dev@lists.fd.io
Subject: [vpp-dev] crash when pressing TAB on CLI

Hi,
I have a problem with the latest code. When I execute 'set interface ip' on the 
command line and press TAB, it will crash. The current direct reason is found 
in the qsort function. When comparing strings, the access is Illegal memory, 
the specific code is as follows:

for (min = base; (hi = min += q->qsz) < max;)
{
  while ((*q->qcmp) (hi -= q->qsz, min) > 0);
  if ((hi += q->qsz) != min)
   {
 for (lo = min + q->qsz; --lo >= min;)
   {
 c = *lo;
 for (i = j = lo; (j -= q->qsz) >= hi; i = j)
  *i = *j;
 *i = c;
   }
   }
}
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#10406): https://lists.fd.io/g/vpp-dev/message/10406
Mute This Topic: https://lists.fd.io/mt/25216850/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] Issue in adding 10 G NIC to VPP

2018-09-06 Thread Arijit Pramanik
I have added the plugin path  as /usr/lib/vpp/vpp_plugins and enabled only
dpdk_plugin.so

But I'm getting the error currently as

Sep 06 16:30:54 turing-04 vpp[2339]: EAL: No free hugepages reported in
hugepages-1048576kB
Sep 06 16:30:54 turing-04 vpp[2339]: EAL: VFIO support initialized
Sep 06 16:30:54 turing-04 vnet[2339]: EAL: VFIO support initialized
Sep 06 16:30:54 turing-04 vpp[2339]: EAL: Requested device :81:00.1
cannot be used
Sep 06 16:30:54 turing-04 vnet[2339]: EAL: Requested device :81:00.1
cannot be used
Sep 06 16:30:55 turing-04 vnet[2339]: dpdk_pool_create:550:
ioctl(VFIO_IOMMU_MAP_DMA) pool 'dpdk_mbuf_pool_socket0': Invalid argument
(errno 22)
Sep 06 16:30:55 turing-04 vnet[2339]: dpdk_pool_create: failed to create
dpdk_mbuf_pool_socket1
Sep 06 16:30:55 turing-04 vnet[2339]: dpdk_buffer_pool_create:616: WARNING:
Failed to allocate mempool for CPU socket 1. Threads running on socket 1
will use socket 0 mempool.
Sep 06 16:30:55 turing-04 vnet[2339]: dpdk_ipsec_process:1018: not enough
DPDK crypto resources, default to OpenSSL
Sep 06 16:30:55 turing-04 vnet[2339]: dpdk_lib_init:230: DPDK drivers found
no ports...

Thanks,
Arijit.


On Thu, Sep 6, 2018 at 9:44 AM Avinash Dhar Dubey 
wrote:

> Arijit,
>
> We are using Intel X540 NIC.
> >>  Intel X540 NIC  is supported by DPDK.
>
> I'll try with one of them. Which one do you think is best suited for my
> NIC, How do I ensure that the driver module is loaded in the kernel
> beforehand?
> >>  You can use uio_pci_generic driver. To ensure that the driver is
> loaded before you start vpp, you can run "modprobe uio_pci_generic". It
> will load the driver if its already present as part of your kernel
> distribution. If not found you can get it by installing
> linux-image-extra--generic package.
>
> We want vpp with dpdk plugin. I've just installed vpp using apt-get
> following the steps on this link :
> https://wiki.fd.io/view/VPP/Installing_VPP_binaries_from_packages.
> Does DPDK have to be spearely installed to be able to use the dpdk plugin?
> >>  No, when you compile vpp it creates dpdk_plugin.so which gets loaded
> if you have specified the plugin_path in startup.conf
>
> Hope this helps.
>
> Avinash
>
>
>
>
> On Thu, Sep 6, 2018 at 1:05 AM, Arijit Pramanik 
> wrote:
>
>> Hi Marco,
>>
>> Thanks a lot for your prompt reply and assistance.
>>
>> We are using Intel X540 NIC.
>>
>> I'll try with one of them. Which one do you think is best suited for my
>> NIC, How do I ensure that the driver module is loaded in the kernel
>> beforehand?
>>
>> We want vpp with dpdk plugin. I've just installed vpp using apt-get
>> following the steps on this link :
>> https://wiki.fd.io/view/VPP/Installing_VPP_binaries_from_packages.
>> Does DPDK have to be spearely installed to be able to use the dpdk plugin?
>>
>> Thanks a lot,
>> Arijit.
>>
>>
>>
>> On Wed, Sep 5, 2018 at 8:30 PM Marco Varlese  wrote:
>>
>>> Arijit,
>>>
>>> Few questions:
>>> 1) What NIC is your 10G NIC?
>>> 2) Your configuration is wrong:
>>> ixgbe is not a uio-driver... you should choose between vfio-pci,
>>> uio-pci-generic or igb_uio (and make sure to have that driver module loaded
>>> in the kernel beforehand).
>>> 3) I assume you're trying to use VPP with DPDK plugin enabled. Can you
>>> confirm?
>>>
>>>
>>> - Marco
>>>
>>> On Wed, 2018-09-05 at 23:18 +0530, Arijit Pramanik wrote:
>>>
>>> ng VPP with DPDK on our intel Xeon 24 core server. We have installed VPP
>>> and our 1G card was visible when
>>> $ sudo vppctl show interface
>>>
>>> --
>>>
>>> Marco V
>>>
>>> SUSE LINUX GmbH | GF: Felix Imendörffer, Jane Smithard, Graham Norton
>>> HRB 21284 (AG Nürnberg) Maxfeldstr. 5, D-90409, Nürnberg
>>>
>>
>>
>>
>> On Wed, Sep 5, 2018 at 8:30 PM Marco Varlese  wrote:
>>
>>> Arijit,
>>>
>>> Few questions:
>>> 1) What NIC is your 10G NIC?
>>> 2) Your configuration is wrong:
>>> ixgbe is not a uio-driver... you should choose between vfio-pci,
>>> uio-pci-generic or igb_uio (and make sure to have that driver module loaded
>>> in the kernel beforehand).
>>> 3) I assume you're trying to use VPP with DPDK plugin enabled. Can you
>>> confirm?
>>>
>>>
>>> - Marco
>>>
>>> On Wed, 2018-09-05 at 23:18 +0530, Arijit Pramanik wrote:
>>>
>>> ng VPP with DPDK on our intel Xeon 24 core server. We have installed VPP
>>> and our 1G card was visible when
>>> $ sudo vppctl show interface
>>>
>>> --
>>>
>>> Marco V
>>>
>>> SUSE LINUX GmbH | GF: Felix Imendörffer, Jane Smithard, Graham Norton
>>> HRB 21284 (AG Nürnberg) Maxfeldstr. 5, D-90409, Nürnberg
>>>
>>
>> -=-=-=-=-=-=-=-=-=-=-=-
>> Links: You receive all messages sent to this group.
>>
>> View/Reply Online (#10388): https://lists.fd.io/g/vpp-dev/message/10388
>> Mute This Topic: https://lists.fd.io/mt/25209728/675719
>> Group Owner: vpp-dev+ow...@lists.fd.io
>> Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub  [
>> mailbox.avin...@gmail.com]
>> -=-=-=-=-=-=-=-=-=-=-=-
>>
>>
>
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.


Re: [vpp-dev] Issue in adding 10 G NIC to VPP

2018-09-06 Thread ppnaik

Hi Avinash,

These are the following outputs:

cat /proc/meminfo | grep -i huge

AnonHugePages: 0 kB
ShmemHugePages:0 kB
HugePages_Total:4096
HugePages_Free:  524
HugePages_Rsvd:0
HugePages_Surp:0
Hugepagesize:   2048 kB

free -h
  totalusedfree  shared  buff/cache   
available
Mem:   125G8.3G116G 19M566M 
  116G

Swap:  976M  0B976M


cat /etc/default/grub

# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
#   info -f grub -n 'Simple configuration'

GRUB_DEFAULT=0
GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""

# Uncomment to enable BadRAM filtering, modify to suit your needs
# This works with Linux (no patch required) and with any kernel that 
obtains
# the memory map information from GRUB (GNU Mach, kernel of FreeBSD 
...)

#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"

# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=console

# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via 
VBE

# you can see them in real GRUB with the command `vbeinfo'
#GRUB_GFXMODE=640x480

# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to 
Linux

#GRUB_DISABLE_LINUX_UUID=true

# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_RECOVERY="true"

# Uncomment to get a beep at grub start
#GRUB_INIT_TUNE="480 440 1"

Thanks,
Priyanka

On 2018-09-06 11:23, Avinash Dhar Dubey wrote:

Arijit,

Share the output of "cat /proc/meminfo | grep -i huge" and "free -h".
You are using 1GB hugepages and you have not configured them.
Better use 2MB hugepages if you are running vpp just for learning.

Also share the contents of "/etc/default/grub". Looks like you have 
set 1GB

as default hugepage size.

Regards,
Avinash

On Thu, Sep 6, 2018 at 4:41 PM, Arijit Pramanik  
wrote:


I have added the plugin path  as /usr/lib/vpp/vpp_plugins and 
enabled only

dpdk_plugin.so

But I'm getting the error currently as

Sep 06 16:30:54 turing-04 vpp[2339]: EAL: No free hugepages reported 
in

hugepages-1048576kB
Sep 06 16:30:54 turing-04 vpp[2339]: EAL: VFIO support initialized
Sep 06 16:30:54 turing-04 vnet[2339]: EAL: VFIO support initialized
Sep 06 16:30:54 turing-04 vpp[2339]: EAL: Requested device 
:81:00.1

cannot be used
Sep 06 16:30:54 turing-04 vnet[2339]: EAL: Requested device 
:81:00.1

cannot be used
Sep 06 16:30:55 turing-04 vnet[2339]: dpdk_pool_create:550:
ioctl(VFIO_IOMMU_MAP_DMA) pool 'dpdk_mbuf_pool_socket0': Invalid 
argument

(errno 22)
Sep 06 16:30:55 turing-04 vnet[2339]: dpdk_pool_create: failed to 
create

dpdk_mbuf_pool_socket1
Sep 06 16:30:55 turing-04 vnet[2339]: dpdk_buffer_pool_create:616:
WARNING: Failed to allocate mempool for CPU socket 1. Threads 
running on

socket 1 will use socket 0 mempool.
Sep 06 16:30:55 turing-04 vnet[2339]: dpdk_ipsec_process:1018: not 
enough

DPDK crypto resources, default to OpenSSL
Sep 06 16:30:55 turing-04 vnet[2339]: dpdk_lib_init:230: DPDK 
drivers

found no ports...

Thanks,
Arijit.


On Thu, Sep 6, 2018 at 9:44 AM Avinash Dhar Dubey <
mailbox.avin...@gmail.com> wrote:


Arijit,

We are using Intel X540 NIC.
>>  Intel X540 NIC  is supported by DPDK.

I'll try with one of them. Which one do you think is best suited 
for my

NIC, How do I ensure that the driver module is loaded in the kernel
beforehand?
>>  You can use uio_pci_generic driver. To ensure that the driver 
is
loaded before you start vpp, you can run "modprobe 
uio_pci_generic". It

will load the driver if its already present as part of your kernel
distribution. If not found you can get it by installing
linux-image-extra--generic package.

We want vpp with dpdk plugin. I've just installed vpp using apt-get
following the steps on this link : https://wiki.fd.io/view/VPP/
Installing_VPP_binaries_from_packages.
Does DPDK have to be spearely installed to be able to use the dpdk 
plugin?
>>  No, when you compile vpp it creates dpdk_plugin.so which gets 
loaded

if you have specified the plugin_path in startup.conf

Hope this helps.

Avinash




On Thu, Sep 6, 2018 at 1:05 AM, Arijit Pramanik 


wrote:


Hi Marco,

Thanks a lot for your prompt reply and assistance.

We are using Intel X540 NIC.

I'll try with one of them. Which one do you think is best suited 
for my
NIC, How do I ensure that the driver module is loaded in the 
kernel

beforehand?

We want vpp with dpdk plugin. I've just installed vpp using 
apt-get

following the steps on this link : https://wiki.fd.io/view/VPP/
Installing_VPP_binaries_from_packages.
Does DPDK have to be spearely installed to be able to use the dpdk
plugin?

Thanks 

Re: [vpp-dev] Issue in adding 10 G NIC to VPP

2018-09-06 Thread ppnaik


Hi Marco,

The NIC is binded to DPDK driver: devbing.py output:

Network devices using DPDK-compatible driver

:01:00.1 'I350 Gigabit Network Connection 1521' drv=uio_pci_generic 
unused=vfio-pci
:81:00.0 'Ethernet Controller 10-Gigabit X540-AT2 1528' 
drv=uio_pci_generic unused=vfio-pci
:81:00.1 'Ethernet Controller 10-Gigabit X540-AT2 1528' 
drv=uio_pci_generic unused=vfio-pci


Network devices using kernel driver
===
:01:00.0 'I350 Gigabit Network Connection 1521' if=enp1s0f0 drv=igb 
unused=vfio-pci,uio_pci_generic *Active*


Other Network devices
=


Crypto devices using DPDK-compatible driver
===


Crypto devices using kernel driver
==


Other Crypto devices



Eventdev devices using DPDK-compatible driver
=


Eventdev devices using kernel driver



Other Eventdev devices
==


Mempool devices using DPDK-compatible driver



Thanks,
Priyanka


On 2018-09-06 12:56, Marco Varlese wrote:

On Thu, 2018-09-06 at 11:23 +0530, Avinash Dhar Dubey wrote:

Arijit,
Share the output of "cat /proc/meminfo | grep -i huge" and "free 
-h".

You are using 1GB hugepages and you have not configured them.
Better use 2MB hugepages if you are running vpp just for learning.

Also share the contents of "/etc/default/grub". Looks like you have 
set 1GB as

default hugepage size.
Actually the output log is the complete opposite!!!That log is simply 
stating
that you have _NOT_ reserved 1GB hugepages but rather the 2MB ones. 
See below

for the actual "problem"...

Regards,
Avinash

On Thu, Sep 6, 2018 at 4:41 PM, Arijit Pramanik 
 wrote:
> I have added the plugin path  as /usr/lib/vpp/vpp_plugins and 
enabled only

> dpdk_plugin.so
>
> But I'm getting the error currently as
>
> Sep 06 16:30:54 turing-04 vpp[2339]: EAL: No free hugepages 
reported in

> hugepages-1048576kB
> Sep 06 16:30:54 turing-04 vpp[2339]: EAL: VFIO support initialized
> Sep 06 16:30:54 turing-04 vnet[2339]: EAL: VFIO support 
initialized
> Sep 06 16:30:54 turing-04 vpp[2339]: EAL: Requested device 
:81:00.1

> cannot be used
> Sep 06 16:30:54 turing-04 vnet[2339]: EAL: Requested device 
:81:00.1

> cannot be used
> Sep 06 16:30:55 turing-04 vnet[2339]: dpdk_pool_create:550:
> ioctl(VFIO_IOMMU_MAP_DMA) pool 'dpdk_mbuf_pool_socket0': Invalid 
argument

> (errno 22)
> Sep 06 16:30:55 turing-04 vnet[2339]: dpdk_pool_create: failed to 
create

> dpdk_mbuf_pool_socket1
> Sep 06 16:30:55 turing-04 vnet[2339]: dpdk_buffer_pool_create:616: 
WARNING:
> Failed to allocate mempool for CPU socket 1. Threads running on 
socket 1

> will use socket 0 mempool.
I suppose you're running on a NUMA machine? Apparently the hugepages 
allocation
has run out on one of the two socket and it's _warning_ you that 
memory will be
taken from the other one. It's warning you because it's a performance 
hit to
access remote-node memory...Again this is a _warning_ not an error. 
Having said
all that, why don't you follow this page (DPDK) on how to reserve 
hugepages for
NUMA 
machines?https://doc.dpdk.org/guides/linux_gsg/sys_reqs.htmlSomething

like:echo 1024 >

/sys/devices/system/node/node0/hugepages/hugepages-2048kB/nr_hugepages
echo 1024 > /sys/devices/system/node/node1/hugepages/hugepages-
2048kB/nr_hugepages
> Sep 06 16:30:55 turing-04 vnet[2339]: dpdk_ipsec_process:1018: not 
enough

> DPDK crypto resources, default to OpenSSL
> Sep 06 16:30:55 turing-04 vnet[2339]: dpdk_lib_init:230: DPDK 
drivers found

> no ports...
You have not binded any port to be used by DPDK... again, take a look 
at this

webpagehttps://doc.dpdk.org/guides/tools/devbind.htmlSomething like
dpdk-devbind
--bind=vfio-pci PCI_BAR_ADDRESSwill map your port (identified by
PCI_BAR_ADDRESS) to the vfio-pci driver.

> Thanks,
> Arijit.

- Marco

>
> On Thu, Sep 6, 2018 at 9:44 AM Avinash Dhar Dubey 

> > wrote:
> > Arijit,
> >
> >
> > We are using Intel X540 NIC.
> > >>  Intel X540 NIC  is supported by DPDK.
> >
> >
> >
> > I'll try with one of them. Which one do you think is best suited 
for my
> > NIC, How do I ensure that the driver module is loaded in the 
kernel

> > beforehand?
> > >>
> >
> >  You can use uio_pci_generic driver. To ensure that the driver 
is loaded
> > before you start vpp, you can run "modprobe uio_pci_generic". It 
will load
> > the driver if its already present as part of your kernel 
distribution. If
> > not found you can get it by installing 
linux-image-extra--

> > generic package.
> >
> >
> >
> > We want vpp with dpdk plugin. I've just installed vpp using 
apt-get

> > following the steps on this link :
> > 
https://wiki.fd.io/view/VPP/Installing_VPP_binaries_from_packages.
> > Does DPDK have to be spearely installed to be able to 

[vpp-dev] Pager Buffer limit

2018-09-06 Thread siddarth rai
Hi,

I am working on creating a VPP cli which dumps a lot of info.

Is there any limitation to the number of lines we can print in a paged
format using vlib_cli_output ? I am not able to print more than 100K lines.

Beyond that i get the error "-- pager buffer overflowed --" .
Also, how do I modify this limit ?

Thanks & Regards,
Siddarth
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#10402): https://lists.fd.io/g/vpp-dev/message/10402
Mute This Topic: https://lists.fd.io/mt/25236542/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] Cavium ThunderX (ARM64) - Crash in VPP (Kubernetes + Contiv-VPP network plugin)

2018-09-06 Thread Stanislav Chlebec
Thans for advice.
Here is the result:
https://gist.github.com/stanislav-chlebec/7466935c41b60eb23ea711f6a4fcafeb

Stan
From: Neale Ranns (nranns) [mailto:nra...@cisco.com]
Sent: Wednesday, September 5, 2018 1:58 PM
To: Stanislav Chlebec ; vpp-dev@lists.fd.io
Subject: Re: [vpp-dev] Cavium ThunderX (ARM64) - Crash in VPP (Kubernetes + 
Contiv-VPP network plugin)

On the exact same version of VPP that produced the crash do:
  api trace custom-dump /path/to/trace/flie.txt

/neale


From: Stanislav Chlebec 
mailto:stanislav.chle...@pantheon.tech>>
Date: Wednesday, 5 September 2018 at 13:24
To: "Neale Ranns (nranns)" mailto:nra...@cisco.com>>, 
"vpp-dev@lists.fd.io" 
mailto:vpp-dev@lists.fd.io>>
Subject: RE: [vpp-dev] Cavium ThunderX (ARM64) - Crash in VPP (Kubernetes + 
Contiv-VPP network plugin)

Hi Neale
Could you please describe, how to do it?
Thanks
Stan

From: Neale Ranns (nranns) [mailto:nra...@cisco.com]
Sent: Tuesday, September 4, 2018 3:27 PM
To: Stanislav Chlebec 
mailto:stanislav.chle...@pantheon.tech>>; 
vpp-dev@lists.fd.io
Subject: Re: [vpp-dev] Cavium ThunderX (ARM64) - Crash in VPP (Kubernetes + 
Contiv-VPP network plugin)

Hi Stan,

Unfortunately I don’t have an ARM machine on to decode the post-mortem data. 
Could you do this?

Thanks,
Neale


From: Stanislav Chlebec 
mailto:stanislav.chle...@pantheon.tech>>
Date: Tuesday, 4 September 2018 at 11:06
To: Stanislav Chlebec 
mailto:stanislav.chle...@pantheon.tech>>, 
"Neale Ranns (nranns)" mailto:nra...@cisco.com>>, 
"vpp-dev@lists.fd.io" 
mailto:vpp-dev@lists.fd.io>>
Subject: RE: [vpp-dev] Cavium ThunderX (ARM64) - Crash in VPP (Kubernetes + 
Contiv-VPP network plugin)

Hi Neale
Have you had the occasion to look at that api_post_mortem data?
Have you found the reason of crash?
Thanks
Stan


From: Stanislav Chlebec [mailto:stanislav.chle...@pantheon.tech]
Sent: Wednesday, August 22, 2018 3:39 PM
To: Neale Ranns (nranns) mailto:nra...@cisco.com>>; 
vpp-dev@lists.fd.io
Subject: Re: [vpp-dev] Cavium ThunderX (ARM64) - Crash in VPP (Kubernetes + 
Contiv-VPP network plugin)

Hi Neale
I attached the file api_post_mortem.43407
to the  issue https://jira.fd.io/browse/VPP-1394
Thanks
Stan

From: Neale Ranns (nranns) [mailto:nra...@cisco.com]
Sent: Tuesday, August 21, 2018 5:02 PM
To: Stanislav Chlebec 
mailto:stanislav.chle...@pantheon.tech>>; 
Nitin Saxena mailto:nitin.sax...@cavium.com>>; 
vpp-dev@lists.fd.io
Subject: Re: [vpp-dev] Cavium ThunderX (ARM64) - Crash in VPP (Kubernetes + 
Contiv-VPP network plugin)

Hi Stan,

What route were you adding at the time? Can you give me the post-mortem API 
dump [1]

/neale

[1] see https://wiki.fd.io/view/VPP/BugReports


From: mailto:vpp-dev@lists.fd.io>> on behalf of Stanislav 
Chlebec 
mailto:stanislav.chle...@pantheon.tech>>
Date: Tuesday, 21 August 2018 at 16:41
To: Nitin Saxena mailto:nitin.sax...@cavium.com>>, 
"vpp-dev@lists.fd.io" 
mailto:vpp-dev@lists.fd.io>>
Subject: [vpp-dev] Cavium ThunderX (ARM64) - Crash in VPP (Kubernetes + 
Contiv-VPP network plugin)

Hello all

Could you please help mi with this issue:
https://jira.fd.io/browse/VPP-1394

Thanks.
Stan
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#10401): https://lists.fd.io/g/vpp-dev/message/10401
Mute This Topic: https://lists.fd.io/mt/24876710/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] Using VPP in Openstack VMs

2018-09-06 Thread Marco Varlese
Pedro,

On Thu, 2018-09-06 at 10:15 +0200, Pedro A. Aranda wrote:
> Dear all,
> I’m trying to setup a VM in OpenStack to run VPP based apps. I intend to use
> ubuntu-xenial or ubuntu-bionic.
> What ‘extra’ features do I need to activate? How do I tell OpenStack to
> activate them?
Take a look at this https://github.com/openstack/networking-
vpp/blob/master/README.rst


Thanks a lot, /PA
—
PEDRO ANDRES ARANDA GUTIERREZ
para...@it.uc3m.es

Fragen sind nicht da um beantwortet zu werden…
Fragen sind da, um gestellt zu werden.
Georg Kreisler

> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> 
> View/Reply Online (#10399): https://lists.fd.io/g/vpp-dev/message/10399
> Mute This Topic: https://lists.fd.io/mt/25235841/675056
> Group Owner: vpp-dev+ow...@lists.fd.io
> Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub  [mvarl...@suse.de]
> -=-=-=-=-=-=-=-=-=-=-=-
> 
-- 
Marco V


SUSE LINUX GmbH | GF: Felix Imendörffer, Jane Smithard, Graham Norton
HRB 21284 (AG Nürnberg) Maxfeldstr. 5, D-90409, Nürnberg
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

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


[vpp-dev] Using VPP in Openstack VMs

2018-09-06 Thread Pedro A. Aranda
Dear all,

I’m trying to setup a VM in OpenStack to run VPP based apps. I intend to use 
ubuntu-xenial or ubuntu-bionic.
What ‘extra’ features do I need to activate? How do I tell OpenStack to 
activate them?

Thanks a lot, /PA
—
PEDRO ANDRES ARANDA GUTIERREZ
para...@it.uc3m.es

Fragen sind nicht da um beantwortet zu werden…
Fragen sind da, um gestellt zu werden.
Georg Kreisler

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#10399): https://lists.fd.io/g/vpp-dev/message/10399
Mute This Topic: https://lists.fd.io/mt/25235841/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] Issue in adding 10 G NIC to VPP

2018-09-06 Thread Marco Varlese
Priyanka,

Please, make sure you have "intel_iommu=on" and "iommu=pt" in your boot grub
configuration.

Also, if you're using (as I presume but you didn't confirmed) a NUMA machine,
remove any configuration about hugepages from the boot grub configuration and
follow the instructions I gave you earlier.

Then, reboot your machine and do not use uio_pci_generic but rather vfio-pci
(edit the startup.conf: change the uio_driver used and modprobe vfio-pci instead
of uio_pci_generic).

Also, please, if things still do not work share:
1) VPP version
2) Content of "startup.conf"
3) Output of "cat /proc/cmdline"

On Thu, 2018-09-06 at 13:12 +0530, ppnaik wrote:
> Hi Marco,
> 
> The NIC is binded to DPDK driver: devbing.py output:
> 
> Network devices using DPDK-compatible driver
> 
> :01:00.1 'I350 Gigabit Network Connection 1521' drv=uio_pci_generic 
> unused=vfio-pci
> :81:00.0 'Ethernet Controller 10-Gigabit X540-AT2 1528' 
> drv=uio_pci_generic unused=vfio-pci
> :81:00.1 'Ethernet Controller 10-Gigabit X540-AT2 1528' 
> drv=uio_pci_generic unused=vfio-pci
> 
> Network devices using kernel driver
> ===
> :01:00.0 'I350 Gigabit Network Connection 1521' if=enp1s0f0 drv=igb 
> unused=vfio-pci,uio_pci_generic *Active*
> 
> Other Network devices
> =
> 
> 
> Crypto devices using DPDK-compatible driver
> ===
> 
> 
> Crypto devices using kernel driver
> ==
> 
> 
> Other Crypto devices
> 
> 
> 
> Eventdev devices using DPDK-compatible driver
> =
> 
> 
> Eventdev devices using kernel driver
> 
> 
> 
> Other Eventdev devices
> ==
> 
> 
> Mempool devices using DPDK-compatible driver
> 
> 
> 
> Thanks,
> Priyanka
> 
> 
> On 2018-09-06 12:56, Marco Varlese wrote:
> > On Thu, 2018-09-06 at 11:23 +0530, Avinash Dhar Dubey wrote:
> > > Arijit,
> > > Share the output of "cat /proc/meminfo | grep -i huge" and "free 
> > > -h".
> > > You are using 1GB hugepages and you have not configured them.
> > > Better use 2MB hugepages if you are running vpp just for learning.
> > > 
> > > Also share the contents of "/etc/default/grub". Looks like you have 
> > > set 1GB as
> > > default hugepage size.
> > 
> > Actually the output log is the complete opposite!!!That log is simply 
> > stating
> > that you have _NOT_ reserved 1GB hugepages but rather the 2MB ones. 
> > See below
> > for the actual "problem"...
> > > Regards,
> > > Avinash
> > > 
> > > On Thu, Sep 6, 2018 at 4:41 PM, Arijit Pramanik 
> > >  wrote:
> > > > I have added the plugin path  as /usr/lib/vpp/vpp_plugins and 
> > > 
> > > enabled only
> > > > dpdk_plugin.so
> > > > 
> > > > But I'm getting the error currently as
> > > > 
> > > > Sep 06 16:30:54 turing-04 vpp[2339]: EAL: No free hugepages 
> > > 
> > > reported in
> > > > hugepages-1048576kB
> > > > Sep 06 16:30:54 turing-04 vpp[2339]: EAL: VFIO support initialized
> > > > Sep 06 16:30:54 turing-04 vnet[2339]: EAL: VFIO support 
> > > 
> > > initialized
> > > > Sep 06 16:30:54 turing-04 vpp[2339]: EAL: Requested device 
> > > 
> > > :81:00.1
> > > > cannot be used
> > > > Sep 06 16:30:54 turing-04 vnet[2339]: EAL: Requested device 
> > > 
> > > :81:00.1
> > > > cannot be used
> > > > Sep 06 16:30:55 turing-04 vnet[2339]: dpdk_pool_create:550:
> > > > ioctl(VFIO_IOMMU_MAP_DMA) pool 'dpdk_mbuf_pool_socket0': Invalid 
> > > 
> > > argument
> > > > (errno 22)
> > > > Sep 06 16:30:55 turing-04 vnet[2339]: dpdk_pool_create: failed to 
> > > 
> > > create
> > > > dpdk_mbuf_pool_socket1
> > > > Sep 06 16:30:55 turing-04 vnet[2339]: dpdk_buffer_pool_create:616: 
> > > 
> > > WARNING:
> > > > Failed to allocate mempool for CPU socket 1. Threads running on 
> > > 
> > > socket 1
> > > > will use socket 0 mempool.
> > 
> > I suppose you're running on a NUMA machine? Apparently the hugepages 
> > allocation
> > has run out on one of the two socket and it's _warning_ you that 
> > memory will be
> > taken from the other one. It's warning you because it's a performance 
> > hit to
> > access remote-node memory...Again this is a _warning_ not an error. 
> > Having said
> > all that, why don't you follow this page (DPDK) on how to reserve 
> > hugepages for
> > NUMA 
> > machines?https://doc.dpdk.org/guides/linux_gsg/sys_reqs.htmlSomething
> > like:echo 1024 >
> > 
> > /sys/devices/system/node/node0/hugepages/hugepages-2048kB/nr_hugepages
> > echo 1024 > /sys/devices/system/node/node1/hugepages/hugepages-
> > 2048kB/nr_hugepages
> > > > Sep 06 16:30:55 turing-04 vnet[2339]: dpdk_ipsec_process:1018: not 
> > > 
> > > enough
> > > > DPDK crypto resources, default to OpenSSL
> > > > Sep 06 16:30:55 turing-04 vnet[2339]: dpdk_lib_init:230: DPDK 
> > > 
> > > drivers found
> > > > no ports...

Re: [vpp-dev] 18.07.1 dot release

2018-09-06 Thread Marco Varlese
Cool... thanks!
On Wed, 2018-09-05 at 11:00 -0700, Gonsalves, Avinash (Nokia - IN/Bangalore)
wrote:
> Done. Added feature Multi-Core Crypto Dev support for VPP for Release 18.10
> -=-=-=-=-=-=-=-=-=-=-=-Links: You receive all messages sent to this group.
> View/Reply Online (#10386): https://lists.fd.io/g/vpp-dev/message/10386Mute
> This Topic: https://lists.fd.io/mt/25177447/675056Group Owner: vpp-
> dev+ow...@lists.fd.ioUnsubscribe: https://lists.fd.io/g/vpp-dev/unsubb  [mvarl
> e...@suse.de]-=-=-=-=-=-=-=-=-=-=-=-
-- 
Marco V


SUSE LINUX GmbH | GF: Felix Imendörffer, Jane Smithard, Graham Norton
HRB 21284 (AG Nürnberg) Maxfeldstr. 5, D-90409, Nürnberg
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#10397): https://lists.fd.io/g/vpp-dev/message/10397
Mute This Topic: https://lists.fd.io/mt/25177447/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] Move NSH plugin to VPP project as a separate plugin

2018-09-06 Thread Ni, Hongjun
Hi Srikanth,

We have no plan to support it yet.

If you require this, could you help to develop this feature and upstream to VPP?
Since NSH plugin has been moved to VPP main repo.

Thanks,
Hongjun

From: Srikanth Akula [mailto:srikanth...@gmail.com]
Sent: Thursday, September 6, 2018 3:41 AM
To: Ni, Hongjun 
Cc: nsh_sfc-...@lists.fd.io; hc2...@lists.fd.io; Edward Warnicke 
; Kinsella, Ray 
Subject: Re: [nsh_sfc-dev] Plan to move NSH plugin to VPP project as a separate 
plugin

Hi Hongjun ,

As part of our requirement we are trying to use UDP as a transport layer inline 
with
https://tools.ietf.org/pdf/draft-kumar-sfc-nsh-udp-transport-00.pdf
is there any plan / roadmap to support this ?

Regards,
Srikanth



On Mon, Aug 27, 2018 at 10:02 AM Srikanth Akula 
mailto:srikanth...@gmail.com>> wrote:
Hi Hongjun,

Do you plan to add any other functionality on top of existing of the one 
currently available in 1807 ?

_Srikanth_




On Sun, Aug 26, 2018 at 7:43 PM Ni, Hongjun 
mailto:hongjun...@intel.com>> wrote:
Hi all,

As discussed with Ed Warnicke and Ray, we plan to move NSH plugin to VPP 
project as a separate plugin.

This will help to make the maintenance easier, attract more users, and also 
make them adopt NSH plugin more comfortably.

I will start by porting task, hoping that it will be merged in 18.10 Release.

Thanks,
Hongjun
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#640): https://lists.fd.io/g/nsh_sfc-dev/message/640
Mute This Topic: https://lists.fd.io/mt/24970087/675463
Group Owner: 
nsh_sfc-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/nsh_sfc-dev/unsub  
[srikanth...@gmail.com]
-=-=-=-=-=-=-=-=-=-=-=-
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#10396): https://lists.fd.io/g/vpp-dev/message/10396
Mute This Topic: https://lists.fd.io/mt/25235642/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] Issue in adding 10 G NIC to VPP

2018-09-06 Thread Marco Varlese
On Thu, 2018-09-06 at 01:05 +0530, Arijit Pramanik wrote:
> 
> Hi Marco,
> Thanks a lot for your prompt reply and assistance.
> 
> We are using Intel X540 NIC. 
> 
> I'll try with one of them. Which one do you think is best suited for my NIC,
> How do I ensure that the driver module is loaded in the kernel beforehand?
Like any other kernel drivers "modprobe vfio-pci"

We want vpp with dpdk plugin. I've just installed vpp using apt-get following 
the steps on this link : 
https://wiki.fd.io/view/VPP/Installing_VPP_binaries_from_packages.
Does DPDK have to be spearely installed to be able to use the dpdk plugin?

Thanks a lot,
Arijit.



On Wed, Sep 5, 2018 at 8:30 PM Marco Varlese  wrote:
Arijit,

Few questions:
1) What NIC is your 10G NIC?
2) Your configuration is wrong:
ixgbe is not a uio-driver... you should choose between vfio-pci, 
uio-pci-generic or igb_uio (and make sure to have that driver module loaded in 
the kernel beforehand).
3) I assume you're trying to use VPP with DPDK plugin enabled. Can you confirm?


- Marco

On Wed, 2018-09-05 at 23:18 +0530, Arijit Pramanik wrote:
ng VPP with DPDK on our intel Xeon 24 core server. We have installed VPP and 
our 1G card was visible when 
$ sudo vppctl show interface
-- 
Marco V

SUSE LINUX GmbH | GF: Felix Imendörffer, Jane Smithard, Graham Norton
HRB 21284 (AG Nürnberg) Maxfeldstr. 5, D-90409, Nürnberg



On Wed, Sep 5, 2018 at 8:30 PM Marco Varlese  wrote:
Arijit,

Few questions:
1) What NIC is your 10G NIC?
2) Your configuration is wrong:
ixgbe is not a uio-driver... you should choose between vfio-pci, 
uio-pci-generic or igb_uio (and make sure to have that driver module loaded in 
the kernel beforehand).
3) I assume you're trying to use VPP with DPDK plugin enabled. Can you confirm?


- Marco

On Wed, 2018-09-05 at 23:18 +0530, Arijit Pramanik wrote:
ng VPP with DPDK on our intel Xeon 24 core server. We have installed VPP and 
our 1G card was visible when 
$ sudo vppctl show interface 
-- 
Marco V

SUSE LINUX GmbH | GF: Felix Imendörffer, Jane Smithard, Graham Norton
HRB 21284 (AG Nürnberg) Maxfeldstr. 5, D-90409, Nürnberg
-- 
Marco V


SUSE LINUX GmbH | GF: Felix Imendörffer, Jane Smithard, Graham Norton
HRB 21284 (AG Nürnberg) Maxfeldstr. 5, D-90409, Nürnberg
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#10395): https://lists.fd.io/g/vpp-dev/message/10395
Mute This Topic: https://lists.fd.io/mt/25209728/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] Issue in adding 10 G NIC to VPP

2018-09-06 Thread Marco Varlese
On Thu, 2018-09-06 at 11:23 +0530, Avinash Dhar Dubey wrote:
> Arijit,
> Share the output of "cat /proc/meminfo | grep -i huge" and "free -h".
> You are using 1GB hugepages and you have not configured them.
> Better use 2MB hugepages if you are running vpp just for learning.
> 
> Also share the contents of "/etc/default/grub". Looks like you have set 1GB as
> default hugepage size.
Actually the output log is the complete opposite!!!That log is simply stating
that you have _NOT_ reserved 1GB hugepages but rather the 2MB ones. See below
for the actual "problem"...
> Regards,
> Avinash  
> 
> On Thu, Sep 6, 2018 at 4:41 PM, Arijit Pramanik  wrote:
> > I have added the plugin path  as /usr/lib/vpp/vpp_plugins and enabled only
> > dpdk_plugin.so
> > 
> > But I'm getting the error currently as 
> > 
> > Sep 06 16:30:54 turing-04 vpp[2339]: EAL: No free hugepages reported in
> > hugepages-1048576kB
> > Sep 06 16:30:54 turing-04 vpp[2339]: EAL: VFIO support initialized
> > Sep 06 16:30:54 turing-04 vnet[2339]: EAL: VFIO support initialized
> > Sep 06 16:30:54 turing-04 vpp[2339]: EAL: Requested device :81:00.1
> > cannot be used
> > Sep 06 16:30:54 turing-04 vnet[2339]: EAL: Requested device :81:00.1
> > cannot be used
> > Sep 06 16:30:55 turing-04 vnet[2339]: dpdk_pool_create:550:
> > ioctl(VFIO_IOMMU_MAP_DMA) pool 'dpdk_mbuf_pool_socket0': Invalid argument
> > (errno 22)
> > Sep 06 16:30:55 turing-04 vnet[2339]: dpdk_pool_create: failed to create
> > dpdk_mbuf_pool_socket1
> > Sep 06 16:30:55 turing-04 vnet[2339]: dpdk_buffer_pool_create:616: WARNING:
> > Failed to allocate mempool for CPU socket 1. Threads running on socket 1
> > will use socket 0 mempool.
I suppose you're running on a NUMA machine? Apparently the hugepages allocation
has run out on one of the two socket and it's _warning_ you that memory will be
taken from the other one. It's warning you because it's a performance hit to
access remote-node memory...Again this is a _warning_ not an error. Having said
all that, why don't you follow this page (DPDK) on how to reserve hugepages for
NUMA machines?https://doc.dpdk.org/guides/linux_gsg/sys_reqs.htmlSomething
like:echo 1024 > 
/sys/devices/system/node/node0/hugepages/hugepages-2048kB/nr_hugepages
echo 1024 > /sys/devices/system/node/node1/hugepages/hugepages-
2048kB/nr_hugepages
> > Sep 06 16:30:55 turing-04 vnet[2339]: dpdk_ipsec_process:1018: not enough
> > DPDK crypto resources, default to OpenSSL
> > Sep 06 16:30:55 turing-04 vnet[2339]: dpdk_lib_init:230: DPDK drivers found
> > no ports...
You have not binded any port to be used by DPDK... again, take a look at this
webpagehttps://doc.dpdk.org/guides/tools/devbind.htmlSomething like 
dpdk-devbind 
--bind=vfio-pci PCI_BAR_ADDRESSwill map your port (identified by
PCI_BAR_ADDRESS) to the vfio-pci driver.
> > Thanks,
> > Arijit.
- Marco
> > 
> > On Thu, Sep 6, 2018 at 9:44 AM Avinash Dhar Dubey  > > wrote:
> > > Arijit,
> > > 
> > > 
> > > We are using Intel X540 NIC. 
> > > >>  Intel X540 NIC  is supported by DPDK.
> > > 
> > > 
> > > 
> > > I'll try with one of them. Which one do you think is best suited for my
> > > NIC, How do I ensure that the driver module is loaded in the kernel
> > > beforehand?
> > > >>
> > > 
> > >  You can use uio_pci_generic driver. To ensure that the driver is loaded
> > > before you start vpp, you can run "modprobe uio_pci_generic". It will load
> > > the driver if its already present as part of your kernel distribution. If
> > > not found you can get it by installing linux-image-extra--
> > > generic package.
> > > 
> > > 
> > > 
> > > We want vpp with dpdk plugin. I've just installed vpp using apt-get
> > > following the steps on this link : 
> > > https://wiki.fd.io/view/VPP/Installing_VPP_binaries_from_packages.
> > > Does DPDK have to be spearely installed to be able to use the dpdk plugin?
> > > >>  No, when you compile vpp it creates dpdk_plugin.so which gets loaded
> > > if you have specified the plugin_path in startup.conf
> > > 
> > > Hope this helps.
> > > 
> > > Avinash 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > On Thu, Sep 6, 2018 at 1:05 AM, Arijit Pramanik 
> > > wrote:
> > > > Hi Marco,
> > > > Thanks a lot for your prompt reply and assistance.
> > > > 
> > > > We are using Intel X540 NIC. 
> > > > 
> > > > I'll try with one of them. Which one do you think is best suited for my
> > > > NIC, How do I ensure that the driver module is loaded in the kernel
> > > > beforehand?
> > > > 
> > > > We want vpp with dpdk plugin. I've just installed vpp using apt-get
> > > > following the steps on this link : 
> > > > https://wiki.fd.io/view/VPP/Installing_VPP_binaries_from_packages.
> > > > Does DPDK have to be spearely installed to be able to use the dpdk
> > > > plugin?
> > > > 
> > > > Thanks a lot,
> > > > Arijit.
> > > > 
> > > > 
> > > > 
> > > > 
> > > > On Wed, Sep 5, 2018 at 8:30 PM Marco Varlese  wrote:
> > > > > Arijit,
> > > > > 
> > > > > Few questions:
> > > > > 1) What NIC is your 10G