From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-CO1-obe.outbound.protection.outlook.com (mail-co1nam03on0077.outbound.protection.outlook.com [104.47.40.77]) by dpdk.org (Postfix) with ESMTP id C400D1BABE for ; Wed, 11 Apr 2018 08:42:11 +0200 (CEST) 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=XpXd1lE9JqA05s8W1PZZtue+sYaiLgidZwWkDAlroRw=; b=CCHQNi0kaMD02yKnT/Af3w+kPQE6JV/t1wrHdqwQQw5pEiHpkqcEG5fio9JORWnMbAVfAA1dcPhDUVU5sX7o/SnwhxCtAb9169qZr89R7fL1U01zqCYX9C3A7rnWBfY8C0nxdk+d+g1M+KqHkME8sVQ1VUsFkmHF8krTwPYxw0I= 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 SN2PR0701MB1071.namprd07.prod.outlook.com (2a01:111:e400:341f::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.675.10; Wed, 11 Apr 2018 06:42:06 +0000 From: Anoob Joseph To: Akhil Goyal , Declan Doherty , Jingjing Wu , Radu Nicolau , Thomas Monjalon , Wenzhuo Lu Cc: Anoob Joseph , Jerin Jacob , Narayana Prasad , Nelio Laranjeiro , dev@dpdk.org Date: Wed, 11 Apr 2018 12:10:46 +0530 Message-Id: <1523428846-9774-6-git-send-email-anoob.joseph@caviumnetworks.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1523428846-9774-1-git-send-email-anoob.joseph@caviumnetworks.com> References: <1521630685-5179-1-git-send-email-anoob.joseph@caviumnetworks.com> <1523428846-9774-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: BMXPR01CA0029.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:c::15) To SN2PR0701MB1071.namprd07.prod.outlook.com (2a01:111:e400:341f::17) X-MS-PublicTrafficType: Email X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(5600026)(2017052603328)(7153060)(7193020); SRVR:SN2PR0701MB1071; X-Microsoft-Exchange-Diagnostics: 1; SN2PR0701MB1071; 3:S1VEVpxMGyT8YLph5TR2NgaqrLutLu7yYlKBY0H8Yew3509sQ+1BiqCPJsRI7ALNx7FbuymKbFTKg3ssVbglB49AtMZLC4hlpFXcld6TGIY6OLwpKV4o8+m7Ag/WA531p43vqD0LT28K2W1552KvMwnxAllbhBYeZr68kCdI0ftQ7Fm3ws4Y6xmIXgEWWtFelg0Ir2yp0DhhLAAkfEFZCCCTtHBuKYqCWvu3eUKYbkPO6CrKbsJE+TrkypuDnbqH; 25:VK6VDwiTQSFmrgTSg4oiZmBY5JxgIb80Ta4uCU6jlC62rG5KfTW2hhHUdN5BfdiQcZ+/HccgVt4U6MpBHtQfsP0Ig8H8ytv3Rng6d1Qt05g1aIyz2UK2FRlj1pHTMWxXHF2agGeVZFuw3M+/FB7yDLzXDSEqEWMGFtvHxKgDq1PAgUY33ZzUbKes5cywRn0fpyWE2rZBJIHMAEDBvbiI0IQYqJY/FgNh01K37q7dxPGkOui8fXk+mQ3OOwCVMQ750aNqQZIMwn6115+R1TM5ky9iFjh6uF7cpCUod9f7Y30CV1EFx2IX0oxZRWK1RQEcwTeJ+5Er2h8nCW7xHF/nHw==; 31:p9G9YaIwGm8Hyz+6p7CKpOJWd/alobEhd61wlA3942jb7CkByu/Zgpow8uazsSf1i7eqPowL5Tj/KCRpk9EQ/D3BpzxUpa8FQZ7wfnly3LIImKxSoW/M2jIyhhyLDDQGQ8StT8ITqUJz+HGiBEPcP+VnK83o9EH8JMeVVXqMiXz6fjBewGh/vApRRvf5GIa2utb2REp4UFc5P5iRx2oYHULNSgKok0w4fbpyydeES7o= X-MS-TrafficTypeDiagnostic: SN2PR0701MB1071: X-Microsoft-Exchange-Diagnostics: 1; SN2PR0701MB1071; 20:Xck8MDwv2M/0/NoDVZQ4DHmiGwQXt5is9Cs8iHJZdugj7JySNoILTUcMivt0N4lkxOwMQYbYUAR2h8odNRqf+v1X6IBnOEq7g4DZaDcifTs+Z2jMBuucrPaQDVWHJETzGGF83GiA2gWn7vYUgVDePzxOcXbMl6GFISlf51eteswfJzRCvVvSvgFjhw6s7ii0i945WpyivruebELlAaVXxQKNS10J28YmqfZj0lrx/nAO5qcSpnQ3qFrprvnnIUuXNvmB7fMGthDrqywKRKSsPsmaWBzM3YZ8wRRPJM20gDaUOiklgN0awSugrSE6Xoy6Yfv7AD6CRgN1SfpBFWb4x2a+ppmv6g3mt9P5BbKewZ7X34/dgyFZu3GWjJ2yC4r2rD8qx16qAtTCSDwgrlUCbVjPkdQJaLezqfHLcxC2zz5TLOuzMPm4nTD1hpQzKYqroLX0WVRhmncFgUrUPIeJCRh6xkWMJWhO0NvHpndKa6V58hGBh93rI89H8HJc4WqKAldVHfPM3mzgm49L7ScNBCkp7eO40Y7595ztMZMslTkcCbxgZitBQNBJWeGspCKikW+yn3RpjHz492+kXUL8tJgBTyGwgrbaFwzYmuKD6Dc=; 4:U41rOLtYitm0QbLijYvaa23FPeaj8Vt+PgbMxBtCHT6G7ZQWE0WzlGyPZtzEWTkXuO0xFoFohOTbEyJYvzfK0kGFieln/y1sur4lpbK0p40squvGddAc31Wuc9I+BP7dG6hApYctqmphqrkde0+YuCkZVelDCGZpXclanYZ+leQX8f52PLXHRyCCczfyeitoA5gNJeITVR+hLsyfc7jVxF+9S+ek0b4tRvO0tFpPhQ95F0nSwUxC5ltHks90KKO0hsRZxsbVfBxDbAt1I2wlqhNryD0Vq4Lb2Bf7FdyssyZL0pKFqwT3u4jHRA6j9BmD X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(93006095)(3002001)(3231221)(944501327)(52105095)(10201501046)(6041310)(20161123558120)(20161123564045)(20161123562045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011); SRVR:SN2PR0701MB1071; BCL:0; PCL:0; RULEID:; SRVR:SN2PR0701MB1071; X-Forefront-PRVS: 0639027A9E X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(39860400002)(396003)(39380400002)(346002)(366004)(376002)(189003)(199004)(316002)(53936002)(5660300001)(6116002)(478600001)(3846002)(8936002)(66066001)(6486002)(97736004)(4326008)(81166006)(50226002)(81156014)(8676002)(26005)(42882007)(6512007)(47776003)(50466002)(48376002)(575784001)(25786009)(16526019)(186003)(7736002)(72206003)(68736007)(52116002)(51416003)(8656006)(36756003)(6506007)(305945005)(2906002)(55236004)(386003)(16586007)(486006)(446003)(105586002)(106356001)(76176011)(476003)(110136005)(2616005)(11346002)(956004)(54906003)(6666003); DIR:OUT; SFP:1101; SCL:1; SRVR:SN2PR0701MB1071; H:ajoseph83.caveonetworks.com.caveonetworks.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; SN2PR0701MB1071; 23:NuWhjHP3BbMzjMOeuoQuU3JScYGskVKADP1QP24?= =?us-ascii?Q?ldFTqJ/QPUIH9GbDU4Z3AOL2Z/9imNvLDitusZ+PfIGGSb9XHiMniFceS7iu?= =?us-ascii?Q?AbketMlAVAqcUfwhLdyKLWRp7qY+4fZvcXYwyGdcfhfsm8LqsaIwJ1AEvTEX?= =?us-ascii?Q?GNm095tbjOU0elbWp0p9LbEcg7DhAjg0AV3cp2i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2nWG2RCXkf7EMckDrDBQ+nb1gpH6LmgWYdOz9YrFYDML?= =?us-ascii?Q?vRtiuUE2tiDqbBP2IHk/5l+8FJU/NqPRvVeL/Zt9VSFHPwi5iYuqJAyCuB0j?= =?us-ascii?Q?zgmZeZQleukG+t/oFBUHTTCSH0NbYlcyc9FHtMjylhmsL4+YuxCO5sHSWF23?= =?us-ascii?Q?Je7vtcpF3azobA+Hu4hHSFzDKhr9oVVGpOiJkY7VgCAN6QUuL6tfHppqId4A?= =?us-ascii?Q?abw=3D=3D?= X-Microsoft-Antispam-Message-Info: o0/IQaiJvMx/V+F7lHv8Tsot9efOnt8iMqtgv0gwKU+ncxvXBsh+3TUujhdnGq1Trrvw1GGa7MLUaKelFCzVJXWKE2Jl6UF4TyFfScyLHrFU1gOKIp0F5dKy4+Mkf/jc+v60vtKns367awHqSXcM/p92Don87JS2HQvfsnbJ3eyjAu+14C6d3LQO66EJ2EVM X-Microsoft-Exchange-Diagnostics: 1; SN2PR0701MB1071; 6:XZmyINjOTMCxFCam9WqBtEm7myl8kFGdXlBUdejFlDZq6T6T71Ykamrhk/LZ1x8QPQJBAbO/v5+pcRQq1XPvKgBe+U9D/4rVzFQaq+06LchvzrGTXJrHgBEJob+xrb6nBgYYm+BnFJnzr6O95/W5YVj8hkBjACFpL81NRp7lDgTlZBYn2b/REcvnDkLKeOUELJktf4O6CFBIohtDzxrcSpg7krlG7FixflZPH/jfELCznbZucNciz6xXyglRY6ZkHEnytmAL1jMxriRKGiB4c1SLE9h/S1N75RKDZmjF2Z5DkOdjUSpVgdEObR5yUuCGjDEKuRuAPGr4OKaZGbC4sKtJffX+z1I8R/fzpYBnAAFvcSnybVz119HOPiXiYqFYD21KInKYgJv3zNKyujVNGKmT2J49Vwo+PYR2SR225INj2eWxZ/l1lchWnI4apBR19KF1UnALnSCu8jShKoPGqA==; 5:qg+KgB5Li/Y5X+CZq+oTap/Pm4bjKGWPEuh9iMAi2OuiUgWI5FDPixNg3EELyKNgt3HLbS5cSmWqI61Q1cFKCmvoozHGgKszX7RZx6lM5tszEMVtzKWaA2X53bPzmRqEvyVk+jRB1MfWCNbjZDN722zrKDfpOVNW2WSjlBbMbJY=; 24:tKnrAQXdFj5UaanedTE/y7xhYyLgVKaOrpX69DbYaCO4usaETUr6Qe0lWxREgrHb5Hel1cMBKAroLBxjl1OwojdZM1MvCAAOU2gbgqgxx+E= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; SN2PR0701MB1071; 7:8wvm/zAqUT1qjZso0zXLRdRsVa6tJVNED77UVRsNQixdvBZeE2E+Pd3YEAu+Px/zjK4bXadE/LQk7IbunSx4xlspnzifW+KjQB8hx8fgxjuvldfhVBsrCOBMM4ZM/dSssaZlDX/DplPQHHwVoUYh5BR/jGNLezFA8F9uvHXSnB0NS3OU+m5jMciwm0BUAcJhDTNK/Tjw7wIhgkB/gslByEVzalnpdZbXUpA20WdPbHjL3sNef621a4jVbmVkmqQW X-MS-Office365-Filtering-Correlation-Id: c551aa65-ceaf-455f-3301-08d59f7759d0 X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Apr 2018 06:42:06.3909 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: c551aa65-ceaf-455f-3301-08d59f7759d0 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN2PR0701MB1071 Subject: [dpdk-dev] [PATCH v4 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, 11 Apr 2018 06:42:12 -0000 Adding support for IPsec event Signed-off-by: Anoob Joseph Acked-by: Akhil Goyal --- v4: * No change 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 2192bdc..7976aac 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