From mboxrd@z Thu Jan 1 00:00:00 1970 From: Patrick McHardy Subject: Re: [ofa-general] Re: [PATCH v4 14/14] QLogic VNIC: sysfs Documentation Date: Sat, 14 Jun 2008 10:08:08 +0200 Message-ID: <48537C68.1010207@trash.net> References: <20080610205633.11186.45499.stgit@dale> <20080610210918.11186.64253.stgit@dale> <484F751F.7030407@trash.net> <71d336490806120850x3b5e6172jf4d75850771d6349@mail.gmail.com> <485148DA.2060508@trash.net> <48529027.1090309@trash.net> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit Cc: netdev@vger.kernel.org, rdreier@cisco.com, general@lists.openfabrics.org, poornima.kamath@qlogic.com To: Amar Mudrankit Return-path: In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: general-bounces@lists.openfabrics.org Errors-To: general-bounces@lists.openfabrics.org List-Id: netdev.vger.kernel.org Amar Mudrankit wrote: >> If you have questions, feel free to ask. >> > I was trying to guess the use case for the vlan which has implemented > rtnl_link api : > > For sending parameters to driver: > # ip link set up multicast ...... type vlan id > reorder_hdr on > > ingress-qos-map <...> egress-qos-map <...> > > In such case, I think the link_util's private parse_opt function will > be invoked to parse link's private configurable parameters. These > parameters along with the standard set of parameters (name, multicast, > promisc etc) are then sent to driver through rtnl_talk function . > > Similarly, for reading values from driver: > > # ip addr show dev > > does it require "type" field similar to "ip link set"? No. Thats only required for parsing device specific parameters. > Is this understanding correct? Yes. > How does a link type corresponding to VLAN driver gets added into > linkutil_list, so that ip will correctly call functions specific to > VLAN driver? iproute dlopens itself and looks for the struct "_link_util". >> You can dump driver private statistics in the ->fill_xstats function. >> > > I was looking at latest release of iproute2, in which I could not > locate fill_xstats. Can you help me to locate this? ->fill_xstats is in the kernel, in iproute its ->print_xstats.