net/bnxt: free the aggregation ring
authorSomnath Kotur <somnath.kotur@broadcom.com>
Mon, 8 Jan 2018 20:24:36 +0000 (12:24 -0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 16 Jan 2018 17:47:49 +0000 (18:47 +0100)
commited5aab3d3e8745b70c81fb8a0c152ed28acb8d9d
treeea326ed3ee19473a057b05cf3b8c99f1ec191a46
parentba09f838464db72d5c6b6589f84f6a465e5594b1
net/bnxt: free the aggregation ring

bnxt_free_all_hwrm_rings() was freeing all the Rx Rings including
zero-ing out the memory for the Aggregation rings, but was not issuing
the FW cmd to destroy the AGG ring(s) from HW. This would manifest in
problems when port stop/port start would be issued as there would be a
HW ring leak every time port stop was issued.

Fixes: daef48efe5e5 ("net/bnxt: support set MTU")
Cc: stable@dpdk.org
Signed-off-by: Somnath Kotur <somnath.kotur@broadcom.com>
Signed-off-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
drivers/net/bnxt/bnxt_hwrm.c