[dpdk-dev] LACP bond link broken chain due to the timeout

2017-07-23 Thread Zhangkun (K)
Hi, all I use dpdk LACP bond for long time large flow test, there are LACP broken chain. The dpdk log is as follow: Bond 1: slave id 0 distributing stopped. Bond 1: slave id 1 distributing stopped. Through the analysis of code , LACP protocol packets are handled by eal-intr-thread thread, at th

Re: [dpdk-dev] [PATCH v1] net/i40e: fix sync phy type by adding retry

2017-07-23 Thread Wu, Jingjing
> -Original Message- > From: Hunt, David > Sent: Friday, July 21, 2017 10:41 PM > To: dev@dpdk.org > Cc: Wu, Jingjing ; Hunt, David > Subject: [PATCH v1] net/i40e: fix sync phy type by adding retry > > Some phy's take longer than others to come up. Add a retry to give more phy's > a cha

Re: [dpdk-dev] [PATCH v8 1/5] ethdev: add support of NIC reset

2017-07-23 Thread Dai, Wei
Many thanks, Remy. My v9 patch set has followed your guidance. > -Original Message- > From: Horton, Remy > Sent: Thursday, July 20, 2017 9:22 PM > To: Dai, Wei ; dev@dpdk.org > Cc: tho...@monjalon.net; Lu, Wenzhuo ; > Ananyev, Konstantin ; Xing, Beilei > ; Wu, Jingjing ; Mcnamara, > John

[dpdk-dev] [PATCH] doc: postpone unaccomplished deprecation notice

2017-07-23 Thread Shahaf Shuler
The work on ethdev Rx and Tx offloads has not been completed for 17.08. It will be completed on 17.11 The notice is kept and postponed until the end of this work. Signed-off-by: Shahaf Shuler --- doc/guides/rel_notes/deprecation.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --

Re: [dpdk-dev] [PATCH] net/mlx5: poll completion queue once per a call

2017-07-23 Thread Sagi Grimberg
mlx5_tx_complete() polls completion queue multiple times until it encounters an invalid entry. As Tx completions are suppressed by MLX5_TX_COMP_THRESH, it is waste of cycles to expect multiple completions in a poll. And freeing too many buffers in a call can cause high jitter. This patch improves

[dpdk-dev] [PATCH v9 4/5] app/testpmd: enhance command to test NIC reset

2017-07-23 Thread Wei Dai
When PF is reset, a message will show it and all its VF need to be reset. User can run the command "port reset port_id" to reset the VF port and to keep same port id without any configuration. Then user can run "port stop port_id" and "port start port_id" to reconfigure its forwarding mode and parm

[dpdk-dev] [PATCH v9 5/5] doc: add description of the NIC reset API

2017-07-23 Thread Wei Dai
This patch add the description of NIC reset API in doc/guides/prog_guide/poll_mode_drv.rst . It explains why this API is needed, when it should be called and some noticeable information. Signed-off-by: Wei Dai Reviewed-by: Remy Horton --- doc/guides/prog_guide/poll_mode_drv.rst | 41 +++

[dpdk-dev] [PATCH v9 1/5] ethdev: add support of NIC reset

2017-07-23 Thread Wei Dai
This patch adds a new eth_dev layer API function rte_eth_dev_reset(), which a DPDK application can call to reset a NIC and keep its port id afterwards. It means that all software resources allocated in the ethdev layer are kept, and software & hardware resources of the NIC within the NIC's PMD are

[dpdk-dev] [PATCH v9 3/5] net/i40e: add support of reset

2017-07-23 Thread Wei Dai
Reset a NIC by calling dev_uninit() and then dev_init(). Go through the same way in NIC PCI remove without release of ethdev resource and then NIC PCI probe function without ethdev resource allocation. Signed-off-by: Wei Dai --- drivers/net/i40e/i40e_ethdev.c| 28

[dpdk-dev] [PATCH v9 2/5] net/ixgbe: add support of reset

2017-07-23 Thread Wei Dai
Reset a NIC by calling dev_uninit and then dev_init. Go through same way in NIC PCI remove without release of ethdev resource and then NIC PCI probe function without ethdev resource allocation. Signed-off-by: Wei Dai --- drivers/net/ixgbe/ixgbe_ethdev.c | 47 +

[dpdk-dev] [PATCH v9 0/5] Support of NIC reset and keep same port id

2017-07-23 Thread Wei Dai
This patch set adds a function rte_eth_dev_reset( ) in rte_ethdev layer. Sometimes a port have to be reset passively. For example a PF is reset, all its VFs should also be reset by application itself to align with the PF. A DPDK application also can call this function to trigger an initative port

Re: [dpdk-dev] Question on mlx5 PMD txq memory registration

2017-07-23 Thread Sagi Grimberg
I don't understand the security argument. Its completely private to the driver. anything under librte is equivalent to an OS wrt networking, so I fail to see what is the security feature your talking about. You are correct that as a root you are able to do whatever you want on the server. Th

Re: [dpdk-dev] Question on mlx5 PMD txq memory registration

2017-07-23 Thread Shahaf Shuler
Thursday, July 20, 2017 7:22 PM, Sagi Grimberg: > >> As I said, there are primitives which are designed to handle frequent > >> reads and rare mutations. > > > > Even with such primitives, rarely lock is more than never lock. > > You do realize that the cache mutation involves ibv_dereg_mr() right