From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-he1eur01on0074.outbound.protection.outlook.com [104.47.0.74]) by dpdk.org (Postfix) with ESMTP id 6C8E15911 for ; Sun, 8 Jul 2018 08:21:30 +0200 (CEST) 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:X-MS-Exchange-SenderADCheck; bh=bqb2ClsWmuMtzVAsrVREFtFJCWMYwGixexH/uBkz4xs=; b=n62mYSSMeKSbY6jBnLelQdLdstGw+NKJ2xESNpPf4dV0VpzbUP2gUG2WluQ9fRFzQNI4jaR9nr5MMPyJ+ugPhHQB4s4XyDhvj1zceiNpkIoahNUEQ1yy1lB/Jmn+wKVE6fRrw4NptwMN/A/5Rcsnbmy0xsnxmYTMFW/8SGdhAm8= Received: from DB7PR05MB4426.eurprd05.prod.outlook.com (52.134.109.15) by DB7PR05MB4939.eurprd05.prod.outlook.com (20.176.235.151) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.930.21; Sun, 8 Jul 2018 06:21:28 +0000 Received: from DB7PR05MB4426.eurprd05.prod.outlook.com ([fe80::d9c6:913c:c361:f7b7]) by DB7PR05MB4426.eurprd05.prod.outlook.com ([fe80::d9c6:913c:c361:f7b7%6]) with mapi id 15.20.0930.016; Sun, 8 Jul 2018 06:21:28 +0000 From: Shahaf Shuler To: "arybchenko@solarflare.com" , "ferruh.yigit@intel.com" , Thomas Monjalon CC: "dev@dpdk.org" Thread-Topic: expectation from rte_eth_dev_stop(start) Thread-Index: AdQWgoLqMnCYzhlASL6rDBrh1Atq/w== Date: Sun, 8 Jul 2018 06:21:28 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=shahafs@mellanox.com; x-originating-ip: [193.47.165.251] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; DB7PR05MB4939; 7:kxqZUgYv1NZsAq3X3KuyTK2ojqpS0jg4j5Y2y64MiVQmdFRhTzX9s2HBLhln32PJtP5OR2aZALx7z5jpGRHAgZri8LCUvJxnz80sjFQyncVbVKlJkwDaRi/4xcjto3oth4ZA7NMkJfZZxxICuWC26EZiIkGZpMeEIhIAxVrQwr9yoXJBcW67LcMjRTDiDr+uAe+ocipaet+/A2MbJPob3iU4K8jzTmpf7bpLzDqdxMy+WOd2qW/Ab5J7+2KOSjGg x-ms-exchange-antispam-srfa-diagnostics: SOS; x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: 3a70c0d7-5329-461a-22b1-08d5e49b0a3e x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989117)(48565401081)(5600053)(711020)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(2017052603328)(7153060)(7193020); SRVR:DB7PR05MB4939; x-ms-traffictypediagnostic: DB7PR05MB4939: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(28532068793085)(21748063052155); x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(3002001)(3231311)(944501410)(52105095)(10201501046)(93006095)(93001095)(6055026)(149027)(150027)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123562045)(20161123564045)(20161123558120)(6072148)(201708071742011)(7699016); SRVR:DB7PR05MB4939; BCL:0; PCL:0; RULEID:; SRVR:DB7PR05MB4939; x-forefront-prvs: 0727122FC6 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(39860400002)(376002)(346002)(136003)(396003)(366004)(189003)(199004)(102836004)(5250100002)(6636002)(33656002)(554214002)(256004)(2501003)(68736007)(2906002)(476003)(486006)(316002)(14454004)(99286004)(478600001)(2900100001)(5660300001)(26005)(7696005)(66066001)(6506007)(186003)(6436002)(3846002)(6116002)(97736004)(8936002)(86362001)(4326008)(110136005)(105586002)(55016002)(54896002)(106356001)(9686003)(74316002)(7736002)(8676002)(790700001)(6306002)(25786009)(81156014)(81166006)(53936002); DIR:OUT; SFP:1101; SCL:1; SRVR:DB7PR05MB4939; H:DB7PR05MB4426.eurprd05.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; received-spf: None (protection.outlook.com: mellanox.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: R7KolywqxmFPvkiC+KuhrZmdSYA00kaT3b6bmXFwONnZbxT68vVcPkWp5gPCUU23+dXUsHyIyDuo5c2V7lFvRMXQHPJNR9zf/k5JTRdsuUqpUfUGYMPuO2dsQZYUyFYdSiAYo8CT5Yyfp++lepGGOqHPz2ruhafyPPJ2N6MdyCbU1s2O5zbCX4XYYWHG560PSOCCI8BZyKxfbQBZZKYw/fwtRNbgGB/TK2ZjPA6XdegA8eSErL8VoGHdk2Uq7EF/LI7k/BFmMTkQOLhdyc6GhrBF7GG9DGVG9OCcnUCNm/zeujGaBrABxuEurXvTgGWiyMQpzbZ0uVhTeJN6jLhRsSLNliOzbLehXUpkQkr46Lg= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3a70c0d7-5329-461a-22b1-08d5e49b0a3e X-MS-Exchange-CrossTenant-originalarrivaltime: 08 Jul 2018 06:21:28.3970 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB7PR05MB4939 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [dpdk-dev] expectation from rte_eth_dev_stop(start) 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: Sun, 08 Jul 2018 06:21:30 -0000 Hi ethdev maintainers, I am looking for the exact expectation from the PMD upon a call for rte_eth= _dev_stop. The doc is a bit lacking[1]. Assuming stop should do the opposite of start[2], Does it mean after call to dev_stop the DPDK port should no longer receive = traffic? What should be the link status after a call to dev_stop? From [2] it seems = like a don't care since the link_status callback is not enabled. [1] /** * Stop an Ethernet device. The device can be restarted with a call to * rte_eth_dev_start() * * @param port_id * The port identifier of the Ethernet device. */ void rte_eth_dev_stop(uint16_t port_id); [2] /** * Start an Ethernet device. * * The device start step is the last one and consists of setting the config= ured * offload features and in starting the transmit and the receive units of th= e * device. * On success, all basic functions exported by the Ethernet API (link statu= s, * receive/transmit, and so on) can be invoked. * * @param port_id * The port identifier of the Ethernet device. * @return * - 0: Success, Ethernet device started. * - <0: Error code of the driver device start function. */ int rte_eth_dev_start(uint16_t port_id);