diff options
author | Damjan Marion <damarion@cisco.com> | 2016-11-15 12:50:28 +0100 |
---|---|---|
committer | Dave Barach <openvpp@barachs.net> | 2016-11-22 22:11:12 +0000 |
commit | 22766b824d5b243c7353df0d80e73a50aa9f73ff (patch) | |
tree | 2fa04fff2e06c498bafa72d92ecb3a02ed876b2c /vnet/vnet/ipsec/esp_encrypt.c | |
parent | 177bbdcd8fa4e7621c5bdd3afd8c6e74b603e096 (diff) |
dpdk: quad loop dpdk tx and code optimizations
Beside performance optimization this change
also introduces rte_mbuf validation in dpdk tx code.
If packet is arrving from non-DPDK source like
self-originated packets or non-dpdk devices (tuntap,
af_packet, netmap, pg) it is not anymore exepcted
that it contains valid rte_mbuf metadata unless it is
explictely stated by setting VNET_BUFFER_RTE_MBUF_VALID
flag.
dpdk-input node sets VNET_BUFFER_RTE_MBUF_VALID on all
packets and that reduces cost of validation in tx node.
Change-Id: I4ad40f398f7b5cf90656a2069a27c0f6fc13efba
Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'vnet/vnet/ipsec/esp_encrypt.c')
-rw-r--r-- | vnet/vnet/ipsec/esp_encrypt.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/vnet/vnet/ipsec/esp_encrypt.c b/vnet/vnet/ipsec/esp_encrypt.c index 7d05da0d566..b7186e3dc0f 100644 --- a/vnet/vnet/ipsec/esp_encrypt.c +++ b/vnet/vnet/ipsec/esp_encrypt.c @@ -311,7 +311,6 @@ esp_encrypt_node_fn (vlib_main_t * vm, oeh0 = (ethernet_header_t *) o_b0->data; clib_memcpy (oeh0, ieh0, sizeof (ethernet_header_t)); next0 = ESP_ENCRYPT_NEXT_INTERFACE_OUTPUT; - o_b0->flags |= BUFFER_OUTPUT_FEAT_DONE; vnet_buffer (o_b0)->sw_if_index[VLIB_TX] = vnet_buffer (i_b0)->sw_if_index[VLIB_TX]; } |