From: Andrew Rybchenko Date: Tue, 18 Apr 2017 13:03:06 +0000 (+0100) Subject: net/sfc: reset RSS channels back to 0 on close X-Git-Tag: spdx-start~3514 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=2617ec3f64321b530eb54397c86d40d510a2c69b;p=dpdk.git net/sfc: reset RSS channels back to 0 on close Fixes: 4ec1fc3ba881 ("net/sfc: add basic stubs for RSS support on driver attach") Cc: stable@dpdk.org Signed-off-by: Andrew Rybchenko Reviewed-by: Andy Moreton --- diff --git a/drivers/net/sfc/sfc_rx.c b/drivers/net/sfc/sfc_rx.c index ddf9217052..9f512d91a0 100644 --- a/drivers/net/sfc/sfc_rx.c +++ b/drivers/net/sfc/sfc_rx.c @@ -1320,6 +1320,8 @@ sfc_rx_close(struct sfc_adapter *sa) { sfc_rx_fini_queues(sa, 0); + sa->rss_channels = 0; + rte_free(sa->rxq_info); sa->rxq_info = NULL; }