net/hns3: increase VF reset retry maximum
[dpdk.git] / drivers / net / enic / base / vnic_dev.c
index 526273c..55c08eb 100644 (file)
@@ -1318,7 +1318,7 @@ int vnic_dev_capable_geneve(struct vnic_dev *vdev)
        int ret;
 
        ret = vnic_dev_cmd(vdev, CMD_GET_SUPP_FEATURE_VER, &a0, &a1, wait);
-       return ret == 0 && (a1 & FEATURE_GENEVE_OPTIONS);
+       return ret == 0 && !!(a1 & FEATURE_GENEVE_OPTIONS);
 }
 
 uint64_t vnic_dev_capable_cq_entry_size(struct vnic_dev *vdev)