From mboxrd@z Thu Jan 1 00:00:00 1970 From: Chris Wright Subject: Re: [net-next-2.6 V6 PATCH 1/2] Add netlink support for virtual port management (was iovnl) Date: Thu, 13 May 2010 14:08:28 -0700 Message-ID: <20100513210828.GD30483@x200.localdomain> References: <20100513201714.25579.53530.stgit@savbu-pc100.cisco.com> <20100513201720.25579.51230.stgit@savbu-pc100.cisco.com> <4BEC63DB.2090306@trash.net> <20100513204614.GB30483@x200.localdomain> <4BEC65BC.5040208@trash.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Chris Wright , Scott Feldman , davem@davemloft.net, netdev@vger.kernel.org, arnd@arndb.de To: Patrick McHardy Return-path: Received: from mx1.redhat.com ([209.132.183.28]:5371 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752209Ab0EMVIf (ORCPT ); Thu, 13 May 2010 17:08:35 -0400 Content-Disposition: inline In-Reply-To: <4BEC65BC.5040208@trash.net> Sender: netdev-owner@vger.kernel.org List-ID: * Patrick McHardy (kaber@trash.net) wrote: > Chris Wright wrote: > > * Patrick McHardy (kaber@trash.net) wrote: > >>> + } else { > >>> + err = rtnl_vf_port_fill_nest(skb, dev, -1); > >> What does -1 mean? > > > > It means no VFs. Could be made a macro/enum constant > > Why call rtnl_vg_port_fill_nest at all in that case? It even > calls the ndo_get_vf_port() callback. For the case where port profile is set on net dev that does not have VFs (e.g. the enic case in 2/2). thanks, -chris