net/bnxt: check invalid VNIC id for firmware
authorJay Ding <jay.ding@broadcom.com>
Wed, 17 Jul 2019 10:41:39 +0000 (16:11 +0530)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 23 Jul 2019 12:31:35 +0000 (14:31 +0200)
commite1e5e812f1415b0698f82b4b0fbeb558f3cd7eae
treea3eb9663cfc033b0e65506f7e9c69c2a1cfcf1f3
parent94abc0a982248c7194b1b3367230503f5b721500
net/bnxt: check invalid VNIC id for firmware

Add checking for vnic id before sending message to chimp in
bnxt_hwrm_vnic_plcmode_cfg().

Fixes: db678d5c2b54 ("net/bnxt: add HWRM VNIC configure")
Cc: stable@dpdk.org
Signed-off-by: Jay Ding <jay.ding@broadcom.com>
Signed-off-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
Reviewed-by: Randy Schacher <stuart.schacher@broadcom.com>
drivers/net/bnxt/bnxt_hwrm.c