mirror_ubuntu-kernels/drivers/net/ethernet/pensando/ionic
Nitya Sunkad 52417a95ff ionic: Add missing err handling for queue reconfig
ionic_start_queues_reconfig returns an error code if txrx_init fails.
Handle this error code in the relevant places.

This fixes a corner case where the device could get left in a detached
state if the CMB reconfig fails and the attempt to clean up the mess
also fails. Note that calling netif_device_attach when the netdev is
already attached does not lead to unexpected behavior.

Change goto name "errout" to "err_out" to maintain consistency across
goto statements.

Fixes: 40bc471dc7 ("ionic: add tx/rx-push support with device Component Memory Buffers")
Fixes: 6f7d6f0fd7 ("ionic: pull reset_queues into tx_timeout handler")
Signed-off-by: Nitya Sunkad <nitya.sunkad@amd.com>
Signed-off-by: Shannon Nelson <shannon.nelson@amd.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2023-08-06 16:44:03 +01:00
..
ionic_bus_pci.c ionic: remove dead device fail path 2023-07-07 09:14:45 +01:00
ionic_bus.h
ionic_debugfs.c ionic: add filterlist to debugfs 2021-10-10 10:42:47 +01:00
ionic_debugfs.h
ionic_dev.c ionic: add tx/rx-push support with device Component Memory Buffers 2023-02-13 11:05:12 +00:00
ionic_dev.h ionic: add tx/rx-push support with device Component Memory Buffers 2023-02-13 11:05:12 +00:00
ionic_devlink.c ionic: catch failure from devlink_alloc 2023-05-03 09:14:47 +01:00
ionic_devlink.h devlink: move request_firmware out of driver 2020-11-19 21:40:57 -08:00
ionic_ethtool.c ionic: add support for ethtool extended stat link_down_count 2023-06-12 09:29:26 +01:00
ionic_ethtool.h
ionic_fw.c devlink: move flash end and begin to core devlink 2020-11-19 21:41:02 -08:00
ionic_if.h ionic: add tx/rx-push support with device Component Memory Buffers 2023-02-13 11:05:12 +00:00
ionic_lif.c ionic: Add missing err handling for queue reconfig 2023-08-06 16:44:03 +01:00
ionic_lif.h ionic: add support for ethtool extended stat link_down_count 2023-06-12 09:29:26 +01:00
ionic_main.c ionic: remove unnecessary void casts 2023-02-13 11:05:11 +00:00
ionic_phc.c ionic: Don't overwrite the cyclecounter bitmask 2023-04-12 09:36:25 +01:00
ionic_regs.h
ionic_rx_filter.c ionic: remove unnecessary void casts 2023-02-13 11:05:11 +00:00
ionic_rx_filter.h ionic: handle vlan id overflow 2021-10-10 10:42:47 +01:00
ionic_stats.c ionic: clean up comments and whitespace 2022-02-18 20:37:14 -08:00
ionic_stats.h ionic: clean up sparse complaints 2020-10-23 18:37:23 -07:00
ionic_txrx.c ionic: add tx/rx-push support with device Component Memory Buffers 2023-02-13 11:05:12 +00:00
ionic_txrx.h ionic: add and enable tx and rx timestamp handling 2021-04-02 14:18:33 -07:00
ionic.h ionic: stretch heartbeat detection 2022-01-25 11:15:09 +00:00
Makefile ionic: link in the new hw timestamp code 2021-04-02 14:18:32 -07:00