summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnand B Jyoti <anand.b.jyoti@intel.com>2017-10-12 07:04:03 +0530
committerAnand B Jyoti <anand.b.jyoti@intel.com>2017-10-12 07:17:04 +0530
commit01538d73cc815f943d9c4341cbe8356bb9d93440 (patch)
treebe8cdb1506916bd9179ad2efd3ac86314a3ea090
parent3531f205d7931cfbc381b28225dbf9f91e3df5df (diff)
vACL: The ethernet mac address not updated correctly
JIRA: SAMPLEVNF-85 The ethernet header pointer initialization was wrong due to which the MAC address were not updated. Hence the packets were not reaching the destination. Change-Id: I90a38bba8d26d5f481c6476e6995eed92970b6e3 Signed-off-by: Anand B Jyoti <anand.b.jyoti@intel.com>
-rw-r--r--VNFs/vACL/pipeline/pipeline_acl_be.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/VNFs/vACL/pipeline/pipeline_acl_be.c b/VNFs/vACL/pipeline/pipeline_acl_be.c
index 512c2f64..d4b92109 100644
--- a/VNFs/vACL/pipeline/pipeline_acl_be.c
+++ b/VNFs/vACL/pipeline/pipeline_acl_be.c
@@ -784,7 +784,7 @@ pkt_work_acl_key(struct rte_pipeline *p,
/* Gateway Proc Starts */
struct ether_hdr *ehdr = (struct ether_hdr *)
RTE_MBUF_METADATA_UINT32_PTR(pkt,
- META_DATA_OFFSET + MBUF_HDR_ROOM);
+ META_DATA_OFFSET + RTE_PKTMBUF_HEADROOM);
struct ipv4_hdr *ipv4hdr = (struct ipv4_hdr *)
RTE_MBUF_METADATA_UINT32_PTR(pkt, IP_START);
@@ -896,7 +896,7 @@ pkt_work_acl_key(struct rte_pipeline *p,
struct ether_hdr *ehdr = (struct ether_hdr *)
RTE_MBUF_METADATA_UINT32_PTR(pkt,
- META_DATA_OFFSET + MBUF_HDR_ROOM);
+ META_DATA_OFFSET + RTE_PKTMBUF_HEADROOM);
struct ether_addr dst_mac;
uint8_t nhipv6[IPV6_ADD_SIZE];
@@ -1481,7 +1481,7 @@ pkt_work_acl_ipv4_key(struct rte_pipeline *p,
/* Gateway Proc Starts */
struct ether_hdr *ehdr = (struct ether_hdr *)
RTE_MBUF_METADATA_UINT32_PTR(pkt,
- META_DATA_OFFSET + MBUF_HDR_ROOM);
+ META_DATA_OFFSET + RTE_PKTMBUF_HEADROOM);
struct ipv4_hdr *ipv4hdr = (struct ipv4_hdr *)
RTE_MBUF_METADATA_UINT32_PTR(pkt, IP_START);
@@ -2065,7 +2065,7 @@ pkt_work_acl_ipv6_key(struct rte_pipeline *p,
struct ether_hdr *ehdr = (struct ether_hdr *)
RTE_MBUF_METADATA_UINT32_PTR(pkt,
- META_DATA_OFFSET + MBUF_HDR_ROOM);
+ META_DATA_OFFSET + RTE_PKTMBUF_HEADROOM);
struct ether_addr dst_mac;
uint32_t dest_if = INVALID_DESTIF;