Go to file
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
doc Add ip route save/restore 2010-12-01 11:24:58 -08:00
etc/iproute2 Add DHCP as routing protocol 2009-03-18 13:33:12 -07:00
examples gaiconf: /etc/gai.conf configuration helper. 2010-03-29 13:59:28 -07:00
genl support static-only systems 2009-11-10 10:44:20 -08:00
include Update to lasest kernel headers 2011-01-12 18:46:54 -08:00
ip iproute2: add VF_PORT support 2011-01-13 14:50:46 -08:00
lib Cleanup ll_map 2010-12-10 11:58:09 -08:00
man ip: Few typo and grammar errors fixes for ip(8) manpage 2010-12-16 08:30:26 -08:00
misc iproute2: add 64bit support to ifstat 2010-08-23 13:05:12 -07:00
netem netem: fix installs of dist files 2010-07-31 19:31:04 -07:00
tc tc: add ACT_CSUM action support (csum) 2010-12-01 11:17:46 -08:00
testsuite Fix modes of test files 2007-09-05 12:00:01 +01:00
.gitignore Ignore GDB related files 2009-11-13 14:20:41 -08:00
COPYING Update address of FSF in license 2008-03-08 13:31:03 -08:00
ChangeLog Backout the 2.4 utsname hash patch. 2006-03-22 00:07:49 +00:00
Makefile Workaround for repeated distclean 2010-11-18 15:25:38 -08:00
README Mention need for db dev package 2006-12-13 17:01:42 -08:00
README.decnet Decnet documentation update 2005-06-13 18:47:56 +00:00
README.distribution Rename: tc/README.distribution -> README.distribution 2004-08-23 20:21:21 +00:00
README.iproute2+tc (Logical change 1.3) 2004-04-15 20:56:59 +00:00
README.lnstat Rename: misc/README.lnstat -> README.lnstat 2004-10-19 20:24:47 +00:00
RELNOTES (Logical change 1.3) 2004-04-15 20:56:59 +00:00
configure iproute2: detect iptables modules dir in configure. 2010-03-29 15:10:20 -07:00

README

Primary site is:
	http://developer.osdl.org/dev/iproute2

Original FTP site is:
	ftp://ftp.inr.ac.ru/ip-routing/

How to compile this.
--------------------
1. Look at start of Makefile and set correct values for:

KERNEL_INCLUDE should point to correct linux kernel include directory.
Default (/usr/src/linux/include) is right as rule.

arpd needs to have the db4 development libraries. For debian
users this is the package with a name like libdb4.x-dev.
DBM_INCLUDE points to the directory with db_185.h which
is the include file used by arpd to get to the old format Berkely
database routines.  Often this is in the db-devel package.

2. make

The makefile will automatically build a file Config which
contains whether or not ATM is available, etc.

3. To make documentation, cd to doc/ directory , then
   look at start of Makefile and set correct values for
   PAGESIZE=a4		, ie: a4 , letter ...	(string)
   PAGESPERPAGE=2	, ie: 1 , 2 ...		(numeric)
   and make there. It assumes, that latex, dvips and psnup
   are in your path.

Stephen Hemminger
shemminger@osdl.org

Alexey Kuznetsov
kuznet@ms2.inr.ac.ru