From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id BEA9DA00C2; Thu, 1 Dec 2022 03:30:48 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 9AB2240693; Thu, 1 Dec 2022 03:30:48 +0100 (CET) Received: from inbox.dpdk.org (inbox.dpdk.org [95.142.172.178]) by mails.dpdk.org (Postfix) with ESMTP id 656514021D for ; Thu, 1 Dec 2022 03:30:47 +0100 (CET) Received: by inbox.dpdk.org (Postfix, from userid 33) id 59423A00C3; Thu, 1 Dec 2022 03:30:47 +0100 (CET) From: bugzilla@dpdk.org To: dev@dpdk.org Subject: [Bug 1138] net/i40e all packets dropped after rte_eth_dev_flow_ctrl_set Date: Thu, 01 Dec 2022 02:30:47 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: DPDK X-Bugzilla-Component: ethdev X-Bugzilla-Version: 21.11 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: hanshuang87@gmail.com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: Normal X-Bugzilla-Assigned-To: dev@dpdk.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.dpdk.org/ Auto-Submitted: auto-generated X-Auto-Response-Suppress: All MIME-Version: 1.0 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org https://bugs.dpdk.org/show_bug.cgi?id=3D1138 Bug ID: 1138 Summary: net/i40e all packets dropped after rte_eth_dev_flow_ctrl_set Product: DPDK Version: 21.11 Hardware: All OS: Linux Status: UNCONFIRMED Severity: normal Priority: Normal Component: ethdev Assignee: dev@dpdk.org Reporter: hanshuang87@gmail.com Target Milestone: --- My program call rte_eth_dev_flow_ctrl_set after rte_eth_dev_start. I found = that x710 dropped all packets(rx_dropped_packets in xstats). I have used testpmd to confirm the problem: diff --git a/app/test-pmd/testpmd.c b/app/test-pmd/testpmd.c index da29858..eb11789 100755 --- a/app/test-pmd/testpmd.c +++ b/app/test-pmd/testpmd.c @@ -2928,6 +2928,16 @@ struct extmem_param { continue; } + { + struct rte_eth_fc_conf fc_conf =3D { + .autoneg =3D 0, + .mode =3D RTE_FC_NONE, + }; + + if (!rte_eth_dev_flow_ctrl_set(pi, &fc_conf)) + printf("set port %d flow ctrl\n", pi); + } + if (port->port_status =3D=3D RTE_PORT_HANDLING) port->port_status =3D RTE_PORT_STARTED; else If I stop and start the port again, packet will be received as good. --=20 You are receiving this mail because: You are the assignee for the bug.=