Re: [dpdk-dev] [PATCH 2/5] app/testpmd: merge ports list update functions

2018-10-24 Thread Iremonger, Bernard
> -Original Message- > From: Thomas Monjalon [mailto:tho...@monjalon.net] > Sent: Wednesday, October 24, 2018 2:41 PM > To: Iremonger, Bernard ; Wu, Jingjing > ; Lu, Wenzhuo > Cc: dev@dpdk.org; ophi...@mellanox.com; wis...@mellanox.com; Yigit, > Ferruh ; arybche...@solarflare.com > Subje

[dpdk-dev] [PATCH 2/5] app/testpmd: merge ports list update functions

2018-10-24 Thread Thomas Monjalon
The arrays ports_ids and fwd_ports_ids require the same kind of update when some ports are removed or added. The functions update_fwd_ports() and remove_unused_fwd_ports() are merged in the new function remove_invalid_ports(). The part for adding new port is moved into setup_attached_port(). Sign