[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <201005270900.29776.arnd@arndb.de>
Date: Thu, 27 May 2010 09:00:29 +0200
From: Arnd Bergmann <arnd@...db.de>
To: Scott Feldman <scofeldm@...co.com>
Cc: netdev@...r.kernel.org, Chris Wright <chrisw@...hat.com>,
Stephen Hemminger <shemminger@...tta.com>,
Stefan Berger <stefanb@...ibm.com>,
Dirk Herrendoerfer <d.herrendoerfer@...ibm.com>,
Vivek Kashyap <vivk@...ibm.com>
Subject: Re: [RFC] IFLA_PORT_* iproute2 cmd line
On Wednesday 26 May 2010, Scott Feldman wrote:
> On 5/26/10 5:38 AM, "Arnd Bergmann" <arnd@...db.de> wrote:
>
> How does this strike you?
>
> Usage: ip link add link DEV [ name ] NAME
> [ txqueuelen PACKETS ]
> [ address LLADDR ]
> [ broadcast LLADDR ]
> [ mtu MTU ]
> type TYPE [ ARGS ]
> ip link delete DEV type TYPE [ ARGS ]
>
> ip link set DEVICE [ { up | down } ]
> [ arp { on | off } ]
> [ dynamic { on | off } ]
> [ multicast { on | off } ]
> [ allmulticast { on | off } ]
> [ promisc { on | off } ]
> [ trailers { on | off } ]
> [ txqueuelen PACKETS ]
> [ name NEWNAME ]
> [ address LLADDR ]
> [ broadcast LLADDR ]
> [ mtu MTU ]
> [ netns PID ]
> [ alias NAME ]
> + [ virtualport MODE {PROFILE|VSI} ]
> [ vf NUM [ mac LLADDR ]
> [ vlan VLANID [ qos VLAN-QOS ] ]
> - [ rate TXRATE ] ]
> + [ rate TXRATE ]
> + [ virtualport MODE {PROFILE|VSI} ] ]
> ip link show [ DEVICE ]
>
> TYPE := { vlan | veth | vcan | dummy | ifb | macvlan | can }
> +
> + MODE := { associate | preassociate | preassociaterr | disassociate }
> +
> + PROFILE := port-profile PORT-PROFILE
> + [ instance-uuid INSTANCE-UUID ]
> + [ host-uuid HOST-UUID ]
> +
> + VSI := vsi managerid MGR typeid VTID typeidversion VER
> + [ instance-uuid INSTANCE-UUID ]
Right, exactly what I was thinking of. I would probably use
some shorter keywords (virtual-port -> port, port-profile -> profile,
instance-uuid -> instance, host-uuid -> host), but I really
don't have a strong opionion on that, so I'f fine with
whatever you and others come up with in that regard.
> > The more interesting question is how to do this when we
> > talk to lldpad. One idea was to use the same protocol
> > but to direct the message to a specific pid (that of lldpad).
> > That would require adding an option like '-p PID' to ip
> > that lets us change who we talk to.
>
> Let me get the user-to-kernel part working to establish the cmd line and you
> can follow up with alternative addressing schemes.
ok.
Arnd
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists