[dpdk-dev] GitHub sandbox for the DPDK community

2015-05-01 Thread Aaro Koskinen
On Fri, May 01, 2015 at 12:49:51PM -0700, Matthew Hall wrote: > On Fri, May 01, 2015 at 11:09:14AM -0700, Stephen Hemminger wrote: > > With email, the patches are right in front of developers and easier to quote > > for review comments. > > Right in front of that subset of developers who do

[dpdk-dev] DPDK Community Call - Beyond DPDK 2.0

2015-05-01 Thread O'Driscoll, Tim
There's been a good discussion on the mailing list on the Beyond DPDK 2.0 thread. To supplement this, we'd like to have a community call for people to air their views, and to help progress things towards a conclusion. It'll be an open format, so people can bring up whatever issues they want,

[dpdk-dev] GitHub sandbox for the DPDK community

2015-05-01 Thread Aaro Koskinen
Hi, On Fri, May 01, 2015 at 12:45:12PM -0400, Neil Horman wrote: > > - GitHub manages the patches via pull requests and can be easily seen > > via a web browser. > > - The down side is you do have to use a web browser to do some work, but > > the bulk of the everyday work would be done as it

[dpdk-dev] GitHub sandbox for the DPDK community

2015-05-01 Thread Wiles, Keith
On 5/1/15, 1:48 PM, "Neil Horman" wrote: >On Fri, May 01, 2015 at 10:31:08AM -0700, Matthew Hall wrote: >> On Fri, May 01, 2015 at 12:45:12PM -0400, Neil Horman wrote: >> > Yes, but as you said above, using a web browser doesn't make >>reviewing patches >> > faster. In fact, I would assert

[dpdk-dev] DPDK Community Call - Beyond DPDK 2.0

2015-05-01 Thread Dave Neary
Hi Tim, When were you thinking of having the call? It's not been explicit, but can I assume that this call will also be promoted among potential supporters of the project who may not be on this list? I would be interested to get the perspective from the people who are perhaps not developers who

[dpdk-dev] GitHub sandbox for the DPDK community

2015-05-01 Thread Wiles, Keith
On 5/1/15, 1:09 PM, "Stephen Hemminger" wrote: >On Fri, 1 May 2015 15:56:32 + >"Wiles, Keith" wrote: > >> Hi Everyone, >> >> I believe the DPDK community would benefit from moving to GitHub as the >> primary DPDK site. http://github.com >> >> I believe the DPDK community can benefit

[dpdk-dev] GitHub sandbox for the DPDK community

2015-05-01 Thread Wiles, Keith
On 5/1/15, 11:45 AM, "Neil Horman" wrote: >On Fri, May 01, 2015 at 03:56:32PM +, Wiles, Keith wrote: >> Hi Everyone, >> >> I believe the DPDK community would benefit from moving to GitHub as the >> primary DPDK site. http://github.com >> >I'm not explicitly opposed to this, but I'm

[dpdk-dev] GitHub sandbox for the DPDK community

2015-05-01 Thread Wiles, Keith
On 5/1/15, 12:31 PM, "Matthew Hall" wrote: >Normally I'm a big command-line supporter. However I have found reviewing >patches by email for me is about the most painful workflow. > >The emails are pages and pages. > >The replies from commenters are buried in the walls of text. > >Replies to

[dpdk-dev] [RFC PATCH] librte_pmd_virtio: add support for PCI Port Hotplug

2015-05-01 Thread Bernard Iremonger
This patch depends on the Port Hotplug Framework. It implements the eth_dev_uninit_t() function for virtio pmd. Signed-off-by: Bernard Iremonger --- lib/librte_pmd_virtio/virtio_ethdev.c | 39 - 1 files changed, 38 insertions(+), 1 deletions(-) diff --git

[dpdk-dev] GitHub sandbox for the DPDK community

2015-05-01 Thread Wiles, Keith
Hi Everyone, I believe the DPDK community would benefit from moving to GitHub as the primary DPDK site. http://github.com I believe the DPDK community can benefit from being at a very well know world wide site. GitHub seems to have the most eyes of any of the open source Git repos today and it

[dpdk-dev] [RFC PATCH] librte_pmd_bond: add support for PCI Port Hotplug

2015-05-01 Thread Bernard Iremonger
This patch depends on the Port Hotplug Framework. It implements the rte_dev_uninit_t() function for the link bonding pmd. Signed-off-by: Bernard Iremonger --- lib/librte_pmd_bond/rte_eth_bond.h | 13 - lib/librte_pmd_bond/rte_eth_bond_api.c | 84

[dpdk-dev] GitHub sandbox for the DPDK community

2015-05-01 Thread Neil Horman
On Fri, May 01, 2015 at 10:31:08AM -0700, Matthew Hall wrote: > On Fri, May 01, 2015 at 12:45:12PM -0400, Neil Horman wrote: > > Yes, but as you said above, using a web browser doesn't make reviewing > > patches > > faster. In fact, I would assert that it slows the process down, as it > >

[dpdk-dev] GitHub sandbox for the DPDK community

2015-05-01 Thread Matthew Hall
On Fri, May 01, 2015 at 10:59:32PM +0300, Aaro Koskinen wrote: > Projects like GCC, GLIBC, binutils, busybox, etc or what? > > A. You'll notice all of these are low-level UNIX hacker sorts of tools mostly, with the partial exception of busybox. But even that is mainly for embedded use. It

[dpdk-dev] GitHub sandbox for the DPDK community

2015-05-01 Thread Matthew Hall
On Fri, May 01, 2015 at 11:09:14AM -0700, Stephen Hemminger wrote: > With email, the patches are right in front of developers and easier to quote > for review comments. Right in front of that subset of developers who do everything kernel-style, perhaps yes. But this sort of workflow is in the

[dpdk-dev] GitHub sandbox for the DPDK community

2015-05-01 Thread Neil Horman
On Fri, May 01, 2015 at 03:56:32PM +, Wiles, Keith wrote: > Hi Everyone, > > I believe the DPDK community would benefit from moving to GitHub as the > primary DPDK site. http://github.com > I'm not explicitly opposed to this, but I'm having trouble matching up the technical and governance

[dpdk-dev] [RFC PATCH] librte_pmd_bond: add support for PCI Port Hotplug

2015-05-01 Thread Neil Horman
On Fri, May 01, 2015 at 03:36:19PM +0100, Bernard Iremonger wrote: > This patch depends on the Port Hotplug Framework. > It implements the rte_dev_uninit_t() function for the link bonding pmd. > > Signed-off-by: Bernard Iremonger > --- > lib/librte_pmd_bond/rte_eth_bond.h | 13 - >

[dpdk-dev] GitHub sandbox for the DPDK community

2015-05-01 Thread Stephen Hemminger
On Fri, 1 May 2015 15:56:32 + "Wiles, Keith" wrote: > Hi Everyone, > > I believe the DPDK community would benefit from moving to GitHub as the > primary DPDK site. http://github.com > > I believe the DPDK community can benefit from being at a very well know > world wide site. GitHub seems

[dpdk-dev] GitHub sandbox for the DPDK community

2015-05-01 Thread Matthew Hall
On Fri, May 01, 2015 at 12:45:12PM -0400, Neil Horman wrote: > Yes, but as you said above, using a web browser doesn't make reviewing patches > faster. In fact, I would assert that it slows the process down, as it > prevents > quick, easy command line access to patch review (as you have with a

[dpdk-dev] NO_AUTOLIB is this variable really needed?

2015-05-01 Thread Bruce Richardson
On Thu, Apr 30, 2015 at 05:26:57PM +0100, Wiles, Keith wrote: > > > On 4/30/15, 11:24 AM, "Richardson, Bruce" > wrote: > > >On Thu, Apr 30, 2015 at 02:55:47PM +, Wiles, Keith wrote: > >> What is the NO_AUTOLIB variable used for anyway, the doc states this: > >> > >> > >> * NO_AUTOLIBS:

[dpdk-dev] [PATCH v4 1/2] Simplify the ifdefs in rte.app.mk.

2015-05-01 Thread Bruce Richardson
On Thu, Apr 30, 2015 at 05:33:36PM +0100, Wiles, Keith wrote: > > > On 4/30/15, 11:22 AM, "Richardson, Bruce" > wrote: > > >On Thu, Apr 30, 2015 at 02:31:13PM +, Wiles, Keith wrote: > >> > >> > >> On 4/30/15, 8:38 AM, "Olivier MATZ" wrote: > >> > >> >Hi Keith, > >> > > >> >On

[dpdk-dev] [PATCH] Remove NO_AUTOLIBS option

2015-05-01 Thread Keith Wiles
NO_AUTOLIBS is not required as it was not used or defined in the config files. Signed-off-by: Keith Wiles --- mk/rte.app.mk | 5 - 1 file changed, 5 deletions(-) diff --git a/mk/rte.app.mk b/mk/rte.app.mk index b8030d2..b63e346 100644 --- a/mk/rte.app.mk +++ b/mk/rte.app.mk @@ -54,11 +54,8

[dpdk-dev] [PATCH v6 2/2] Update Docs for new EXTRA_LDLIBS variable

2015-05-01 Thread Keith Wiles
Removed the LDLIBS-y reference as it is not required. Signed-off-by: Keith Wiles --- doc/build-sdk-quick.txt | 1 + doc/guides/prog_guide/build_app.rst | 2 +- doc/guides/prog_guide/dev_kit_build_system.rst | 2 ++

[dpdk-dev] [PATCH v6 1/2] Simplify the ifdefs in rte.app.mk.

2015-05-01 Thread Keith Wiles
Trying to simplify the ifdefs in rte.app.mk to make the code more readable and maintainable by moving LDLIBS variable to use the same style as LDLIBS-y being used in the rest of the code. Added a new variable called EXTRA_LDLIBS to be used by example apps instead of using LDLIBS directly. The new

[dpdk-dev] [PATCH v2 33/33] i40e/base: modifications for future use

2015-05-01 Thread Helin Zhang
Miscellaneous modifications are added as follows for future use. - Admin queue command opcodes - struct i40e_aqc_arp_proxy_data - struct i40e_aq_set_phy_config - struct i40e_aqc_nvm_config_data_immediate_field - struct i40e_aqc_oem_param_change - struct i40e_aqc_opc_oem_ocsd_initialize - struct

[dpdk-dev] [PATCH v2 32/33] i40e/base: rework of structures and macros for future use

2015-05-01 Thread Helin Zhang
Several structures as follows were modified for future use. - struct i40e_link_status - struct i40e_nvm_info - struct i40e_veb_tc_stats In addition, shadow RAM macros and enum were modified for future use as well. Signed-off-by: Helin Zhang --- lib/librte_pmd_i40e/i40e/i40e_type.h | 28

[dpdk-dev] [PATCH v2 31/33] i40e/base: add more virtual channel operations for future use

2015-05-01 Thread Helin Zhang
Virtual channel operations of I40E_VIRTCHNL_OP_EVENT and I40E_VIRTCHNL_OP_CONFIG_RSS are added for future use. Signed-off-by: Helin Zhang --- lib/librte_pmd_i40e/i40e/i40e_virtchnl.h | 41 1 file changed, 20 insertions(+), 21 deletions(-) v2 changes: Removed

[dpdk-dev] [PATCH v2 30/33] i40e/base: future proof some sizeof calls

2015-05-01 Thread Helin Zhang
Make sure the sizeof() calls are taking the size of the actual struct that we care about. By using the pointer variable, it will always get the right struct size, even if the variable type changes sometime in the future. Signed-off-by: Helin Zhang --- lib/librte_pmd_i40e/i40e/i40e_common.c | 44

[dpdk-dev] [PATCH v2 29/33] i40e/base: set FLAG_RD when sending driver version to FW

2015-05-01 Thread Helin Zhang
When sending driver version to FW, FLAG_SI is not needed as it is done as part of i40e_fill_default_descriptor function call, and it should be replaced by FLAG_BUF and FLAG_RD. Signed-off-by: Helin Zhang --- lib/librte_pmd_i40e/i40e/i40e_common.c | 2 +- 1 file changed, 1 insertion(+), 1

[dpdk-dev] [PATCH v2 28/33] i40e/base: support for iSCSI capability

2015-05-01 Thread Helin Zhang
Add parsing and reporting of iSCSI capability for a given device or function. Signed-off-by: Helin Zhang --- lib/librte_pmd_i40e/i40e/i40e_common.c | 5 + lib/librte_pmd_i40e/i40e/i40e_type.h | 1 + 2 files changed, 6 insertions(+) diff --git a/lib/librte_pmd_i40e/i40e/i40e_common.c

[dpdk-dev] [PATCH v2 27/33] i40e/base: add AOC phy types to case statement in get_media_type

2015-05-01 Thread Helin Zhang
Add the 10G and 40G AOC phy types to the case statement in get_media_type so that the correct information gets reported back to the user. Signed-off-by: Helin Zhang --- lib/librte_pmd_i40e/i40e/i40e_common.c | 2 ++ 1 file changed, 2 insertions(+) diff --git

[dpdk-dev] [PATCH v2 26/33] i40e/base: Reassign incorrect PHY type as a workaround for a FW issue

2015-05-01 Thread Helin Zhang
The FW for SW3E is incorrectly reporting a breakout cable as PHY type 0x3 when it should be 0x16 (I40E_PHY_TYPE_10GBASE_SFPP_CU). As this is supposed to be fixed in the next FW version (FW versions >= 4.4), if we get this value back from FW and the version is < 4.4, reassign it to

[dpdk-dev] [PATCH v2 25/33] i40e/base: find partition_id in npar mode, and disable FCOE by default

2015-05-01 Thread Helin Zhang
In NPAR mode the driver instance might be controlling the base partition or one of the other "fake" PFs. There are some things that can only be done by the base partition, aka partition_id 1. This code does a bit of work to find how many partitions are there in per port and what is the current

[dpdk-dev] [PATCH v2 24/33] i40e/base: get pf_id from HW rather than PCI function

2015-05-01 Thread Helin Zhang
Getting the pf_id from the function number was a good place to start, but when the PF was setup in pass-thru mode, the PCI bus/device/function was virtualized and the number in the VM is different from the number in the bare metal. This caused HW configuration issues when the wrong pf_id was used

[dpdk-dev] [PATCH v2 23/33] i40e/base: clean up sparse complaint in i40e_debug_aq

2015-05-01 Thread Helin Zhang
A sparse complaint in i40e_debug_aq in a funky buffer write goes away by straightening out the code out to something less convoluted. Signed-off-by: Helin Zhang --- lib/librte_pmd_i40e/i40e/i40e_common.c | 56 ++ 1 file changed, 30 insertions(+), 26 deletions(-)

[dpdk-dev] [PATCH v2 22/33] i40e/base: update of get/set LED functions

2015-05-01 Thread Helin Zhang
As it is requried to blink the LEDs only, it should ignore the activity LEDs. Also a fix is added to clear the GPIO blink field specifically. Signed-off-by: Helin Zhang --- lib/librte_pmd_i40e/i40e/i40e_common.c | 37 +++--- 1 file changed, 34 insertions(+), 3

[dpdk-dev] [PATCH v2 21/33] i40e/base: add new interfaces for future use

2015-05-01 Thread Helin Zhang
Four new interfaces are added for future use, as follows, together with their relevant strucure and macro definitions. - i40e_aq_read_nvm_config() - i40e_aq_write_nvm_config() - i40e_aq_set_lldp_mib() - i40e_read_pba_string() In addition, removed i40e_read_nvm_srrd() as needed. Signed-off-by:

[dpdk-dev] [PATCH v2 20/33] i40e/base: i40e_aq_get_link_info() should be used directly

2015-05-01 Thread Helin Zhang
As i40e_update_link_info() is just a simple wrapper of AQ command interface of i40e_aq_get_link_info(), the AQ command interface should be used directly. Signed-off-by: Helin Zhang --- lib/librte_pmd_i40e/i40e/i40e_common.c| 34 ++-

[dpdk-dev] [PATCH v2 19/33] i40e/base: enhancements on adminq init and sending asq command

2015-05-01 Thread Helin Zhang
The timeout of ASQ command is enlarged from 100 ms to 250 ms to wait longer time for the response. nvm_busy is not needed anymore. Also nvm_release_on_done and nvmupd_state will be set during adminq init. Signed-off-by: Helin Zhang --- lib/librte_pmd_i40e/i40e/i40e_adminq.c | 21

[dpdk-dev] [PATCH v2 18/33] i40e/base: grab NVM devstarter version not image version

2015-05-01 Thread Helin Zhang
The NVM image version has useful data but it is a per image version, and every image can have a different one. While for the dev starter version, all the images for release will have the same version. So it would be better to use dev starter version number. Signed-off-by: Helin Zhang ---

[dpdk-dev] [PATCH v2 17/33] i40e/base: define and use i40e_is_vf()

2015-05-01 Thread Helin Zhang
This patch is useful for future expansion when new VF MAC types get added. It also helps with cleaning up VF driver flow. Signed-off-by: Helin Zhang --- lib/librte_pmd_i40e/i40e/i40e_adminq.c | 7 ++- lib/librte_pmd_i40e/i40e/i40e_type.h | 5 + 2 files changed, 11 insertions(+), 1

[dpdk-dev] [PATCH v2 16/33] i40e/base: add fw build info to AQ data

2015-05-01 Thread Helin Zhang
Since the FW build number is available in the AQ response, save it off for future use. Signed-off-by: Helin Zhang --- lib/librte_pmd_i40e/i40e/i40e_adminq.c| 1 + lib/librte_pmd_i40e/i40e/i40e_adminq.h| 1 + lib/librte_pmd_i40e/i40e/i40e_common.c| 4

[dpdk-dev] [PATCH v2 15/33] i40e/base: replacement of DEBUGOUT() with i40e_debug()

2015-05-01 Thread Helin Zhang
To support better debug information printing, all DEBUGOUT() are replaced by i40e_debug(). In addition, the NVM update state strings are added in debug information. Signed-off-by: Helin Zhang --- lib/librte_pmd_i40e/Makefile| 1 + lib/librte_pmd_i40e/i40e/i40e_nvm.c | 77

[dpdk-dev] [PATCH v2 14/33] i40e/base: enhancements of NVM checksum calculation

2015-05-01 Thread Helin Zhang
The data buffer for i40e_calc_nvm_checksum() is too big, so move it off and allocate separately. In addition, use i40e_read_nvm_buffer() to get the whole shadow RAM, together with minor enhancements. Signed-off-by: Helin Zhang --- lib/librte_pmd_i40e/i40e/i40e_nvm.c | 49

[dpdk-dev] [PATCH v2 13/33] i40e/base: enhancement of polling NVM semaphore

2015-05-01 Thread Helin Zhang
Only poll on the NVM semaphore if there's time left on a previous reservation. Signed-off-by: Helin Zhang --- lib/librte_pmd_i40e/i40e/i40e_nvm.c | 35 +-- 1 file changed, 17 insertions(+), 18 deletions(-) diff --git a/lib/librte_pmd_i40e/i40e/i40e_nvm.c

[dpdk-dev] [PATCH v2 12/33] i40e/base: fix up NVM update sm error handling

2015-05-01 Thread Helin Zhang
The state transitions after an error were not managed well, so these changes get us back to the INIT state or don't transit out of the INIT state after most errors. Signed-off-by: Helin Zhang --- lib/librte_pmd_i40e/i40e/i40e_nvm.c | 32 ++-- 1 file changed, 22

[dpdk-dev] [PATCH v2 11/33] i40e/base: check for AQ timeout in aq_rc decode

2015-05-01 Thread Helin Zhang
Decoding the AQ return code is great except when the AQ send timed out and there's no return code set. This changes the handy decoder interface to help catch and properly report the condition as an useful error number rather than returning a misleading '0'. Signed-off-by: Helin Zhang ---

[dpdk-dev] [PATCH v2 10/33] i40e/base: catch NVM write semaphore timeout and retry

2015-05-01 Thread Helin Zhang
In some circumstances, a multi-write transaction takes longer than the default 3 minutes timeout on the write semaphore. If the write failed with an EBUSY status, this is likely the problem. So here it tries to reacquire the semaphore and then retry the write. Signed-off-by: Helin Zhang ---

[dpdk-dev] [PATCH v2 09/33] i40e/base: update of shadow RAM read/write functions

2015-05-01 Thread Helin Zhang
To support different hardware, shadow RAM read should be done via SRCTL register or AQ command, and shadow RAM write should be done via AQ command only. Signed-off-by: Helin Zhang --- lib/librte_pmd_i40e/i40e/i40e_nvm.c | 196 ++-- 1 file changed, 190

[dpdk-dev] [PATCH v2 08/33] i40e/base: rework of 'i40e_hmc_get_object_va'

2015-05-01 Thread Helin Zhang
To simplify the usage of invoking 'i40e_hmc_get_object_va', input parameters of it were reworked. In addition, minor code style fixes were added as well. Signed-off-by: Helin Zhang --- lib/librte_pmd_i40e/i40e/i40e_lan_hmc.c | 31 +-- 1 file changed, 13

[dpdk-dev] [PATCH v2 07/33] i40e: replacement of 'i40e_debug_read_register()'

2015-05-01 Thread Helin Zhang
As base driver provides 'i40e_aq_debug_read_register()', the same functional interface of 'i40e_debug_read_register()' can be replaced. Signed-off-by: Helin Zhang --- lib/librte_pmd_i40e/i40e/i40e_common.c| 35 +++ lib/librte_pmd_i40e/i40e/i40e_prototype.h | 3

[dpdk-dev] [PATCH v2 06/33] i40e/base: support of CEE DCBX on recent firmware versions

2015-05-01 Thread Helin Zhang
Recent firmware versions support CEE DCBX, while old firmware versions support IEEE DCBX only. So firmware version needs to be checked during getting DCB configurations. To support CEE DCBX, AQ commands of 'i40e_aq_get_cee_dcb_config' and 'i40e_aq_start_stop_dcbx' were implemented. Signed-off-by:

[dpdk-dev] [PATCH v2 05/33] i40e/base: support of building both PF and VF driver together

2015-05-01 Thread Helin Zhang
Macros of PF_DRIVER, VF_DRIVER and INTEGRATED_VF were defined to support building both PF and VF driver together. PF_DRIVER needs to be defined if a build is for PF only, while VF_DRIVER for VF only. PF_DRIVER, VF_DRIVER and INTEGRATED_VF are all needed for building both PF and VF driver together.

[dpdk-dev] [PATCH v2 04/33] i40e/base: rename 'err' to 'perrno'

2015-05-01 Thread Helin Zhang
To be consistent with the original base driver, the variable name of 'err' should be renamed to 'perrno'. Signed-off-by: Helin Zhang --- lib/librte_pmd_i40e/i40e/i40e_nvm.c | 118 ++-- 1 file changed, 59 insertions(+), 59 deletions(-) diff --git

[dpdk-dev] [PATCH v2 03/33] i40e: adjustment of register definitions and relevant

2015-05-01 Thread Helin Zhang
Some macros of register definitions or relevant are added, modified or deleted. In detail, they are as follows. - I40E_PRTDCB_RUPTQ - I40E_GLGEN_GPIO_CTL - I40E_GLGEN_MDIO_CTRL - I40E_GLGEN_RSTENA_EMP - I40E_GLPCI_LATCT - I40E_GLTPH_CTRL - I40E_GLPRT_BPRCH - I40E_GLPRT_TDPC - I40E_GLSCD_QUANTA

[dpdk-dev] [PATCH v2 02/33] i40e: disable setting of phy configuration

2015-05-01 Thread Helin Zhang
There was a known link issue on 40G ports on NVM version (FVL3E), when setting phy configuration. As a workaround, setting of phy configuration should be disabled. The impact is that the link cannot be forcedly configured, which doesn't affect any feature functions. The workaround can be removed

[dpdk-dev] [PATCH v2 01/33] i40e: copyright update

2015-05-01 Thread Helin Zhang
Copyright is updated. Signed-off-by: Helin Zhang --- lib/librte_pmd_i40e/Makefile | 2 +- lib/librte_pmd_i40e/i40e/i40e_adminq.c | 2 +- lib/librte_pmd_i40e/i40e/i40e_adminq.h | 2 +- lib/librte_pmd_i40e/i40e/i40e_adminq_cmd.h | 2 +- lib/librte_pmd_i40e/i40e/i40e_alloc.h

[dpdk-dev] [PATCH v2 00/33] i40e base driver update

2015-05-01 Thread Helin Zhang
To support firmware version 'FVL3E', i40e base driver should be updated. Together with necessary modifications to i40e Poll Mode Driver, it mainly includes the base driver update which contains additional enhancements, fixes, changes for future use and so on. The details are listed as follows. v2