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
version: 20.05-rc2
[dpdk.git]
/
lib
/
librte_ipsec
/
esp_outb.c
diff --git
a/lib/librte_ipsec/esp_outb.c
b/lib/librte_ipsec/esp_outb.c
index
b6d9cbe
..
fb9d586
100644
(file)
--- a/
lib/librte_ipsec/esp_outb.c
+++ b/
lib/librte_ipsec/esp_outb.c
@@
-502,7
+502,9
@@
cpu_outb_pkt_prepare(const struct rte_ipsec_session *ss,
move_bad_mbufs(mb, dr, n, n - k);
/* convert mbufs to iovecs and do actual crypto/auth processing */
move_bad_mbufs(mb, dr, n, n - k);
/* convert mbufs to iovecs and do actual crypto/auth processing */
- cpu_crypto_bulk(ss, sa->cofs, mb, iv, aad, dgst, l4ofs, clen, k);
+ if (k != 0)
+ cpu_crypto_bulk(ss, sa->cofs, mb, iv, aad, dgst,
+ l4ofs, clen, k);
return k;
}
return k;
}