From: "Amar Mudrankit" <amar.mudrankit@qlogic.com>
To: "Patrick McHardy" <kaber@trash.net>
Cc: "Ramachandra K" <ariston@gmail.com>,
netdev@vger.kernel.org, rdreier@cisco.com,
poornima.kamath@qlogic.com, general@lists.openfabrics.org
Subject: Re: [ofa-general] Re: [PATCH v4 14/14] QLogic VNIC: sysfs Documentation
Date: Fri, 13 Jun 2008 02:39:51 +0530 [thread overview]
Message-ID: <c8028d330806121409x27a4d596k571ce87934e89371@mail.gmail.com> (raw)
In-Reply-To: <485148DA.2060508@trash.net>
On Thu, Jun 12, 2008 at 9:33 PM, Patrick McHardy <kaber@trash.net> wrote:
> Ramachandra K wrote:
>>
>> On Wed, Jun 11, 2008 at 12:17 PM, Patrick McHardy <kaber@trash.net> wrote:
>>>
>>> Since I didn't receive anything but a "its too complex" in
>>> response to my previous question, let me ask again: why are
>>> you inventing a new sysfs interface (combined with ~15 module
>>> parameters) instead of using the existing standard interfaces
>>> for this?
>>
>> Can you please elaborate on the standard interfaces you are referring to ?
>>
>> Also as Roland mentioned in the other thread, echo-ing the parameters
>> to sysfs files
>> is a pretty straightforward way to configure the interfaces. Users
>> can setup configuration files to configure QLogic VNIC interfaces
>> specifying the name of the interface, various parameters of the
>> QLogic EVIC gateway target they want to use and a simple user level
>> script parses the configuration file and echoes the parameters to the
>> driver.
>
>
> We introduced the rtnl_link API to avoid having each driver
> come up with its own method of creating virtual network devices.
>
> Besides the fact that it is the interface intended to be used
> for this kind of thing and the advantages mentioned in my
> response to Roland, looking at your interface, there are a
> few more advantages from integrating this cleanly in iproute:
>
I have just started on getting into the rtnl_link API. There are few
queries on it, plz correct me if I am wrong.
1. If I understand it correctly, this interface is not text based.
Hence, it looks like this interface needs a separate user program
which actually sends the parameters to the driver. A separate user
program for each driver, as their configuration parameters might be
different. Is it right?
2. I am not sure if there exists a standardized (netlink?) interface
through which parameters can be passed to kernel. If so, there would
be standard set of parameters that can be configured and standard set
of statistics values that can be retrieved from driver. Is it so?
Actually, I tried googling around rtnl_link, but couldn't collect
sufficient information.
3. Is there any kind of documentation available on this? I tried
searching on it in Documentation/ directory as well as git log but
could not locate enough of it.
4. Can anybody point to an ethernet driver as an example of
implementation of rtnl_link API along with an equivalent user space
program to configure it?
That would be of immense help.
>> +echo -n 00066a01de000037 >
>> /sys/class/infiniband_qlgc_vnic/interfaces/veth1/primary_path/ioc_guid
>> +echo -n fe8000000000000100066a11de000037 >
>> /sys/class/infiniband_qlgc_vnic/interfaces/veth1/primary_path/dgid
>> +echo -n ffff >
>> /sys/class/infiniband_qlgc_vnic/interfaces/veth1/primary_path/pkey
>
> I guess life would be easier for users if those parameters can
> be generated in userspace or at least looked up in something
> like the maps in /etc/iproute2/.
>
Is it the answer of question no 2 above? If so, what about statistics
of the driver then?
> In any case, things like tx_csum and rx_csum definitely do
> not belong in this interface.
>
We are planning to give ethtool support for the driver in future, in
which case these 2 parameters will be configured through ethtool.
Thanks and Regards,
Amar
next prev parent reply other threads:[~2008-06-12 21:09 UTC|newest]
Thread overview: 41+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-06-10 21:02 [ofa-general] [PATCH v4 00/14] QLogic VNIC Driver Ramachandra K
2008-06-10 21:02 ` [ofa-general] [PATCH v4 01/14] QLogic VNIC: Driver - netdev implementation Ramachandra K
2008-06-10 21:03 ` [ofa-general] [PATCH v4 02/14] QLogic VNIC: Netpath - abstraction of connection to EVIC/VEx Ramachandra K
2008-06-10 21:03 ` [ofa-general] [PATCH v4 03/14] QLogic VNIC: Implementation of communication protocol with EVIC/VEx Ramachandra K
2008-06-10 21:04 ` [ofa-general] [PATCH v4 04/14] QLogic VNIC: Implementation of Control path of communication protocol Ramachandra K
2008-06-10 22:21 ` Stephen Hemminger
2008-06-10 21:04 ` [ofa-general] [PATCH v4 05/14] QLogic VNIC: Implementation of Data " Ramachandra K
2008-06-10 21:05 ` [ofa-general] [PATCH v4 06/14] QLogic VNIC: IB core stack interaction Ramachandra K
2008-06-10 21:05 ` [ofa-general] [PATCH v4 07/14] QLogic VNIC: Handling configurable parameters of the driver Ramachandra K
2008-06-10 21:06 ` [ofa-general] [PATCH v4 08/14] QLogic VNIC: sysfs interface implementation for " Ramachandra K
2008-06-10 21:06 ` [ofa-general] [PATCH v4 09/14] QLogic VNIC: IB Multicast for Ethernet broadcast/multicast Ramachandra K
2008-06-10 21:07 ` [ofa-general] [PATCH v4 10/14] QLogic VNIC: Driver Statistics collection Ramachandra K
2008-06-10 21:07 ` [PATCH v4 11/14] QLogic VNIC: Driver utility file - implements various utility macros Ramachandra K
2008-06-10 21:08 ` [PATCH v4 12/14] QLogic VNIC: Driver Kconfig and Makefile Ramachandra K
2008-06-10 21:08 ` [ofa-general] [PATCH v4 13/14] QLogic VNIC: Modifications to IB " Ramachandra K
2008-06-10 21:09 ` [ofa-general] [PATCH v4 14/14] QLogic VNIC: sysfs Documentation Ramachandra K
2008-06-11 6:47 ` Patrick McHardy
2008-06-12 15:13 ` [ofa-general] " Amar Mudrankit
2008-06-12 15:18 ` Patrick McHardy
2008-06-12 15:29 ` Ramachandra K
2008-06-12 15:34 ` Patrick McHardy
2008-06-12 20:22 ` Jeff Garzik
2008-06-14 18:03 ` Roland Dreier
2008-06-14 19:03 ` Jason Gunthorpe
2008-06-16 8:54 ` Patrick McHardy
2008-06-18 12:32 ` Ramachandra K
2008-06-18 12:38 ` Patrick McHardy
2008-06-18 18:21 ` Jason Gunthorpe
2008-06-19 1:19 ` Patrick McHardy
2008-06-19 1:26 ` Patrick McHardy
2008-06-12 15:50 ` Ramachandra K
2008-06-12 16:03 ` Patrick McHardy
2008-06-12 21:09 ` Amar Mudrankit [this message]
2008-06-13 15:20 ` Patrick McHardy
2008-06-13 21:47 ` Amar Mudrankit
2008-06-14 8:08 ` Patrick McHardy
2008-06-16 19:44 ` Amar Mudrankit
2008-06-16 20:39 ` Patrick McHardy
2008-06-12 16:04 ` Karen Shaeffer
2008-06-12 15:21 ` [ofa-general] [PATCH v4 00/14] QLogic VNIC Driver Ramachandra K
2008-06-12 15:35 ` Patrick McHardy
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=c8028d330806121409x27a4d596k571ce87934e89371@mail.gmail.com \
--to=amar.mudrankit@qlogic.com \
--cc=ariston@gmail.com \
--cc=general@lists.openfabrics.org \
--cc=kaber@trash.net \
--cc=netdev@vger.kernel.org \
--cc=poornima.kamath@qlogic.com \
--cc=rdreier@cisco.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).