net/bnxt: refactor to properly allocate resources for PF/VF