From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ob0-f174.google.com (mail-ob0-f174.google.com [209.85.214.174]) by dpdk.org (Postfix) with ESMTP id 1706E8E59 for ; Tue, 19 Jan 2016 12:00:09 +0100 (CET) Received: by mail-ob0-f174.google.com with SMTP id is5so183773439obc.0 for ; Tue, 19 Jan 2016 03:00:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=qqwCuH1Jo2xctsQlptZxE1Ohp4wNOMhUkRNspW7nN4w=; b=CNAOGFsgLpJf5SQzKndfyfGBy0hYrt/0jYE2UCK4TF2VuV6w+I2x3ogmk0lhwQDiam gZW1s/6SBYSQ9zHmBwY2uVM+MUHTPXHio8t3EIc9FoxfwtJLkiVy/VooSKJqbiMZ+lvN QWPPbt/B6IG5JqAVj7WkF/JlAsJKjzkH3ep/zbslY4Eulf7RjfRFoMnL82eMDQ7Fz/Ys Nov/7LRLrShPadOzjoUd720o6O7D62OvpYTDAfhP/HOHQtXiBjfjo22cToc631SBGeUQ iT8cuxe0j8UngrNs0zq5Uuc0vE8qgiMaMcsFfJRxaA5ioodSGLLDecUNjYtPAns9srUp Ayzg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type; bh=qqwCuH1Jo2xctsQlptZxE1Ohp4wNOMhUkRNspW7nN4w=; b=aILyADyWqrtFZx/QCCbyV0iMBth4ho7ER4ibMd3Qf3Qqia4bzDYkNOaYlkpqdSKjN8 CHLPSxd98l/Fp4diBgR9FZTYf4ncps2w6+9KZSeXM5gRc261HGndQwF+E/yddbFLtoA8 8+FKH+IQbT8eeYDjTD/qDJaX+Ra4/RucL+arKwHvcgWEFEr50i5ALkupKz8X4RIS8h5C BZ0e79E3m+X9uVz2E98yxBlytA3JfiEZhveywSKvj7IMI5B+H2t+R5gW02rginJz+map qYmSMkKstC9Lg8Xy8Lap/0h9qQkFDbsHnBTwkK74VSsHjQ9l1J6o9t5kZwQbzKaIr4pZ ssWQ== X-Gm-Message-State: ALoCoQmTjv2bDYfB50nHcWygAUci+pd48Ib0syxxYAdHAGOGfEDueXVTZriJo2wd1cpHVfqVbiPH6lFFY6HKIgpICOOAtPmbK/tTbjMddYCbt2UX2W78e0I= X-Received: by 10.182.28.162 with SMTP id c2mr22681387obh.76.1453201208296; Tue, 19 Jan 2016 03:00:08 -0800 (PST) MIME-Version: 1.0 Received: by 10.76.180.72 with HTTP; Tue, 19 Jan 2016 02:59:48 -0800 (PST) In-Reply-To: <20160119112916.5c3172f4@pcviktorin.fit.vutbr.cz> References: <20160118155834.04cb31f2@pcviktorin.fit.vutbr.cz> <20160119112916.5c3172f4@pcviktorin.fit.vutbr.cz> From: David Marchand Date: Tue, 19 Jan 2016 11:59:48 +0100 Message-ID: To: Jan Viktorin Content-Type: text/plain; charset=UTF-8 Cc: "dev@dpdk.org" Subject: Re: [dpdk-dev] Proposal for a big eal / ethdev cleanup X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Jan 2016 11:00:09 -0000 Jan, On Tue, Jan 19, 2016 at 11:29 AM, Jan Viktorin wrote: > On Mon, 18 Jan 2016 22:11:56 +0100 > David Marchand wrote: >> Ok, so what you propose is something like this ? > > I've expressed my basic understanding of this topic in the RFC patch set > yesterday (as you know). > >> >> - keep rte_driver as it is (init and uninit), I would say the name can >> be changed later. > > Agreed. > >> - add rte_bus_driver (idem, not sure it is a good name) in place of >> the rte_driver I mentioned in my initial mail. > > I don't like the name either. I have no other idea at the moment. My initial intention was to go as far as possible with the approach I described without caring about the api / abi. Then if the result is worth, see how we could maintain the api / abi and how to manage the changes if not possible. So please, do not hesitate to break stuff. >> Rather than have init / uninit, how about attach / detach methods ? > > You mean attach a driver to a device? Yes, much better. And what about > probe? I was quite confused when writing a PMD as I couldn't understand > clearly where should I start touching the hardware. Yes, I also thought of probe name, but then for unplugging ? We could use the same names as linux kernel probe/remove ? I think freebsd kernel uses the same, so why not. Regards, -- David Marchand