From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-BL2-obe.outbound.protection.outlook.com (mail-bl2nam02on0063.outbound.protection.outlook.com [104.47.38.63]) by dpdk.org (Postfix) with ESMTP id B7F8E2BF4 for ; Wed, 21 Feb 2018 06:38:53 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=L6sgLMTP6BaQh/S3zFaXqqMCdxEAYj6pz9TxT5KxGdQ=; b=HR55lEWZ/eWoetgeJAHwhguEsmDc0ICNEupfgRGJ6jUi4NxHA77CBA7UNbhyaNewJLDYzkZqCJms8wgg72DcQqLklkluPFpLRdbBaYZEmvdaZuDXunhZOcmQ7dcTE1p0kgtCG4PVdstZTFSFL9deCEdYyvNwxJgsx4WspuF6lPg= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Anoob.Joseph@cavium.com; Received: from ajoseph83.caveonetworks.com.caveonetworks.com (115.113.156.2) by DM2PR0701MB1066.namprd07.prod.outlook.com (2a01:111:e400:2472::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.506.18; Wed, 21 Feb 2018 05:38:49 +0000 From: Anoob Joseph To: Akhil Goyal , Declan Doherty , Radu Nicolau Cc: Anoob Joseph , Jerin Jacob , Narayana Prasad , Nelio Laranjeiro , dev@dpdk.org Date: Wed, 21 Feb 2018 11:07:10 +0530 Message-Id: <1519191430-19201-6-git-send-email-anoob.joseph@caviumnetworks.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1519191430-19201-1-git-send-email-anoob.joseph@caviumnetworks.com> References: <1516626668-9031-0-git-send-email-anoob.joseph@caviumnetworks.com> <1519191430-19201-1-git-send-email-anoob.joseph@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [115.113.156.2] X-ClientProxiedBy: CY4PR22CA0059.namprd22.prod.outlook.com (2603:10b6:903:ae::21) To DM2PR0701MB1066.namprd07.prod.outlook.com (2a01:111:e400:2472::19) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: df0ecd70-9430-41a2-d17d-08d578ed6408 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(5600026)(4604075)(2017052603307)(7153060)(7193020); SRVR:DM2PR0701MB1066; X-Microsoft-Exchange-Diagnostics: 1; DM2PR0701MB1066; 3:3aaM+mKi7Lr/yvZ+nOGIhgNLg7WC11h5VwyLdzQlJkTauRaYiUqsMpG2vH67hHbo9a4kb1vm/UVn8oJ4mvLa++cofxpflmZAMyqtRDZnF2OkfVagABB/r+BvG0AkMv6/71DyYngBfpX5dD4/fdxLsWtn3McqkqakuowcFLDSmDVyFuRcg3vbzGxwVcMwxj7iv69vFkUNsFRMt09JeoD1nCnOb4TAghhmV6ZwjysYy/fihjkjKYvqrJTFLK9CcVB2; 25:8Q/ars6vwo421TWvGL5+k3FsR9A1cyvbwwsvCZCnKUIvjyQ39HtXFwDF61R5ueSGlZmYmGvdCt1ZE2lSGqHdwtJoXgTyWOJThS4O5ildOhIExLc2tbx9KsD8i6rTc0yaSSczQR8YaBBcZmrA5Ugc0rUj8RuGZvj9pApqK+zZ6H/oCKNZlkscbVl5+XZCIeGWPeKntqDvLaYajJqrD0i+Xig34fo4XaKY94YT+f4xP7dlUL9EYZErV5/zLU+OsWbSYAjZlGWqGg+hlyQlH0TOCAz3RpYlT88OYDXfYdLqgu27tsV1nC0OdkSGOAyQ2XuajGK5tZGSfuVgfHzpQkYM5Q==; 31:4rmoT3y5ioD+WDbKHZTrAByqUMrDqKaNtwC/CCg6UB5RJ+xYcAS5HIawGiTrf37khN2SNwlXv9DM73HGABbUrUjbWDaC3PhpDoZIQMwwXDObBtr9Or6wus41GRwPxStZdK0kOrABdgMEby3b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AA== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001063)(6040501)(2401047)(5005006)(8121501046)(3002001)(93006095)(10201501046)(3231101)(944501161)(6041288)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(20161123562045)(20161123560045)(6072148)(201708071742011); SRVR:DM2PR0701MB1066; BCL:0; PCL:0; RULEID:; SRVR:DM2PR0701MB1066; X-Forefront-PRVS: 0590BBCCBC X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(366004)(396003)(39380400002)(346002)(376002)(39860400002)(189003)(199004)(106356001)(386003)(76176011)(66066001)(47776003)(6512007)(478600001)(186003)(26005)(16526019)(2950100002)(72206003)(6666003)(42882006)(5660300001)(7736002)(105586002)(68736007)(36756003)(6506007)(305945005)(50466002)(81156014)(16586007)(6486002)(48376002)(4326008)(110136005)(8676002)(55236004)(53936002)(316002)(81166006)(2906002)(6116002)(51416003)(575784001)(3846002)(52116002)(50226002)(25786009)(97736004)(8656006)(54906003)(8936002); DIR:OUT; SFP:1101; SCL:1; SRVR:DM2PR0701MB1066; H:ajoseph83.caveonetworks.com.caveonetworks.com; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM2PR0701MB1066; 23:wWlLUd7CNHuSvWqaWVPZf49QLOvkWyn79Uj9Hqz?= =?us-ascii?Q?GT4xKQOT1hCIE715rLfiUHAn7cK+MRNtaThR5+7ibUjqmc9i2VLuznYgtRY6?= =?us-ascii?Q?AylzztqiFAg5SuAzQ/YCij0oXkChV5HJwc0+iyUPGw13VhcF/4tR+vq9YFaB?= =?us-ascii?Q?BEJqlsxWiJxhMoA9Oqz8wKtYTJ6pvTrJGCGxGKeo2YwD9ol2Zouhar6sfPR0?= =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nrm7hkETqrNGt6VhU2cCZ+TT2F5h2p4iVmiHe SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Feb 2018 05:38:49.7581 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: df0ecd70-9430-41a2-d17d-08d578ed6408 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM2PR0701MB1066 Subject: [dpdk-dev] [PATCH 5/5] app/testpmd: support for IPsec event X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Feb 2018 05:38:54 -0000 Adding support for IPsec event Signed-off-by: Anoob Joseph --- 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", -- 2.7.4