iproute2/ip
Roopa Prabhu 632110aa0d iproute2: add VF_PORT support
Resubmitting Scott Feldmans original patch with below changes

- Fix port profile strlen which was off by 1
- Added function to convert IFLA_PORT_RESPONSE codes to string

Add support for IFLA_VF_PORTS.  VF port netlink msg layout is

        [IFLA_NUM_VF]
        [IFLA_VF_PORTS]
                [IFLA_VF_PORT]
                        [IFLA_PORT_*], ...
                [IFLA_VF_PORT]
                        [IFLA_PORT_*], ...
                ...
        [IFLA_PORT_SELF]
                [IFLA_PORT_*], ...

The iproute2 cmd line for link set is now:

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 ]
                          [ port MODE { PROFILE | VSI } ]
                          [ vf NUM [ mac LLADDR ]
                                   [ vlan VLANID [ qos VLAN-QOS ] ]
                                   [ rate TXRATE ]
                                   [ port MODE { PROFILE | VSI } ] ]
       ip link show [ DEVICE ]

TYPE := { vlan | veth | vcan | dummy | ifb | macvlan | can }
MODE := { assoc | preassoc | preassocrr | disassoc }
PROFILE := profile PROFILE
           [ instance UUID ]
           [ host UUID ]
VSI := vsi mgr MGRID type VTID ver VER
       [ instance UUID ]

Signed-off-by: Scott Feldman <scofeldm@cisco.com>
Signed-off-by: Roopa Prabhu <roprabhu@cisco.com>
2011-01-13 14:50:46 -08:00
..
.gitignore Another .gitignore file. 2006-08-08 12:11:23 -07:00
Makefile Support 'mode' parameter when creating macvtap device 2010-11-30 10:01:41 -08:00
ifcfg Remove trailing whitespace 2006-12-05 10:10:22 -08:00
ip.c Allow 'ip addr flush' to loop more than 10 times 2010-12-01 11:13:51 -08:00
ip6tunnel.c Use standard routines for interface name to index etc 2010-11-28 10:35:28 -08:00
ip_common.h ip: add support for multicast rules 2010-06-09 08:49:24 -07:00
ipaddress.c iproute2: add VF_PORT support 2011-01-13 14:50:46 -08:00
ipaddrlabel.c iproute2: fix addrlabel interface names handling 2010-05-13 09:23:46 -07:00
iplink.c iproute2: add VF_PORT support 2011-01-13 14:50:46 -08:00
iplink_can.c iproute2: netlink support for bus-error reporting and counters 2010-03-03 16:45:10 -08:00
iplink_macvlan.c iproute2/iplink: add macvlan options for bridge mode 2009-12-26 11:22:57 -08:00
iplink_macvtap.c Support 'mode' parameter when creating macvtap device 2010-11-30 10:01:41 -08:00
iplink_vlan.c iplink_vlan: add support for VLAN loose binding flag 2009-12-26 11:07:16 -08:00
ipmaddr.c ip maddr show” on an infiniband address causes a stack corruption 2009-01-06 18:56:03 -08:00
ipmonitor.c iproute2: drop equalize support. 2009-03-27 11:11:12 -07:00
ipmroute.c iproute: "ip mroute show" doesn't show all output interfaces 2009-12-01 16:15:15 -08:00
ipneigh.c Remove Changes: comments 2009-12-01 15:49:48 -08:00
ipntable.c Remove trailing whitespace 2006-12-05 10:10:22 -08:00
ipprefix.c Remove trailing whitespace 2006-12-05 10:10:22 -08:00
iproute.c Add ip route save/restore 2010-12-01 11:24:58 -08:00
iprule.c iproute2: Add dsfield as alias for tos for ip rules 2010-07-23 12:27:14 -07:00
iptunnel.c iproute2: treat gre key as number 2010-11-30 09:52:32 -08:00
iptuntap.c Add 'ip tuntap' support. 2009-09-19 12:49:41 -07:00
ipxfrm.c iproute2: support xfrm upper protocol gre key 2010-11-30 09:53:23 -08:00
link_gre.c Use standard routines for interface name to index etc 2010-11-28 10:35:28 -08:00
link_veth.c veth.h move to linux/ 2007-12-25 12:38:08 -08:00
routef ip/routef lifesaver 2007-07-10 18:29:20 -07:00
routel (Logical change 1.3) 2004-04-15 20:56:59 +00:00
rtm_map.c (Logical change 1.3) 2004-04-15 20:56:59 +00:00
rtmon.c iproute2: Support IFF_LOWER_UP and IFF_DORMANT 2007-06-19 16:40:40 -07:00
rtpr (Logical change 1.3) 2004-04-15 20:56:59 +00:00
static-syms.c support static-only systems 2009-11-10 10:44:20 -08:00
tunnel.c Use standard routines for interface name to index etc 2010-11-28 10:35:28 -08:00
tunnel.h Use standard routines for interface name to index etc 2010-11-28 10:35:28 -08:00
xfrm.h xfrm: Introduce xfrm by mark 2010-03-03 16:37:28 -08:00
xfrm_monitor.c ip: xfrm: Fix flush message. 2007-09-05 12:56:51 +01:00
xfrm_policy.c iproute2: support xfrm upper protocol gre key 2010-11-30 09:53:23 -08:00
xfrm_state.c xfrm: add support for SA by mark 2010-03-03 16:37:29 -08:00