]> git.droids-corp.org - dpdk.git/blobdiff - drivers/net/bnxt/bnxt_hwrm.c
examples/ipsec-secgw: replace strncpy with strlcpy
[dpdk.git] / drivers / net / bnxt / bnxt_hwrm.c
index 11204bf42cf102ed9a3e110d2aa2321acea2be54..bc8773509abfe02585b9142b12ea94f84a3887f5 100644 (file)
@@ -221,6 +221,9 @@ int bnxt_hwrm_cfa_l2_set_rx_mask(struct bnxt *bp,
        struct hwrm_cfa_l2_set_rx_mask_output *resp = bp->hwrm_cmd_resp_addr;
        uint32_t mask = 0;
 
+       if (vnic->fw_vnic_id == INVALID_HW_RING_ID)
+               return rc;
+
        HWRM_PREP(req, CFA_L2_SET_RX_MASK);
        req.vnic_id = rte_cpu_to_le_16(vnic->fw_vnic_id);