diff options
author | Reshma Pattan <reshma.pattan@intel.com> | 2019-11-08 10:02:00 +0000 |
---|---|---|
committer | Ferruh Yigit <ferruh.yigit@intel.com> | 2019-11-20 17:36:06 +0100 |
commit | 5fde1a75926bad69b430ce9d7e4da4e2447e1cb6 (patch) | |
tree | 7781903ec07dda604b02a38789068f7f68845029 /drivers | |
parent | 50318975060dda879b01e33a37684652dbcc82c6 (diff) | |
download | dpdk-5fde1a75926bad69b430ce9d7e4da4e2447e1cb6.zip dpdk-5fde1a75926bad69b430ce9d7e4da4e2447e1cb6.tar.gz dpdk-5fde1a75926bad69b430ce9d7e4da4e2447e1cb6.tar.xz |
net: use IPV4 VHL constant
Use new macro RTE_IPV4_VHL_DEF instead of IP_VHL_DEF
wherever applicable.
Signed-off-by: Reshma Pattan <reshma.pattan@intel.com>
Acked-by: Hyong Youb Kim <hyonkim@cisco.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/enic/enic_fm_flow.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/net/enic/enic_fm_flow.c b/drivers/net/enic/enic_fm_flow.c index a1598b8..e3e3d73 100644 --- a/drivers/net/enic/enic_fm_flow.c +++ b/drivers/net/enic/enic_fm_flow.c @@ -17,9 +17,6 @@ #include "vnic_nic.h" #define IP_DEFTTL 64 /* from RFC 1340. */ -#define IP_VERSION 0x40 -#define IP_HDRLEN 0x05 /* default IP header length == five 32-bits words. */ -#define IP_VHL_DEF (IP_VERSION | IP_HDRLEN) #define IP6_VTC_FLOW 0x60000000 /* Highest Item type supported by Flowman */ @@ -1000,7 +997,7 @@ enic_fm_copy_vxlan_encap(struct enic_flowman *fm, sizeof(struct rte_vxlan_hdr); append_template(&template, &off, item->spec, sizeof(struct rte_ipv4_hdr)); - ip4->version_ihl = IP_VHL_DEF; + ip4->version_ihl = RTE_IPV4_VHL_DEF; if (ip4->time_to_live == 0) ip4->time_to_live = IP_DEFTTL; ip4->next_proto_id = IPPROTO_UDP; |