From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR03-AM5-obe.outbound.protection.outlook.com (mail-eopbgr30089.outbound.protection.outlook.com [40.107.3.89]) by dpdk.org (Postfix) with ESMTP id 9E7472BE9 for ; Tue, 28 Nov 2017 12:58:26 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Mellanox.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=rkK80FCunxQYo6TUDr2joypIzN55BB/fm+DGbSPLeDY=; b=cjWOckgwXAhjMUW8++2r+XUEFLTKap8T1wz3i6KjmwAm1P1XYCUsQ8pG6k8Xev8PcQWopO00SQJ3Ag/cwpiZi2G2/ybhbGHRadnTEbhYaJNDvuTAexoX70jBh457hsTSGBoREGGZogODC2YCtmtd0eRIaOyCANyMGYvUEr/XbHs= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=matan@mellanox.com; Received: from mellanox.com (37.142.13.130) by VI1PR0502MB3663.eurprd05.prod.outlook.com (2603:10a6:803:f::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.260.4; Tue, 28 Nov 2017 11:58:24 +0000 From: Matan Azrad To: Thomas Monjalon , Gaetan Rivet , Jingjing Wu Cc: dev@dpdk.org Date: Tue, 28 Nov 2017 11:57:56 +0000 Message-Id: <1511870281-15282-1-git-send-email-matan@mellanox.com> X-Mailer: git-send-email 1.8.3.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [37.142.13.130] X-ClientProxiedBy: VI1PR0801CA0078.eurprd08.prod.outlook.com (2603:10a6:800:7d::22) To VI1PR0502MB3663.eurprd05.prod.outlook.com (2603:10a6:803:f::21) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 74e7b301-eb75-49b2-c2f2-08d536575485 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(5600026)(4604075)(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(48565401081)(2017052603258); SRVR:VI1PR0502MB3663; X-Microsoft-Exchange-Diagnostics: 1; VI1PR0502MB3663; 3:P+tQSHb3Ja/yYqITOkLygxDH2C4x9T6Ayaa1/8emRQ9z2p9e0GwN5Ha47BTPv/eUz+F9Xxbe7hC7Oa1kua0U+ecsRryNa+tSbHYEGrr5BMF8b8NkogR9xeLbLng2CTxtVwmZMuEYfL5K9qvO823SG+uJwPKVyu6BUH6lOWlLvNryrLXlHKNfKf5bFNBLhsj3Rzm9Z1w2O4fzVS1hGyD4FI2g5WJ0GuNSTzSLNn4XkQAK92ESAAJqOMskGCqbER7O; 25:4aecBNX8AGNZobbWJT42T4kmF3xjhcbStSglR/+Y4NTEJRM3CYXwsg6lja4oIcBDloRAWzsjG7yc+vQMEPXJZkGNzsL4HoZBt/baQEHNzzCYBhUD3YKKHTi/LaWNU5fKHI8UlNGQ1UpTMNEicGrKkpEKPmJk7ZettFCdQ2Ki7TNrhQGayAcQ51DpEVv8Q+xVkadQTvMCfDqDh9pNoRje9D5J6Z+Blxgz4VipDSVHe580OCRIVTXOpu66vG5Y6uN9UHegxHAUj8lhCiE6KMBhWmdbSXJH5z6ulfB+ielk3X988LIV847hS+7jcj0g+KArEG1k+IG2QpwNEhag1jxXtQ==; 31:Ve7eRJZ3JP9v+01y6IuXO/FZ4LAMfCPYyUghwHaPEG2Jrj1AIbiYEhu2kx/M6/x1jpTpE7WnCqA2uH/S1Ubu+eZdJEkSIsufLVl/U1FcY9Ord99ipCFzF3zqPsulndRv7wjCKyBzZ9kYkc76caVwIqRtLUY12oBtZ9qmB3YM0XUaybNjdb+AU3eE9fF91n7g/ESkMhhxoquGXQhoRrXQqe9UHL6dVHqrMS+d1RQD020= X-MS-TrafficTypeDiagnostic: VI1PR0502MB3663: X-LD-Processed: a652971c-7d2e-4d9b-a6a4-d149256f461b,ExtAddr X-Microsoft-Exchange-Diagnostics: 1; VI1PR0502MB3663; 20:SxgCTno02YyI+VRnGuEDwUZP9nDs14Fcs1N30ylDwLrdk9GR5zZ9BMO14y/o+Zq79tBOq6S19/PsJbubbRnObde7x+hkXq5rhRbjn4ruTcPSj+hk//aJEecsCnOeL5H1Acb15lL39ArziBXWvXFMj7psOrRwIrbW6D9iUAPSgx8HxmCVx7uLcglUVToySU35I8j3Q5YlnJl5q4af2QBrXIqNMwcbj2B9iBjsD1l3pR2qPe0DSyR3rpJezQu/2400DsoCQVplnMUGv0To/9fkSmGLihzN2/8WvZKTNk1WuwtwJ0xv3O162U6xS+zqAePoEyM1Rb+tVunYwt6NtL1r6oF5dRfLGC2F7MdagyMwmHAXEmlBgIponvotkH5L9GOFsEiswytHNcTJ6AVshl+HiMZQjt2uS4e0zCR4MM7DoD1tLF3mwB8Hp8dyOsgY7sNjbyHAJCQG4LUq4yaS+V11p4zgy7Z/nvtkc+urpA1rR1Co8/SOhv4jj/1ZAeOtHcVk; 4:/Hnv3dsUcbFgcfV/kbtJHE1EsqSl6ARakSXQjd39DhAKRPow2ykyGELPPEGc2XkrsEZnQKMlkNm1ktTLc6dFGA+AS5FrM1CC4oa9NoL/MAUYfgDFICvCYjUfaT0RVorvG4C0GN2LZcYe9KGtxl01ZNees1y1LMYiIdQCGl7itpImar5LORiEbR0Y/VeG7Tj02M2V0rvCsgBo0eQT/qskJGJhAyDfuMMDiNhBwuRNZ0Z5+6G5fp07BK17fBlW350fNyJj7ccmAbosTzTekXOQFEJZgjWP5TS6zGMe/Slwa4+KF4IMoqYuvIJjRfn2s2BX X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(60795455431006); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040450)(2401047)(5005006)(8121501046)(3002001)(10201501046)(93006095)(93001095)(3231022)(6055026)(6041248)(20161123564025)(20161123555025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123558100)(20161123562025)(20161123560025)(6072148)(201708071742011); SRVR:VI1PR0502MB3663; BCL:0; PCL:0; RULEID:(100000803101)(100110400095); SRVR:VI1PR0502MB3663; X-Forefront-PRVS: 0505147DDB X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6009001)(376002)(39860400002)(346002)(366004)(199003)(189002)(4720700003)(50226002)(189998001)(8936002)(3846002)(97736004)(110136005)(6666003)(6116002)(47776003)(316002)(5660300001)(16586007)(50986999)(105586002)(305945005)(16526018)(106356001)(66066001)(21086003)(81156014)(69596002)(48376002)(50466002)(53376002)(101416001)(4326008)(52116002)(55016002)(7696005)(25786009)(2906002)(51416003)(8676002)(33646002)(53936002)(68736007)(6306002)(966005)(36756003)(86362001)(478600001)(33026002)(7736002)(81166006); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR0502MB3663; H:mellanox.com; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: mellanox.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; VI1PR0502MB3663; 23:q3jjSPKK4iv6PBQN7tvtsGoUu4YEh4c0t4bdpiW?= =?us-ascii?Q?5kpBH5zJ1p8nLOEoMW+H1JNkkwvHskOu94Xs+airzvmOWiQfFb3ik5TwQuzT?= =?us-ascii?Q?dZTqtQ2KfRTE4Mkiy1WEcp4pgzQ3xWuUncnYZzsT678qFin8BXrVmGbXLRg6?= =?us-ascii?Q?eOgFqR0iDJurL/zAMkX3JXp7fif57FdzwONmizUoHrVF89Raj545LC2QP0VN?= =?us-ascii?Q?rDaJZILngvJuSBLoqMOedGEfGFfG2kahBPPGFPkOcN3+J324ye99MMlNTl3S?= =?us-ascii?Q?pNytnAfm0GabcGTZHsu9m8a65JCYvlRJVmqV6vi4cHQIyvYqEBaCv8M7nG/Z?= =?us-ascii?Q?uEOgx7aunPeT/Waj+BNn+tC2lfbq10KJarHAiUqK6ryPb7vOmf89ai/swM36?= =?us-ascii?Q?7EN21YuXCF7H4uzpk5r+GA+Y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/rH+mocopXnqQWUSb0ApmFppqTPkESz9Ecdq/XJEwX8QLYvspT8UzXygBY0OqMW9dOf96PTc94y/mqeHcB0ZYIaZPNkZpoiNMPHj8l86WLv+j//QDpS8acHL+vWcc/Zgkr72kHNbD/wxbudh/cBmScqAzppZwmOPoxtogPK7vdeoWWgCXWtQiUp4dWTj7W6uxYsRKi6v0nME63ubEPCXeM2I3YClHpnYF8H6oWxI2Dli1YOqVAXfCAOczzDVkRwKdL528YhJpWdd3mz/snED5yNeFR3AX18pvCa/GGtuNJBck=; 5:wxdNXmY5CjzxQEKTgG4sfpx1V0VlhEDRv/1BA4pUNSfGkJtWzmZT0BMhwlV5Cz8w/P4UOH8cmyDkuzFh8dvP9nbGAKAo6BsDwJHTfOnwM7U0TqBX1Iy35N+g2QQuLaEzd3FfZfvm6xMrV0EgSLBPL33SP1H94YkKxXcI+t6nsy8=; 24:WqLWPwh3TzlTHVKZXxD4tw6ob2ceEQZGS/yAB1hSGu9/Dqic2sME477twPIrfcZMmnluqMrx13crRteYamzBF6qw5vm5ChgeXUbCjDHbCy8=; 7:EjrwC9BEV4ijCMfT+Vh2uql38WU8Yp4ODXssqfRAFRTkCMM5siqKXtYlpWTnx/jBBlqLpO0EwFYO+XIzs2mY3tseD/IW/VYvrF0+qZsPVDI+6hC++PC8DPJOkRucZwCMqeyrtopN49VilCsuZOv/R4xoSj09jeOe9f10Wb5OApLbSS+dgc9mgim7wPfJyKn2ebyyZj2BDlkyoSrxe/2k3Bjzy6Um7eQRZ1e+NTMDndfj1EBTvwk7r+/D+ITBCImA SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Nov 2017 11:58:24.4337 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 74e7b301-eb75-49b2-c2f2-08d536575485 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0502MB3663 Subject: [dpdk-dev] [PATCH 0/5] ethdev: Port ownership 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: Tue, 28 Nov 2017 11:58:26 -0000 Add ownership mechanism to DPDK Ethernet devices to avoid multiple management of a device by different DPDK entities as discussed in: http://dpdk.org/ml/archives/dev/2017-September/074656.html Adjusts failsafe and testpmd to use it. Matan Azrad (5): ethdev: free a port by a dedicated API ethdev: add port ownership net/failsafe: free an eth port by a dedicated API net/failsafe: use ownership mechanism to own ports app/testpmd: adjust ethdev port ownership app/test-pmd/cmdline.c | 100 ++++++++++++++++---------- app/test-pmd/cmdline_flow.c | 2 +- app/test-pmd/config.c | 40 +++++++---- app/test-pmd/parameters.c | 4 +- app/test-pmd/testpmd.c | 65 +++++++++++------ app/test-pmd/testpmd.h | 3 + doc/guides/prog_guide/poll_mode_drv.rst | 12 +++- drivers/net/failsafe/failsafe.c | 7 ++ drivers/net/failsafe/failsafe_eal.c | 10 +++ drivers/net/failsafe/failsafe_ether.c | 2 +- drivers/net/failsafe/failsafe_private.h | 2 + lib/librte_ether/rte_ethdev.c | 123 +++++++++++++++++++++++++++++++- lib/librte_ether/rte_ethdev.h | 86 ++++++++++++++++++++++ lib/librte_ether/rte_ethdev_version.map | 12 ++++ 14 files changed, 386 insertions(+), 82 deletions(-) -- 1.8.3.1