app/testpmd: fix device mcast list error handling
authorCiara Power <ciara.power@intel.com>
Wed, 4 Dec 2019 16:38:15 +0000 (16:38 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 17 Jan 2020 18:45:23 +0000 (19:45 +0100)
commitc11562a1215aaff6651f9c59ef91ad0a53292571
tree1d0e9365ac9d69bb9609e25829b0cf15c06cc127
parentfb590010d97549284612c2f31ae3a45b8f9277f7
app/testpmd: fix device mcast list error handling

The multicast set list function now has a return value, which is checked
by the calling functions. A rollback occurs on detection of failure, to
realign local config with the device config.

The error print statement in the function had included the port_id and
mc_addr_nb values in the wrong order, these are now swapped.

Fixes: 8fff667578a7 ("app/testpmd: new command to add/remove multicast MAC addresses")
Cc: stable@dpdk.org
Signed-off-by: Ciara Power <ciara.power@intel.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
app/test-pmd/config.c