net: replace IPv4/v6 constants with uppercase name
[dpdk.git] / lib / librte_vhost / virtio_net.c
index fe99116..bd6635c 100644 (file)
@@ -988,14 +988,14 @@ parse_ethernet(struct rte_mbuf *m, uint16_t *l4_proto, void **l4_hdr)
        l3_hdr = (char *)eth_hdr + m->l2_len;
 
        switch (ethertype) {
-       case RTE_ETHER_TYPE_IPv4:
+       case RTE_ETHER_TYPE_IPV4:
                ipv4_hdr = l3_hdr;
                *l4_proto = ipv4_hdr->next_proto_id;
                m->l3_len = (ipv4_hdr->version_ihl & 0x0f) * 4;
                *l4_hdr = (char *)l3_hdr + m->l3_len;
                m->ol_flags |= PKT_TX_IPV4;
                break;
-       case RTE_ETHER_TYPE_IPv6:
+       case RTE_ETHER_TYPE_IPV6:
                ipv6_hdr = l3_hdr;
                *l4_proto = ipv6_hdr->proto;
                m->l3_len = sizeof(struct rte_ipv6_hdr);