From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-BL2-obe.outbound.protection.outlook.com (mail-bl2nam02on0062.outbound.protection.outlook.com [104.47.38.62]) by dpdk.org (Postfix) with ESMTP id 7640E2F7D; Thu, 19 Jul 2018 13:49:23 +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:X-MS-Exchange-SenderADCheck; bh=NE8caS5txsqVf8zWPuGX5kLjuuRLlkoWAyML7wYb22Y=; b=eUw8DRdQ8eEsLRtpx1/E9qvhZ7fI5FYvFyIKxkwh6+ytgQfPLHFt0aXY+/oVm1cyvYWZ3WeMkFy6QzBU/KIkM/oiks30FWGKV3i32xUNUvi4gfRHzhks9t86jrFQ06shgLIlb3q10sYWFOHCxaCMP6PTMTgJmDjvXWCR15JZ5tk= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Pavan.Bhagavatula@cavium.com; Received: from ltp-pvn.caveonetworks.com (111.93.218.67) by BN6PR07MB3458.namprd07.prod.outlook.com (2603:10b6:405:64::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.952.18; Thu, 19 Jul 2018 11:48:04 +0000 From: Pavan Nikhilesh To: jerin.jacob@caviumnetworks.com Cc: dev@dpdk.org, Pavan Nikhilesh , stable@dpdk.org Date: Thu, 19 Jul 2018 17:17:47 +0530 Message-Id: <20180719114747.25430-1-pbhagavatula@caviumnetworks.com> X-Mailer: git-send-email 2.18.0 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [111.93.218.67] X-ClientProxiedBy: BL0PR02CA0087.namprd02.prod.outlook.com (2603:10b6:208:51::28) To BN6PR07MB3458.namprd07.prod.outlook.com (2603:10b6:405:64::21) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: fde35b70-87e2-4777-5904-08d5ed6d7dee X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989117)(5600053)(711020)(2017052603328)(7153060)(7193020); SRVR:BN6PR07MB3458; X-Microsoft-Exchange-Diagnostics: 1; BN6PR07MB3458; 3:ZUBUlecgmFBOpCMs6SJSbf+8d5NxUsqh/cJBeN0ZM0AEuI+VSlvJK1+Fq2esLqCgEj9Qszu4GoRBEVtYO7HKoyJY0+NtT0wQUbTvwna7L5T7VNjCF8XPtPk/b5fdf/72VsksVB5YN3GMC4y2hl0PTbSePIr2i0D0kxgcidSVd7o7ULFpy1pqIOezZEo+aGz60r1f64zwUOWHAwg5+gpTBiY3ePL3oJz2sk1iZpQFVh6HYw4Nef44f4+ZHdVyjLgQ; 25:0wnPdSbCKt5d24pXJ1RqDG/sBcl8rDJy4NXVCl3DtIeDhi0OtvMqXPEC6HDgOJFVR1rVFQWnp9RPNKv3WkuKdUqz7UB2nD+NAbrGbNFkChEYC3RXTYrGUuPCjhUeMDz24w4ahQU+dux4MYNPjbhVHqmFK+h10C43o/CBkOeCC6y3TCkaM6lP6HQiQkorb1ITDAtdA0FRx0oEXIiEjnmTO26qpRfAkapbt3/Kn2WCfURERW01yGor1pr5GgXCcY2V2zsW9KIYFxltpWvst5cwf05M5RWYI6830bjT03c5h6Qfr9oN3ePFBWNCC9c8+81wxoAFD1CjRCJvtfIw1i0uiw==; 31:LpsCB3nV17GWbMceZ7AKBWEqF0xJ02QYNwnGffcQBf6ToO4CWBX30X+GTyMmXBQ9wDARg03tAbkN2Oh0PZW/LAricQfshFc5or/nWsGufTN9HdIuzLWFqTYqIQ0A3uH24gIyGbEU8twR5+3jI2eH139jjB6f+/RA9CO59q3GEBGIRA4iNDHDLhfgfaLZmwvGfKZbhwRuvX1ZwQEDwNaBsR60SbXy7L873ke6jHI3NKc= X-MS-TrafficTypeDiagnostic: BN6PR07MB3458: X-Microsoft-Exchange-Diagnostics: 1; BN6PR07MB3458; 20:TVn+vJeAkNrhLnkeW9nUQ+/iP4QD6lq7hrYaqVyVJdXNcZZrprqOXLvDpgbzPwAlh8jwgYOUMy8HWKWoEdP+M6mm8SYZdhtQcM9Jf8WpYM3zNSXEw491X5EwitxzZAuGkZpmmebgwyQ9LPrhZub5R6NfyiNjyFI1BmsHk2CIrykxPe2UZMQyzkA6Mkrr5b4EdY7521GUKnudxSnZrVcV9dpMCRsWuLlqDObqchLy5Twx4L3E/DFhlo8a/k0Mf+5DnJaLRXEHFlnHkGdpswE4oN9JQGrPVYZ2M4I2jt0B0mTVSFfnTfhNMNGO04uFyw90jd7+XtH4oIPwhyYkPo9kZjOEUqGA82Yl2x0Ie7NbizQKhDrWdRXO82IjpOmexVz5Qfku03KrXgHVrCxm6yE9tFDo/bS/hPtImpaWniT2L0T7IDdiS0Oz4RgEcHdQMM407POf3HRX7U0Hk0HaaXI99dY3+LnUP5bPKDyzCrDVtOD1UzdPY5d1csouzTiLxF/7uKxC5w0TZQATaGH8VMNHWMJw/R9qsRXSxAfgCjgb5evX9VLvEEB5F9Wcc9Ur4q8HVi53CqVQ4Dqt9ucN3AKJLnrs1GFqd6ekuRm00yxzEHA=; 4:zCDA4r6FeP7N67/CuNvqjFFdumhsrGoX4/Zh9gcN44+kennhpzPddzjJ4BFN54/Bas8yIwTc+DMe7eyPRAqkTxXFxFAuDerGUcumWmlrGeent+sUJO38oNtzbhRowlLc0fZEgd3v9MagtageF5VZDC5PClMLXLFe4CoeNCuJwCC2EpVboenVoszKi2+9IURm295lliaJpxUm643bd7sbNaRwznOhuvYY/SbO94Rgg/wiVDsPvBjETF3AFWMq68FF8QDxsuxhIey1w2Bkj+GpXw== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(3231311)(944501410)(52105095)(3002001)(10201501046)(93006095)(149027)(150027)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123558120)(20161123562045)(20161123564045)(6072148)(201708071742011)(7699016); SRVR:BN6PR07MB3458; BCL:0; PCL:0; RULEID:; SRVR:BN6PR07MB3458; X-Forefront-PRVS: 0738AF4208 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(346002)(39860400002)(366004)(136003)(396003)(376002)(199004)(189003)(50466002)(72206003)(8676002)(81166006)(69596002)(8936002)(486006)(26005)(48376002)(2361001)(97736004)(66066001)(6486002)(47776003)(42882007)(956004)(1857600001)(2616005)(450100002)(6506007)(25786009)(4326008)(386003)(478600001)(81156014)(476003)(16526019)(6116002)(36756003)(50226002)(1076002)(7736002)(5009440100003)(52116002)(53416004)(106356001)(6512007)(305945005)(5660300001)(68736007)(34206002)(51416003)(2906002)(3846002)(16586007)(6636002)(53936002)(2351001)(316002)(6666003)(37006003)(105586002)(42262002); DIR:OUT; SFP:1101; SCL:1; SRVR:BN6PR07MB3458; H:ltp-pvn.caveonetworks.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN6PR07MB3458; 23:BcXvneSq+s2O/2OCZ/uH0a6oXknbLMlz+Cp0Fv0kO?= =?us-ascii?Q?dOWP81uf63NvFLkI9+pCIBFB+hPi2WrlQF4gYQPB4Vees7iZY1ifDzY9xBT+?= =?us-ascii?Q?RJJOsMpjqWEIz4fyDjDdYdPs5g3leg5aFiDQ8ODkv7vGmqT23XViSZYe6T68?= =?us-ascii?Q?emDp2FSfF/h6qt4sQyoW+fpRLa76FMjMw+MaCMLzcc2SIsqHNbmBlj7DzBKS?= =?us-ascii?Q?6bgRi1MOhBK34s22fxZ1seOe/3ujGq11WjVEBhxnMa3u8npbjES+fwW2yIlh?= =?us-ascii?Q?E+Slt/B3+Okq1XDf3uKMq2zNqU8qyN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377GWmBcd2TaGgK1NV3ls71pDdx0qFxa636g/RZ2XfA==; 5:ng9Y5dzGHB2yUDLzz4riLT3iCisgh172XmgQJS/oZyvBkruoLY6azYbV2AM1Lkz7RqgKBWnNj012dZleykyvSgZ4aHyDpWPrSrT0n/DoSPOWJkr9c7O36dfFwRAn+XZLYx3fXaVTXgddCNUNdodxP6sYHoac2Eg6FmcM5w5skf0=; 24:ASsXZWdgXK4gTI4Ngr8XfxS92HAKQ2eaOhUdtyZS9TYH9w2nsLM3WdmSMdFFVPa3istixtYeX2mW7UV10cJoZQPAyrJSGeH6E4XTLZMrW/A= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BN6PR07MB3458; 7:tJ7Fg7c+XHAK2Dj/z4lgk80HuhffHk0BaYa/N3udRdbhhUXmUo6sbOwx5CR5D+uVWIy4ZaeUiTaImFG13MRiAhke6em0H1PZSBRfnhEqu5aZHlXAkGkqpVR96OKhsME6sVWZJ2QbHNQ+MZ/7wUdt4t2w3gc8OWoCedxUCGzBdUUekyAIe5qEBywea/RDXU29VJzk+1kae9esMQZH3SnrZkSuKXQGG9/KcEbdhTtpZhMo9IXQaOHj8FJOMhYKX4HN X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Jul 2018 11:48:04.7833 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: fde35b70-87e2-4777-5904-08d5ed6d7dee X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR07MB3458 X-Mailman-Approved-At: Sat, 21 Jul 2018 17:53:46 +0200 Subject: [dpdk-stable] [dpdk-dev] [PATCH] event/octeontx: remove unnecessary port start and stop in Rx adapter X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Jul 2018 11:49:23 -0000 Modifying port state is not necessary when starting/stopping Rx adapter as it is same as starting/stopping ethdev. Fixes: 45a914c5bd71 ("event/octeontx: support event Rx adapter") Cc: stable@dpdk.org Signed-off-by: Pavan Nikhilesh --- drivers/event/octeontx/ssovf_evdev.c | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/drivers/event/octeontx/ssovf_evdev.c b/drivers/event/octeontx/ssovf_evdev.c index 2df70b52a..f98296f18 100644 --- a/drivers/event/octeontx/ssovf_evdev.c +++ b/drivers/event/octeontx/ssovf_evdev.c @@ -476,14 +476,9 @@ static int ssovf_eth_rx_adapter_start(const struct rte_eventdev *dev, const struct rte_eth_dev *eth_dev) { - int ret; - const struct octeontx_nic *nic = eth_dev->data->dev_private; RTE_SET_USED(dev); + RTE_SET_USED(eth_dev); - ret = strncmp(eth_dev->data->name, "eth_octeontx", 12); - if (ret) - return 0; - octeontx_pki_port_start(nic->port_id); return 0; } @@ -492,14 +487,9 @@ static int ssovf_eth_rx_adapter_stop(const struct rte_eventdev *dev, const struct rte_eth_dev *eth_dev) { - int ret; - const struct octeontx_nic *nic = eth_dev->data->dev_private; RTE_SET_USED(dev); + RTE_SET_USED(eth_dev); - ret = strncmp(eth_dev->data->name, "eth_octeontx", 12); - if (ret) - return 0; - octeontx_pki_port_stop(nic->port_id); return 0; } -- 2.18.0