net/failsafe: fix reported device info
authorStephen Hemminger <sthemmin@microsoft.com>
Thu, 16 May 2019 03:53:10 +0000 (20:53 -0700)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 13 Jun 2019 14:54:30 +0000 (23:54 +0900)
commit4586be3743d4c49987973e2025b34abc1e85a377
treeea8b471d7f1c6600b56e88bd9fdf829cc2aa19a4
parent9159bcb25a5de39ffea8b2be8089aa3d37d82535
net/failsafe: fix reported device info

The failsafe driver device info had several issues in the
info it reported in dev_info_get:
  - it cleared dev_info->device set in rte_eth_dev_info_get
  - many fields (for example max_rx_queue) should be the minimum
    of all sub devices
  - it reported tx capa for the active transmit device, but
    the device may change.

There was enough messed up that ended up reworking the info_get
handler. There is no need to save current values or have a
template for defaults.

Fixes: 4e31ee26ed51 ("net/failsafe: report actual device capabilities")
Cc: stable@dpdk.org
Signed-off-by: Stephen Hemminger <sthemmin@microsoft.com>
Acked-by: Gaetan Rivet <gaetan.rivet@6wind.com>
drivers/net/failsafe/failsafe_ops.c
drivers/net/failsafe/failsafe_private.h