net/bnx2x: fix fastpath SB allocation for SRIOV
authorRasesh Mody <rmody@marvell.com>
Wed, 3 Jul 2019 23:43:13 +0000 (16:43 -0700)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 23 Jul 2019 12:31:34 +0000 (14:31 +0200)
commit0cdbc98f6ed48b769ed5b22a61c38fbe3c90538a
tree76399f0e68f6ca03bb7a79e7019f242609b5eb5e
parent3423521ba06791211264cae9de196c99424062be
net/bnx2x: fix fastpath SB allocation for SRIOV

For SRIOV, fastpath status blocks are not allocated resulting in
segfault. Separate out fastpath DMA allocation/free from rest of
memory allocation/free. It is now done as part of NIC load/unload.

Comment indentation changes in bnx2x_alloc_hsi_mem() and
bnx2x_free_hsi_mem() APIs.

Fixes: f0219d98defd ("net/bnx2x: fix interrupt flood")
Cc: stable@dpdk.org
Signed-off-by: Rasesh Mody <rmody@marvell.com>
drivers/net/bnx2x/bnx2x.c