From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-SN1-obe.outbound.protection.outlook.com (mail-sn1nam01on0077.outbound.protection.outlook.com [104.47.32.77]) by dpdk.org (Postfix) with ESMTP id 561FD1E2D8; Mon, 11 Jun 2018 14:18:48 +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=wNb5gtNNjYMVRs2ozPv1XQD3f2CNGFq7dLNlLWgGens=; b=Bo2mjixnu80rowwyu6Nh5hNMPI40RnoGhunVEeL+f2/ERyHvh5DFrqrtcHWTeSHdvdRYlsSkOc8pBsH0LD5IELkknKBUkY2fQ9n3t+Y/lB4EvlHv3WCoMLRJR77y9Vwd7J2ccqvTLIAZtQ+APekwiL3U/j8xKSncQTh2pQEBqW0= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Jerin.JacobKollanukkaran@cavium.com; Received: from jerin (115.113.156.3) by CO2PR07MB2519.namprd07.prod.outlook.com (2603:10b6:102:13::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.841.14; Mon, 11 Jun 2018 12:18:43 +0000 Date: Mon, 11 Jun 2018 17:48:25 +0530 From: Jerin Jacob To: Nikhil Rao Cc: dev@dpdk.org, stable@dpdk.org Message-ID: <20180611121824.GC8358@jerin> References: <1528035046-14292-1-git-send-email-nikhil.rao@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1528035046-14292-1-git-send-email-nikhil.rao@intel.com> User-Agent: Mutt/1.10.0 (2018-05-17) X-Originating-IP: [115.113.156.3] X-ClientProxiedBy: BMXPR01CA0025.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:c::11) To CO2PR07MB2519.namprd07.prod.outlook.com (2603:10b6:102:13::6) X-MS-PublicTrafficType: Email X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:CO2PR07MB2519; X-Microsoft-Exchange-Diagnostics: 1; CO2PR07MB2519; 3:oku5kwfpUyIW9mWnI3NP4eGFKI33FoRI3XfoRhNCx6kSlMQlF/IIKPXOwFbhC9bgNlS0NZsQ6TDBLKEMKl1VTtgBZaVR948FMeY2HQsyNK5NZ3b92C2vLQ9S6xla5wGKLZ4D86bMlnD0odmhpmfVsYj3xfA66V7AH94fU1sBF4CpZ+c0FddjgGBNKuWT0ZzoKSIAKufwdB7SRl+b2j8R+YA4V98a07mfHkGQDVeGtrHk+EkFtZ8ziW8PRaue4iJR; 25:kdrd+A0IpJb3VKLSlqxnx6C/GCjvxGKG8EVIbwmGr0kTbJcNPgH4i+yhD/TiYQQ9FhmbfvUWIqiLjpgq+K/vLDDG98Oq7LKPNjoR6Hf7fs64RXN7biWvRaCCi7OJFrEcJJ/5ses8UbF9YdsxhMOv9xlBneVaRCzoWqcqrGLPTgkKkvpNPagTf3wQgKiZBcXz1vHiJ4Ts1YeHtprHuzm4VgQoT6QSdq6Us/9Jn8j1aLvuP0ODJnzlarD+4zYks6Y4g7cnsmlMTYfzkJE8r9srYvcC/Kw5DUE0X9gvg/0x44SDy9iZzhD3FQUhCyI9ZqPE2k/qbN2YmNXWuP6Crl5HpQ==; 31:LxQ3W/oRrTzoc1kdAWWY+Mh2tdA8jBUaYVobjjC81jako6lE2U3TrYHwPsaERApViCEmtseXQckt12CN4hrTVMToW1D6jtEcyG1xcULveha3TiLFG/eIufrmFS8FLz2s3CHcqGHGjGROZkaXgJmyXvlTL8DDJJoPoouZEtv4AIfCRKlAEPZLpJoEb5C1DtOzi2NUrd9mrY7bsBQy+azRHSYQxI6PzDLDzYoL2e9j7CU= X-MS-TrafficTypeDiagnostic: CO2PR07MB2519: X-Microsoft-Exchange-Diagnostics: 1; CO2PR07MB2519; 20:ON51vzGyDoHQd1riDfFxxnC2TBHq1wCk5sWPenXmJdpDwgI0PI9zhyeCC9JKL6EJOTti0bDkNgEY6R5gTaT74jsq40OBJGKGBNFapRfdNbSomK91h8h95N3N/YrYSn/EGSZ/HdoNmEpRb4wDaCKlypMysbNSRhMit6jLFeOHSo+uEs7yzWn+OntBAE3J7N67coKdGdDYQHTaVI5abyeFpXd3dwLRLQOQf5Q54mZmVQ5BnzTU8omc+tVwwSY/FjHTv1oK/eCV1B8uuj93mn7GgQK+sM3XBTbENe8Ngi6IOxAGZVtmX/QvWz1APzvMP6vFjLQdZM5NiSW8II6UTWi6IjdHm1IhjIcR6G0hJi3EVo6TTIEhcErsNbW7nbCYhoctN1M5zK/y/iLiXmBnB3MDvK2XsMY+paw7kcBRyUsRWMS0iZcN8Lb7gpu7AONM1j8Il5NvfDtu9dMwZ2ApSKf7XwOz5SmkEZ4VctQe1EZHDYj67P3Aic5J8MZG527HwZ3COWMgqWPbJCosnXYIEh2ZWddH9xXQZCdzcTCm+66atmeqjux6fDhz0dM63nIJBbopnqqoMLm0WkMxk2kWWk169oNSqH3G8kt7bkz3pmw0VNI=; 4:3r+uiEj/zI+CPFR/syKznFd2LDvVDpY4nuzj2HRzN/dWDs9wRx3LVmicGBhkPuMUUFfhFxUyFGEynEQsXYZ5Yen0pBfrlh87wXab8zuGy5qWtSXURDqKe2Cr3uwwwvRunI16V4uyf0BhEmKDOVhCRpCik5n8aUcaOzSpNaq8vKQlETPqAeaGH5wxjGP+Yw3z+t0vNIveHIr2hRG5DUZ8IfRRHvVQHbViGPm++dD8ha/5+xHHRt5b0j2NECm7FywYOximJXXNQaGJn7kHzj8y6lt1WK9FFSOPcaBOqECu4MgbpJP2Ku5GL+wLPcxZ6HHq X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(228905959029699); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(10201501046)(93006095)(3002001)(3231254)(944501410)(52105095)(149027)(150027)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123562045)(20161123558120)(20161123564045)(6072148)(201708071742011)(7699016); SRVR:CO2PR07MB2519; BCL:0; PCL:0; RULEID:; SRVR:CO2PR07MB2519; X-Forefront-PRVS: 070092A9D3 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(39380400002)(366004)(39850400004)(376002)(396003)(346002)(199004)(189003)(13464003)(9686003)(2906002)(316002)(97736004)(478600001)(81166006)(81156014)(33716001)(33656002)(8676002)(486006)(229853002)(105586002)(106356001)(305945005)(7736002)(446003)(11346002)(476003)(956004)(6666003)(72206003)(50466002)(55016002)(26005)(5660300001)(6496006)(6916009)(44832011)(4326008)(53936002)(58126008)(42882007)(47776003)(1076002)(6246003)(23726003)(3846002)(6116002)(186003)(16526019)(33896004)(76176011)(52116002)(55236004)(386003)(68736007)(59450400001)(8936002)(16586007)(66066001)(25786009)(18370500001); DIR:OUT; SFP:1101; SCL:1; SRVR:CO2PR07MB2519; H:jerin; 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; CO2PR07MB2519; 23:hv3xKgf5U7pN2QHCrGEKynZt8vl3Z6ktWbZ4yFmF2?= =?us-ascii?Q?xGkU0U4qdLh897GYe8VZZequcfxDjdtjNHC01WhHyM33Kam2PVq2x8z7fBGJ?= =?us-ascii?Q?7HU5b5I8vMoekuU7ChKQKdyCmKouGu4uM+Px7jAPm0KIr4RqxyfWaWvvDzra?= =?us-ascii?Q?a3xTidmUyXXaW5IngUkj2xNuVWEeqeN66HPLul9Da9ssn38aUIK7txV0XQ9Z?= =?us-ascii?Q?MUpZqjFd4dBERT3iRmIFPvFw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+BHWsINPsdmZdwBilo1V4Ono9DouODcIMrqcWDbHYPQWi7N6S809VQsvqdKLXepUGeKYwiWeOetU4OyrZ58pIXLg+w3AGThRbjnOXdCJTQWbTiALnRKMpAGIER690X+qMwgg6kER4w3lCjSPGB2Aucdw0qKY=; 24:EPDMP0qjH0DQogrxhKywe/aPGYN39nAOQMbabT4P+4QSJMfUHmaa8k+90RMGjpd3x5YevCpEJSG1IEghRu8kL+EYaboljGWvWYMGnqXXKPM= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; CO2PR07MB2519; 7:M4sz+5Ia/H6zZosaMiOfCxH05odFgMBRNO6hZ2qvl4mmmhzIWj9VNY0ifXVlYiFpY+2NVR0uaBSVwwrl8LPk+Qd+wvhEIV4EN2d+iXRYnveF1HsoyS38lCIzhzO71onltrc/AeXrjALUktF+LrJeetkBX1UrYmjQTJr4L/HkYJgT8TnxKOiaE9+8893k3KkImLaPMW0eVeEKbZShseFvHPw7wE7W3Z1xyZCEuzTBzrTQhnsfeNytFDitgkmnHFZl X-MS-Office365-Filtering-Correlation-Id: 0e019695-7ccc-4fb9-fdd0-08d5cf957a71 X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Jun 2018 12:18:43.3814 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 0e019695-7ccc-4fb9-fdd0-08d5cf957a71 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO2PR07MB2519 Subject: Re: [dpdk-stable] [PATCH] eventdev: fix internal event port logic in Rx event 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: Mon, 11 Jun 2018 12:18:48 -0000 -----Original Message----- > Date: Sun, 3 Jun 2018 19:40:46 +0530 > From: Nikhil Rao > To: jerin.jacob@caviumnetworks.com > CC: dev@dpdk.org, Nikhil Rao , stable@dpdk.org > Subject: [PATCH] eventdev: fix internal event port logic in Rx event adapter > X-Mailer: git-send-email 1.8.3.1 > > Set the internal_event_port flag when the ethdev-eventdev > packet transfer is implemented in hardware and add a check > for the flag to ignore the connection when setting up the > WRR polling sequence. > > Fixes: 9c38b704d280 ("eventdev: add eth Rx adapter implementation") > Signed-off-by: Nikhil Rao > CC: stable@dpdk.org Acked-by: Jerin Jacob Applied to dpdk-next-eventdev/master. Thanks. > --- > lib/librte_eventdev/rte_event_eth_rx_adapter.c | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/lib/librte_eventdev/rte_event_eth_rx_adapter.c b/lib/librte_eventdev/rte_event_eth_rx_adapter.c > index 3a70058..d03f870 100644 > --- a/lib/librte_eventdev/rte_event_eth_rx_adapter.c > +++ b/lib/librte_eventdev/rte_event_eth_rx_adapter.c > @@ -224,6 +224,8 @@ static uint16_t gcd_u16(uint16_t a, uint16_t b) > nb_rx_queues = dev_info->dev->data->nb_rx_queues; > if (dev_info->rx_queue == NULL) > continue; > + if (dev_info->internal_event_port) > + continue; > for (q = 0; q < nb_rx_queues; q++) { > struct eth_rx_queue_info *queue_info = > &dev_info->rx_queue[q]; > @@ -1050,6 +1052,7 @@ static int add_rx_queue(struct rte_event_eth_rx_adapter *rx_adapter, > &rte_eth_devices[eth_dev_id], > rx_queue_id, queue_conf); > if (ret == 0) { > + dev_info->internal_event_port = 1; > update_queue_info(rx_adapter, > &rx_adapter->eth_devices[eth_dev_id], > rx_queue_id, > @@ -1057,6 +1060,7 @@ static int add_rx_queue(struct rte_event_eth_rx_adapter *rx_adapter, > } > } else { > rte_spinlock_lock(&rx_adapter->rx_lock); > + dev_info->internal_event_port = 0; > ret = init_service(rx_adapter, id); > if (ret == 0) > ret = add_rx_queue(rx_adapter, eth_dev_id, rx_queue_id, > -- > 1.8.3.1 >