examples/ipsec-secgw: add event mode
[dpdk.git] / examples / ipsec-secgw / event_helper.c
index 0854fc2..076f1f2 100644 (file)
@@ -960,6 +960,8 @@ eh_find_worker(uint32_t lcore_id, struct eh_conf *conf,
        else
                curr_conf.cap.burst = EH_RX_TYPE_NON_BURST;
 
+       curr_conf.cap.ipsec_mode = conf->ipsec_mode;
+
        /* Parse the passed list and see if we have matching capabilities */
 
        /* Initialize the pointer used to traverse the list */
@@ -1400,6 +1402,7 @@ eh_conf_init(void)
 
        /* Packet transfer mode: poll */
        conf->mode = EH_PKT_TRANSFER_MODE_POLL;
+       conf->ipsec_mode = EH_IPSEC_MODE_TYPE_APP;
 
        /* Keep all ethernet ports enabled by default */
        conf->eth_portmask = -1;