diff options
author | Sergio Gonzalez Monroy <sergio.gonzalez.monroy@intel.com> | 2016-12-15 15:56:12 +0000 |
---|---|---|
committer | Damjan Marion <dmarion.lists@gmail.com> | 2016-12-19 18:51:52 +0000 |
commit | b75b8df6bd3fb0ae4015752c13fb87be84475111 (patch) | |
tree | 4b6ae9b41372802411bf301107599a4ed9136fab /vnet | |
parent | 85bb93ae860148984dc1a495de965c502e01d3bb (diff) |
dpdk: fix IV physical address in esp-decrypt
Change-Id: I96b74aa82231038c54e9d07b54cc16fc53efe0be
Signed-off-by: Sergio Gonzalez Monroy <sergio.gonzalez.monroy@intel.com>
Diffstat (limited to 'vnet')
-rw-r--r-- | vnet/vnet/devices/dpdk/ipsec/esp_decrypt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vnet/vnet/devices/dpdk/ipsec/esp_decrypt.c b/vnet/vnet/devices/dpdk/ipsec/esp_decrypt.c index 2c43e24b531..89ab9f9bc43 100644 --- a/vnet/vnet/devices/dpdk/ipsec/esp_decrypt.c +++ b/vnet/vnet/devices/dpdk/ipsec/esp_decrypt.c @@ -252,8 +252,8 @@ dpdk_esp_decrypt_node_fn (vlib_main_t * vm, clib_memcpy(icb->iv, iv, 8); icb->cnt = clib_host_to_net_u32(1); sym_cop->cipher.iv.data = (u8 *)icb; - sym_cop->cipher.iv.phys_addr = rte_pktmbuf_mtophys_offset(mb0, - (u8 *)icb - rte_pktmbuf_mtod(mb0, u8 *)); + sym_cop->cipher.iv.phys_addr = cop->phys_addr + + (uintptr_t)icb - (uintptr_t)cop; sym_cop->cipher.iv.length = 16; u8 *aad = priv->aad; |