[dpdk-dev] [PATCH v3 5/5] app/testpmd: support for IPsec event
Anoob Joseph
Anoob.Joseph at caviumnetworks.com
Tue Apr 3 16:29:15 CEST 2018
Adding maintainers of testpmd & lib/ethdev
Thanks,
Anoob
On 21/03/18 16:41, Anoob Joseph wrote:
> Adding support for IPsec event
>
> Signed-off-by: Anoob Joseph <anoob.joseph at caviumnetworks.com>
> ---
> v3:
> * No change
>
> v2:
> * No change
>
> app/test-pmd/parameters.c | 2 ++
> app/test-pmd/testpmd.c | 2 ++
> 2 files changed, 4 insertions(+)
>
> diff --git a/app/test-pmd/parameters.c b/app/test-pmd/parameters.c
> index 97d22b8..7ea882f 100644
> --- a/app/test-pmd/parameters.c
> +++ b/app/test-pmd/parameters.c
> @@ -512,6 +512,8 @@ parse_event_printing_config(const char *optarg, int enable)
> mask = UINT32_C(1) << RTE_ETH_EVENT_INTR_RESET;
> else if (!strcmp(optarg, "vf_mbox"))
> mask = UINT32_C(1) << RTE_ETH_EVENT_VF_MBOX;
> + else if (!strcmp(optarg, "ipsec"))
> + mask = UINT32_C(1) << RTE_ETH_EVENT_IPSEC;
> else if (!strcmp(optarg, "macsec"))
> mask = UINT32_C(1) << RTE_ETH_EVENT_MACSEC;
> else if (!strcmp(optarg, "intr_rmv"))
> diff --git a/app/test-pmd/testpmd.c b/app/test-pmd/testpmd.c
> index 4c0e258..32fb8b1 100644
> --- a/app/test-pmd/testpmd.c
> +++ b/app/test-pmd/testpmd.c
> @@ -292,6 +292,7 @@ uint32_t event_print_mask = (UINT32_C(1) << RTE_ETH_EVENT_UNKNOWN) |
> (UINT32_C(1) << RTE_ETH_EVENT_INTR_LSC) |
> (UINT32_C(1) << RTE_ETH_EVENT_QUEUE_STATE) |
> (UINT32_C(1) << RTE_ETH_EVENT_INTR_RESET) |
> + (UINT32_C(1) << RTE_ETH_EVENT_IPSEC) |
> (UINT32_C(1) << RTE_ETH_EVENT_MACSEC) |
> (UINT32_C(1) << RTE_ETH_EVENT_INTR_RMV);
>
> @@ -2024,6 +2025,7 @@ eth_event_callback(portid_t port_id, enum rte_eth_event_type type, void *param,
> [RTE_ETH_EVENT_QUEUE_STATE] = "Queue state",
> [RTE_ETH_EVENT_INTR_RESET] = "Interrupt reset",
> [RTE_ETH_EVENT_VF_MBOX] = "VF Mbox",
> + [RTE_ETH_EVENT_IPSEC] = "IPsec",
> [RTE_ETH_EVENT_MACSEC] = "MACsec",
> [RTE_ETH_EVENT_INTR_RMV] = "device removal",
> [RTE_ETH_EVENT_NEW] = "device probed",
More information about the dev
mailing list