DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH] net/i40e: stop lldp before setting local lldp MIB
@ 2018-08-01  4:07 Chas Williams
  2018-08-01 13:59 ` Zhang, Qi Z
  2018-08-06 20:05 ` [dpdk-dev] [PATCH v2] " Chas Williams
  0 siblings, 2 replies; 9+ messages in thread
From: Chas Williams @ 2018-08-01  4:07 UTC (permalink / raw)
  To: dev; +Cc: beilei.xing, qi.z.zhang, Charles (Chas) Williams

From: "Charles (Chas) Williams" <chas3@att.com>

>From the Intel Ethernet Controller X710/XXV710/XL710 Specifiction
Update:

    Starting from NVM 5.02, if the Set Local LLDP MIB command is
    received while the DCBx specific agent is stopped, the command
    returns an EPERM error. If the command is received while the
    LLDP agent is stopped, it sets the local MIB without exchanging
    LLDP with peer, and returns SUCCESS.

This results in the harmless, but annoying, diagnostic:

    default dcb config fails. err = -53, aq_err = 1.

So, always stop the lldp daemon when we are in software mode before
we attempt to call i40e_set_dcb_config.

Signed-off-by: Chas Williams <chas3@att.com>
---
 drivers/net/i40e/i40e_ethdev.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/net/i40e/i40e_ethdev.c b/drivers/net/i40e/i40e_ethdev.c
index a340540ef..03bedf5c1 100644
--- a/drivers/net/i40e/i40e_ethdev.c
+++ b/drivers/net/i40e/i40e_ethdev.c
@@ -11237,6 +11237,7 @@ i40e_dcb_init_configure(struct rte_eth_dev *dev, bool sw_dcb)
 		 * i40e_init_dcb we expect is failure with I40E_AQ_RC_EPERM
 		 * adminq status. Otherwise, it should return success.
 		 */
+		i40e_aq_stop_lldp(hw, TRUE, NULL);
 		if ((ret == I40E_SUCCESS) || (ret != I40E_SUCCESS &&
 		    hw->aq.asq_last_status == I40E_AQ_RC_EPERM)) {
 			memset(&hw->local_dcbx_config, 0,
-- 
2.14.4

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2018-09-13 12:30 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-08-01  4:07 [dpdk-dev] [PATCH] net/i40e: stop lldp before setting local lldp MIB Chas Williams
2018-08-01 13:59 ` Zhang, Qi Z
2018-08-01 15:31   ` Chas Williams
2018-08-02  2:16     ` Zhang, Qi Z
2018-08-02 21:19       ` Chas Williams
2018-08-03  2:10         ` Zhang, Qi Z
2018-08-06 19:03           ` Chas Williams
2018-08-06 20:05 ` [dpdk-dev] [PATCH v2] " Chas Williams
2018-09-13 12:30   ` Zhang, Qi Z

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).