git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
raw/ioat: create device on probe and destroy on release
[dpdk.git]
/
examples
/
l2fwd-crypto
/
main.c
diff --git
a/examples/l2fwd-crypto/main.c
b/examples/l2fwd-crypto/main.c
index
06f5d1d
..
e282cb7
100644
(file)
--- a/
examples/l2fwd-crypto/main.c
+++ b/
examples/l2fwd-crypto/main.c
@@
-396,7
+396,7
@@
l2fwd_simple_crypto_enqueue(struct rte_mbuf *m,
eth_hdr = rte_pktmbuf_mtod(m, struct rte_ether_hdr *);
eth_hdr = rte_pktmbuf_mtod(m, struct rte_ether_hdr *);
- if (eth_hdr->ether_type != rte_cpu_to_be_16(RTE_ETHER_TYPE_IP
v
4))
+ if (eth_hdr->ether_type != rte_cpu_to_be_16(RTE_ETHER_TYPE_IP
V
4))
return -1;
ipdata_offset = sizeof(struct rte_ether_hdr);
return -1;
ipdata_offset = sizeof(struct rte_ether_hdr);
@@
-404,8
+404,8
@@
l2fwd_simple_crypto_enqueue(struct rte_mbuf *m,
ip_hdr = (struct rte_ipv4_hdr *)(rte_pktmbuf_mtod(m, char *) +
ipdata_offset);
ip_hdr = (struct rte_ipv4_hdr *)(rte_pktmbuf_mtod(m, char *) +
ipdata_offset);
- ipdata_offset += (ip_hdr->version_ihl & IPV4_HDR_IHL_MASK)
- * IPV4_IHL_MULTIPLIER;
+ ipdata_offset += (ip_hdr->version_ihl &
RTE_
IPV4_HDR_IHL_MASK)
+ *
RTE_
IPV4_IHL_MULTIPLIER;
/* Zero pad data to be crypto'd so it is block aligned */
/* Zero pad data to be crypto'd so it is block aligned */