patches for DPDK stable branches
 help / color / mirror / Atom feed
* [dpdk-stable] [18.08] app/testpmd: fix port status for new bonded devices
@ 2018-11-23 11:12 Radu Nicolau
  2018-11-26 16:44 ` Kevin Traynor
  0 siblings, 1 reply; 2+ messages in thread
From: Radu Nicolau @ 2018-11-23 11:12 UTC (permalink / raw)
  To: stable; +Cc: ktraynor, Radu Nicolau

[ backported from upstream commit 0ae8071784f353f426fd8ad9bbab2fe0ba39a670 ]

Set port status to stopped for newly added devices.

Fixes: 2950a769315e ("bond: testpmd support")

Signed-off-by: Radu Nicolau <radu.nicolau@intel.com>
Acked-by: Bernard Iremonger <bernard.iremonger@intel.com>
---
 app/test-pmd/cmdline.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/app/test-pmd/cmdline.c b/app/test-pmd/cmdline.c
index f71d963..6561783 100644
--- a/app/test-pmd/cmdline.c
+++ b/app/test-pmd/cmdline.c
@@ -5296,6 +5296,7 @@ static void cmd_create_bonded_device_parsed(void *parsed_result,
 		nb_ports = rte_eth_dev_count();
 		reconfig(port_id, res->socket);
 		rte_eth_promiscuous_enable(port_id);
+		ports[port_id].port_status = RTE_PORT_STOPPED;
 	}
 
 }
-- 
2.7.5

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

* Re: [dpdk-stable] [18.08] app/testpmd: fix port status for new bonded devices
  2018-11-23 11:12 [dpdk-stable] [18.08] app/testpmd: fix port status for new bonded devices Radu Nicolau
@ 2018-11-26 16:44 ` Kevin Traynor
  0 siblings, 0 replies; 2+ messages in thread
From: Kevin Traynor @ 2018-11-26 16:44 UTC (permalink / raw)
  To: Radu Nicolau, stable

On 11/23/2018 11:12 AM, Radu Nicolau wrote:
> [ backported from upstream commit 0ae8071784f353f426fd8ad9bbab2fe0ba39a670 ]
> 

Got it, thanks

> Set port status to stopped for newly added devices.
> 
> Fixes: 2950a769315e ("bond: testpmd support")
> 
> Signed-off-by: Radu Nicolau <radu.nicolau@intel.com>
> Acked-by: Bernard Iremonger <bernard.iremonger@intel.com>
> ---
>  app/test-pmd/cmdline.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/app/test-pmd/cmdline.c b/app/test-pmd/cmdline.c
> index f71d963..6561783 100644
> --- a/app/test-pmd/cmdline.c
> +++ b/app/test-pmd/cmdline.c
> @@ -5296,6 +5296,7 @@ static void cmd_create_bonded_device_parsed(void *parsed_result,
>  		nb_ports = rte_eth_dev_count();
>  		reconfig(port_id, res->socket);
>  		rte_eth_promiscuous_enable(port_id);
> +		ports[port_id].port_status = RTE_PORT_STOPPED;
>  	}
>  
>  }
> 

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

end of thread, other threads:[~2018-11-26 16:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-11-23 11:12 [dpdk-stable] [18.08] app/testpmd: fix port status for new bonded devices Radu Nicolau
2018-11-26 16:44 ` Kevin Traynor

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).