net/sfc: reset RSS channels back to 0 on close
authorAndrew Rybchenko <arybchenko@solarflare.com>
Tue, 18 Apr 2017 13:03:06 +0000 (14:03 +0100)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 19 Apr 2017 13:37:37 +0000 (15:37 +0200)
Fixes: 4ec1fc3ba881 ("net/sfc: add basic stubs for RSS support on driver attach")
Cc: stable@dpdk.org
Signed-off-by: Andrew Rybchenko <arybchenko@solarflare.com>
Reviewed-by: Andy Moreton <amoreton@solarflare.com>
drivers/net/sfc/sfc_rx.c

index ddf9217..9f512d9 100644 (file)
@@ -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;
 }