net/enic: fix releasing mbufs when tearing down Rx queue
authorNelson Escobar <neescoba@cisco.com>
Tue, 14 Jun 2016 23:55:34 +0000 (16:55 -0700)
committerBruce Richardson <bruce.richardson@intel.com>
Thu, 23 Jun 2016 11:38:14 +0000 (13:38 +0200)
commita44a1724abbe2842217d3bc5cd95ab41c36a3f48
tree8fc64f76dd3aad639a1af8ed9ac71d5451b7f9fb
parent097e1f1e4072c3748d2f26ce9660499f5f8b4b45
net/enic: fix releasing mbufs when tearing down Rx queue

When trying to release the mbufs, the function was incorrectly
iterating over the max size configured instead of the actual size
of the ring.

Fixes: 947d860c821f ("enic: improve Rx performance")

Signed-off-by: Nelson Escobar <neescoba@cisco.com>
Reviewed-by: John Daley <johndale@cisco.com>
drivers/net/enic/enic_main.c