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
net: add rte prefix to ESP structure
[dpdk.git]
/
lib
/
librte_ipsec
/
esp_inb.c
diff --git
a/lib/librte_ipsec/esp_inb.c
b/lib/librte_ipsec/esp_inb.c
index
4e0e12a
..
3e12ca1
100644
(file)
--- a/
lib/librte_ipsec/esp_inb.c
+++ b/
lib/librte_ipsec/esp_inb.c
@@
-68,7
+68,7
@@
inb_cop_prepare(struct rte_crypto_op *cop,
algo = sa->algo_type;
ivp = rte_pktmbuf_mtod_offset(mb, uint64_t *,
algo = sa->algo_type;
ivp = rte_pktmbuf_mtod_offset(mb, uint64_t *,
- pofs + sizeof(struct esp_hdr));
+ pofs + sizeof(struct
rte_
esp_hdr));
/* fill sym op fields */
sop = cop->sym;
/* fill sym op fields */
sop = cop->sym;
@@
-139,9
+139,9
@@
inb_pkt_prepare(const struct rte_ipsec_sa *sa, const struct replay_sqn *rsn,
uint64_t sqn;
uint32_t clen, icv_ofs, plen;
struct rte_mbuf *ml;
uint64_t sqn;
uint32_t clen, icv_ofs, plen;
struct rte_mbuf *ml;
- struct esp_hdr *esph;
+ struct
rte_
esp_hdr *esph;
- esph = rte_pktmbuf_mtod_offset(mb, struct esp_hdr *, hlen);
+ esph = rte_pktmbuf_mtod_offset(mb, struct
rte_
esp_hdr *, hlen);
/*
* retrieve and reconstruct SQN, then check it, then
/*
* retrieve and reconstruct SQN, then check it, then
@@
-295,10
+295,10
@@
static inline void *
tun_process_step2(struct rte_mbuf *mb, struct rte_mbuf *ml, uint32_t hlen,
uint32_t adj, uint32_t tlen, uint32_t *sqn)
{
tun_process_step2(struct rte_mbuf *mb, struct rte_mbuf *ml, uint32_t hlen,
uint32_t adj, uint32_t tlen, uint32_t *sqn)
{
- const struct esp_hdr *ph;
+ const struct
rte_
esp_hdr *ph;
/* read SQN value */
/* read SQN value */
- ph = rte_pktmbuf_mtod_offset(mb, const struct esp_hdr *, hlen);
+ ph = rte_pktmbuf_mtod_offset(mb, const struct
rte_
esp_hdr *, hlen);
sqn[0] = ph->seq;
/* cut of ICV, ESP tail and padding bytes */
sqn[0] = ph->seq;
/* cut of ICV, ESP tail and padding bytes */