From 6636afdf77d76324deddf9664737390f81423b04 Mon Sep 17 00:00:00 2001 From: Andrew Rybchenko Date: Wed, 13 Dec 2017 07:12:16 +0000 Subject: [PATCH] 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 --- drivers/net/sfc/sfc_port.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- 2.20.1