net/bnxt: reset Rx allocation state on port restart
authorLance Richardson <lance.richardson@broadcom.com>
Wed, 17 Jul 2019 10:41:29 +0000 (16:11 +0530)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 23 Jul 2019 12:31:35 +0000 (14:31 +0200)
commit3672b93dc4901f7459bf0f449d9697f1736d34a5
treeb375e016ae1c164a285d21209f8f4899d6f86b76
parent03934d93e19ce3b4609a3f1d9dbb5f3f28a34bbe
net/bnxt: reset Rx allocation state on port restart

Move call site of bnxt_rxq_vec_setup() to ensure that rxq->rxrearm_nb
and rxq->rxrearm_start are reinitialized correctly when a port is
restarted.

Fixes: bc4a000f2f53 ("net/bnxt: implement SSE vector mode")

Signed-off-by: Lance Richardson <lance.richardson@broadcom.com>
Signed-off-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
Reviewed-by: Christopher Reder <christopher.reder@broadcom.com>
drivers/net/bnxt/bnxt_ring.c
drivers/net/bnxt/bnxt_rxq.c