net/bnxt: fix function driver register/unregister
authorKalesh AP <kalesh-anakkur.purayil@broadcom.com>
Wed, 22 Sep 2021 08:30:44 +0000 (14:00 +0530)
committerAjit Khaparde <ajit.khaparde@broadcom.com>
Sun, 26 Sep 2021 21:14:21 +0000 (23:14 +0200)
commit61ad5c1ac9de245e7d20a67375d56682c70bebde
tree829ad900ae56655385c68f55fe02e4a5fa8f2be8
parent646dcbe6c701ec2fcfec89dd7a2d9d4c45ce631c
net/bnxt: fix function driver register/unregister

1. Fix to use correct fields in the request structure of
   HWRM_FUNC_DRV_RGTR.
2. Remove the "flags" argument to bnxt_hwrm_func_driver_unregister()
   as it is not needed.

Fixes: beb3087f5056 ("net/bnxt: add driver register/unregister")
Cc: stable@dpdk.org
Signed-off-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com>
Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
Reviewed-by: Lance Richardson <lance.richardson@broadcom.com>
Reviewed-by: Somnath Kotur <somnath.kotur@broadcom.com>
drivers/net/bnxt/bnxt_ethdev.c
drivers/net/bnxt/bnxt_hwrm.c
drivers/net/bnxt/bnxt_hwrm.h