[ofa-general] Re: [PATCH v4 14/14] QLogic VNIC: sysfs Documentation

Ramachandra K ariston at gmail.com
Thu Jun 12 08:50:27 PDT 2008


On Wed, Jun 11, 2008 at 12:17 PM, Patrick McHardy <kaber at 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.

<snip>

>> +# An interface can be deleted by echoing the name of the interface to be
>> deleted
>> +# to delete_vnic file
>> +echo -n veth1 > /sys/class/infiniband_qlgc_vnic/interfaces/delete_vnic
>
>
> This clearly shows the advantage of being able to use echo
> for configuration.

>From this statement, I thought you agreed with the advantage of echo for
configuration.

Regards,
Ram



More information about the general mailing list