]> git.baikalelectronics.ru Git - kernel.git/commit
net: Add ndo_{set|get}_vf_port support for enic dynamic vnics
authorScott Feldman <scofeldm@cisco.com>
Tue, 18 May 2010 05:50:19 +0000 (22:50 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 18 May 2010 05:50:19 +0000 (22:50 -0700)
commit5c094623008ea357f85aeca7bb2aa34f8d2fc66b
treeaefec6e6f1e67e93bc1b2ec223f974a4cd34f00f
parentcaa5fa878ba14666913182205d0f7c33f798f9bc
net: Add ndo_{set|get}_vf_port support for enic dynamic vnics

Add enic ndo_{set|get}_vf_port ops to support setting/getting
port-profile for enic dynamic devices.  Enic dynamic devices are just like
normal enic eth devices except dynamic enics require an extra configuration
step to assign a port-profile identifier to the interface before the
interface is useable.  Once a port-profile is assigned, link comes up on the
interface and is ready for I/O.  The port-profile is used to configure the
network port assigned to the interface.  The network port configuration
includes VLAN membership, QoS policies, and port security settings typical
of a data center network.

A dynamic enic initially has a zero-mac address.  Before a port-profile is
assigned, a valid non-zero unicast mac address should be assign to the
dynamic enic interface.

Signed-off-by: Scott Feldman <scofeldm@cisco.com>
Signed-off-by: Roopa Prabhu <roprabhu@cisco.com>
drivers/net/enic/Makefile
drivers/net/enic/enic.h
drivers/net/enic/enic_main.c
drivers/net/enic/enic_res.c
drivers/net/enic/enic_res.h
drivers/net/enic/vnic_dev.c
drivers/net/enic/vnic_dev.h
drivers/net/enic/vnic_vic.c [new file with mode: 0644]
drivers/net/enic/vnic_vic.h [new file with mode: 0644]