From: Andrew Rybchenko Date: Wed, 13 Dec 2017 07:12:16 +0000 (+0000) Subject: net/sfc: stop periodic DMA if MAC stats upload fails X-Git-Tag: spdx-start~565 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=6636afdf77d76324deddf9664737390f81423b04;p=dpdk.git net/sfc: stop periodic DMA if MAC stats upload fails Fixes: 3b257f7e6c0f ("net/sfc: request MAC stats upload immediately on port start") Cc: stable@dpdk.org Signed-off-by: Andrew Rybchenko Reviewed-by: Ivan Malov --- diff --git a/drivers/net/sfc/sfc_port.c b/drivers/net/sfc/sfc_port.c index c1466a77bf..55d8d4657c 100644 --- a/drivers/net/sfc/sfc_port.c +++ b/drivers/net/sfc/sfc_port.c @@ -279,10 +279,10 @@ fail_port_init_dev_link: (void)efx_mac_drain(sa->nic, B_TRUE); fail_mac_drain: +fail_mac_stats_upload: (void)efx_mac_stats_periodic(sa->nic, &port->mac_stats_dma_mem, 0, B_FALSE); -fail_mac_stats_upload: fail_mac_stats_periodic: fail_mcast_address_list_set: fail_mac_filter_set: