From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr0-f194.google.com (mail-wr0-f194.google.com [209.85.128.194]) by dpdk.org (Postfix) with ESMTP id B7B0C2BB9 for ; Wed, 7 Jun 2017 18:11:36 +0200 (CEST) Received: by mail-wr0-f194.google.com with SMTP id u101so1609523wrc.1 for ; Wed, 07 Jun 2017 09:11:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=+BSOGNEACZL9wKKFmDw1hjze1WlbKJXp+81E7ruL2nc=; b=HZTA42XfIQXQvpBdT9kKgBXPsLCcYaPOpmmizT/3WmZfoohUs+fF8Ew7CCpUTczhH5 zUnkWI9oMUr5G7ScXvTOnEA98Sd+AcQvATvnOlWTKmvWH7o2vJOUdRrwfuBFrHpA16dE bzOYy5qVgiAwBIQIPnkK2s6ZaMTMUiU4qTVOTsG7flodf9fOvqjMczQ6nzlqH6HWo3Sg 2kjgL4unvkY2lFJAnNh6RB36vkL9p7NJXR+SAaLCCSV7ZzNo7gga6RxwWYAL5vWB5W/3 Q0mX/yjFCYGvmWHnytxFJECjcAKIKIXXNHKQ7vQPWJsifUd1IY7eKLe8uFpJ6hPp2Rtf wUiw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=+BSOGNEACZL9wKKFmDw1hjze1WlbKJXp+81E7ruL2nc=; b=GKzyBRVtjl1rfl0BQxjPJ1r4sSd2Bck1lmLicqQSZjNrcOnIStxHjkHe8bySGemsAE 03zjdCWWwEELsy5ZITxY7YURdBqFfWMB2+lHJ3y8SGV7RHgZ3rlJnjLR38lsmT3Kqzah Zaxy4oBBNEUqc0VliV0PIYmwbUwfEQzBlQu2KWlErkOIx8dGffCbMu9soovttmdv0yL0 QjbsvuGgAkBYQd48AoIgMJPItQ7tRaa9A2Zqm8FaRoo+80Ra3A8GDdI0CqBxokA7odsk VMWhCtUTWZVdyVydi23An2QBERskvaLcLnSM9dXUOIqLJgiVs4kwcf0bgl+LuhZUQuk8 SUtQ== X-Gm-Message-State: AODbwcBP6H0q8VpbsqjxLlsNGGaqN4L8uv+6H29bpDmx6Ht33+bOfU5v Mk96JnqLz054nUnoxiTL1sQ/REHzow== X-Received: by 10.223.143.11 with SMTP id p11mr22008924wrb.3.1496851896425; Wed, 07 Jun 2017 09:11:36 -0700 (PDT) MIME-Version: 1.0 Sender: jblunck@gmail.com Received: by 10.28.25.65 with HTTP; Wed, 7 Jun 2017 09:11:35 -0700 (PDT) In-Reply-To: <20170606151008.62680-1-ferruh.yigit@intel.com> References: <20170526111502.92063-1-ferruh.yigit@intel.com> <20170606151008.62680-1-ferruh.yigit@intel.com> From: Jan Blunck Date: Wed, 7 Jun 2017 18:11:35 +0200 X-Google-Sender-Auth: 5vaGu5imkgpM8tgZtJu3QtrGkYI Message-ID: To: Ferruh Yigit Cc: Stephen Hurd , Ajit Khaparde , Declan Doherty , Rahul Lakkireddy , Hemant Agrawal , Shreyansh Jain , Helin Zhang , Jingjing Wu , Wenzhuo Lu , Konstantin Ananyev , Bruce Richardson , Pascal Mazon , Shrikrishna Khare , Jianfeng Tan , Thomas Monjalon , dev , Gaetan Rivet Content-Type: text/plain; charset="UTF-8" Subject: Re: [dpdk-dev] [PATCH v2] ethdev: remove driver name from device private data 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, 07 Jun 2017 16:11:37 -0000 On Tue, Jun 6, 2017 at 5:10 PM, Ferruh Yigit wrote: > rte_driver->name has the driver name and all physical and virtual > devices has access to it. > > Previously it was not possible for virtual ethernet devices to access > rte_driver->name field (because eth_dev used to keep only pci_dev), > and it was required to save driver name in the device private struct. > > After re-works on bus and vdev, it is possible for all bus types to > access rte_driver. > > It is able to remove the driver name from ethdev device private data and > use eth_dev->device->driver->name. > > Signed-off-by: Ferruh Yigit > --- > Cc: Gaetan Rivet > Cc: Jan Blunck > > v2: > * rebase on latest next-net Acked-by: Jan Blunck