From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-SN1-obe.outbound.protection.outlook.com (mail-sn1nam02on0041.outbound.protection.outlook.com [104.47.36.41]) by dpdk.org (Postfix) with ESMTP id 6BC227292 for ; Wed, 21 Mar 2018 12:12:37 +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=ZPivWI/WKfItQSAV8PI/pD+UDR5vyDz9zFodl2DBSEo=; b=YccuZsldTNPeUgbhAbw2OU14tArpWBWUXfVp8vrfzVepEcLbrr7VYNTZ3ouTHxphJ8wcPqYxIOXjL1mj7j/nAEvtBJYlmxvWJp+pjw7DBBRl5kZJCki2BSs1eFi0zi+MDVTGrvt7vMMUxg4bO1xalOifgXGrPjw+pRokFyYpX7Q= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Anoob.Joseph@cavium.com; Received: from ajoseph83.caveonetworks.com.com (115.113.156.2) by BLUPR0701MB1058.namprd07.prod.outlook.com (2a01:111:e400:8b0::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.609.10; Wed, 21 Mar 2018 11:12:33 +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 Mar 2018 16:41:25 +0530 Message-Id: <1521630685-5179-6-git-send-email-anoob.joseph@caviumnetworks.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1521630685-5179-1-git-send-email-anoob.joseph@caviumnetworks.com> References: <1519896103-32479-1-git-send-email-anoob.joseph@caviumnetworks.com> <1521630685-5179-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: MA1PR0101CA0061.INDPRD01.PROD.OUTLOOK.COM (2603:1096:a00:20::23) To BLUPR0701MB1058.namprd07.prod.outlook.com (2a01:111:e400:8b0::27) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: dcfb5e24-2b27-4e0d-0cbc-08d58f1ca688 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(4604075)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:BLUPR0701MB1058; X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1058; 3:bQVYNnGGOXwggWC4/PEgPXQbTDZgyOAjVzynLYmjg/1k6LHLyLSpOUi+8J/fELB8eLxF/9l8YlURa5h8k8ocr3TAGYqEnwTQeR8cxji6C7I4SVM8a88tjMYLYdnpWa8TZgR4e5AlcorQwFkFbpfrRrknE3/jeVVC+SRYNwE2lSepB9MYbyGAKFJvsTdmziIVa72RNXpRGS4Ug0rlFNw98ADP8qAf3VxL5Ly2vwc3mzNS2mb0JKo0uRcgHDCmDyJ+; 25:gWjNnYu8WGU5PmrVQs+uriDjjq6RPt0eiCuXCps55go+NGbKhGQ90sPLLthNnYl9xIFwGbGiQY9Nammf6rrZlSmqRWGpe8W1Mxc6CIIe4z8En12ISnk/TLIaRcINSj3W4V2EjsKeVXxBmIrTkSp29xyEQUMblPlOQxod83PAeAR32MRVjEnnyih9StOUzSKt9FyzwG3eiZZqCaA2i3dowtVmPsIcp7+YBHmwBD0H649aAJUCdrcCMulQX78Xa4BKEKIx5fMgQkey27JyDZvSnO00x2TV203aGkgKxJhC5jpJyrpIfOVV6Jpzuw07kJ9b35Mp3KDPd3nJIEwG7WzWcmF/yIeUISsL3osMLOpWGP0=; 31:gda/OJSszemUp9lTTisFtV+PVoFy1XvyJ4KB0S8mxQNlNwIY40uZYLRVxJyPYY2RF8/tK0gym8eQOKlMrpRjPmgCiGnZYnpffh+mNGHFIJ/e7NcJ/mp4XBtDU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Ljvlwg== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(93006095)(3231221)(944501244)(52105095)(10201501046)(3002001)(6041310)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123558120)(20161123562045)(6072148)(201708071742011); SRVR:BLUPR0701MB1058; BCL:0; PCL:0; RULEID:; SRVR:BLUPR0701MB1058; X-Forefront-PRVS: 0618E4E7E1 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(366004)(396003)(39380400002)(346002)(39860400002)(376002)(199004)(189003)(72206003)(52116002)(51416003)(6506007)(305945005)(25786009)(7736002)(386003)(6666003)(478600001)(81156014)(50466002)(81166006)(110136005)(8936002)(6116002)(3846002)(54906003)(6486002)(316002)(575784001)(2950100002)(5660300001)(16586007)(76176011)(8676002)(8656006)(50226002)(105586002)(36756003)(68736007)(66066001)(42882007)(4326008)(55236004)(26005)(53936002)(97736004)(16526019)(6512007)(106356001)(47776003)(2906002)(48376002)(186003); DIR:OUT; SFP:1101; SCL:1; SRVR:BLUPR0701MB1058; H:ajoseph83.caveonetworks.com.com; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX: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; BLUPR0701MB1058; 23:itaG1p0aemyZ3jRcc7xBj+s9s+w4WcvJ8uf+2dr?= =?us-ascii?Q?ALyfbBrPJPf/5+ZD35zZCwfYV1wiKfma1hcIgaOi/650uO1gsImpqw5esJDv?= =?us-ascii?Q?7y/6Mco3Xee7dh+i9b5lGfyK85iG94pSVOQ8+vLNGTKjA/6Q/kyb8dFY5YQS?= =?us-ascii?Q?H2p7zzn7PUMX9txIzvVgJ4umSApofhhAowCTxaZivE6gw3s+6Ax2KgDxo33C?= =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xk8eCuYz5ed1RlXudZfWo7SLDTVwJM427NDlw?= =?us-ascii?Q?2m+4u5Iz410KyeCXQJXJx7aaETDoHZ+s6bxla2iUQa4Pds534p0QFafNrUem?= =?us-ascii?Q?BUgVAIFoZb2mUTfEztzDV3kice0gaCJT9z+5x?= X-Microsoft-Antispam-Message-Info: 4lwA1RbbL3iJCQWmBMUaPjWR9Ql1iGhwcwXwNymIiQuoNbP7VyBnEDmngbJ4xirhVG1HE5vba/zems1pD/jAn1garhNrXC3Yh/TSN/lkBNZq5hbKp5TlisU0Yn1IPe6E4g0GOcny4if8DbIvoNP3I7dXSDqpF14zyWlDclyHdAUGR71fPZcShXlLT7Tf7lWW X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1058; 6:O2QjkMaYZadWn3o2kebc2LF2Bu0Lx7rsfNnCjlY6HSE0KQ9gPCLs4p+juXDKYNRSSsPOYk93wRhvSiIXQ555uNSKY2rkyMcxvbFXYKto4WfLO3s2r3RVCpvo8+J02ljOHDlqFEw5ZzpbKyIMn420dmIeIEOac6wPXYuunlFX9Xgp0Dt9CgX82JrfyeZXflV8fTi5B5Opc7d/Op7flzXT6yQ5c3KfDnSS8SR3sPin121pugRJe8V9im+di2LtTznGyy9duK8//HjO+q1q2uSDgkSkAoEq9de3UBMm234YPlX8d6jZ9z8c3d+kn3CtTxe8FGSDzrh5sqLgjTbpInp6WalJg/rSIPXkS1I04mLwsGXXKJuQzmzejE4TDWJOjiPLGLksouonn5OgXP/urCZUI1n2xK9HlWPKTWmbu0YCqPXoAR1dDivH873w/Ejd9g+Ja+DxX2nyvC3Ipx4fXrur2A==; 5:LybqIsJQ2O3WSLvrhgBexscaQi2UNiM6/MvbDtX7itgMAj/crWgKypSDCNkw/MDQfHFkBOMugTZNaitGeDg6k9efljd6nju0h49OdbOIRK5k+gbA2c0522hFWUhPMaG1Snq7+cUHdsk2RlTM67Tw31N/UBP3VcRHtZZFIf9ziUs=; 24:dL6pJ2DW8qKLY47haCKRyjCdzDvpM23pMahdE4Wb3o71UAXi50YubbTSjYpFdC3EWX9YmXnDJI7aJmbh9SLsuovsvFYuccRMS/jfzdansjY= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1058; 7:doc2l8DhMu8/wkN93ryYDIEJgVG9J4zVOHA/Xcg4oKkTev5xE6QZSHikABJj/MvJW82wuKtRrRBSyJ8yl3EL76aT8vA3UBGaTuaAwVwLiuyf7P/vPKsbEA0A9FDznTFnxBGZYAcSnYwCjLONBqvQzTc1RwCY1Gc2N9/LRPmm7QLKWt+mWvp9t6Iney7mNvuRgNuJDT+LpUejEmO/Gbb4JrTauzU+LJnZhFzr33OGILKYd3IJFKKyNWYJiUQ+eY8X X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Mar 2018 11:12:33.1823 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: dcfb5e24-2b27-4e0d-0cbc-08d58f1ca688 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR0701MB1058 Subject: [dpdk-dev] [PATCH v3 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 Mar 2018 11:12:38 -0000 Adding support for IPsec event Signed-off-by: Anoob Joseph --- 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", -- 2.7.4