net: replace IPv4/v6 constants with uppercase name
[dpdk.git] / drivers / net / bnxt / bnxt_ethdev.c
index b0244d6..6d2a672 100644 (file)
@@ -1796,8 +1796,8 @@ bnxt_match_and_validate_ether_filter(struct bnxt *bp,
        int match = 0;
        *ret = 0;
 
-       if (efilter->ether_type == RTE_ETHER_TYPE_IPv4 ||
-               efilter->ether_type == RTE_ETHER_TYPE_IPv6) {
+       if (efilter->ether_type == RTE_ETHER_TYPE_IPV4 ||
+               efilter->ether_type == RTE_ETHER_TYPE_IPV6) {
                PMD_DRV_LOG(ERR, "invalid ether_type(0x%04x) in"
                        " ethertype filter.", efilter->ether_type);
                *ret = -EINVAL;