From 2617ec3f64321b530eb54397c86d40d510a2c69b Mon Sep 17 00:00:00 2001 From: Andrew Rybchenko Date: Tue, 18 Apr 2017 14:03:06 +0100 Subject: [PATCH] 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 --- drivers/net/sfc/sfc_rx.c | 2 ++ 1 file changed, 2 insertions(+) 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; } -- 2.20.1