summaryrefslogtreecommitdiff
path: root/examples/l2fwd-crypto
diff options
context:
space:
mode:
authorThomas Monjalon <thomas@monjalon.net>2017-11-04 02:22:21 +0100
committerThomas Monjalon <thomas@monjalon.net>2017-11-06 22:24:25 +0100
commit87cf4c6cca30201ae4d94ddf527e78bebec9680b (patch)
treeb39619f9ec99665b079967af3524f82b844f4ced /examples/l2fwd-crypto
parent62196f4e0941fe242b43dc8f47fe35e5121f115a (diff)
downloaddpdk-87cf4c6cca30201ae4d94ddf527e78bebec9680b.zip
dpdk-87cf4c6cca30201ae4d94ddf527e78bebec9680b.tar.gz
dpdk-87cf4c6cca30201ae4d94ddf527e78bebec9680b.tar.xz
malloc: rename address mapping function to IOVA
The function rte_malloc_virt2phy() is renamed to rte_malloc_virt2iova(). The deprecated name is kept as an alias to avoid breaking the API. Signed-off-by: Thomas Monjalon <thomas@monjalon.net> Acked-by: Santosh Shukla <santosh.shukla@caviumnetworks.com>
Diffstat (limited to 'examples/l2fwd-crypto')
-rw-r--r--examples/l2fwd-crypto/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/l2fwd-crypto/main.c b/examples/l2fwd-crypto/main.c
index 8416660..06f90ab 100644
--- a/examples/l2fwd-crypto/main.c
+++ b/examples/l2fwd-crypto/main.c
@@ -2484,7 +2484,7 @@ reserve_key_memory(struct l2fwd_crypto_options *options)
options->aad.data = rte_malloc("aad", MAX_KEY_SIZE, 0);
if (options->aad.data == NULL)
rte_exit(EXIT_FAILURE, "Failed to allocate memory for AAD");
- options->aad.phys_addr = rte_malloc_virt2phy(options->aad.data);
+ options->aad.phys_addr = rte_malloc_virt2iova(options->aad.data);
}
int