linux/drivers/infiniband/core
Eli Cohen 50174a7f2c IB/core: Add interfaces to control VF attributes
Following the practice exercised for network devices which allow the PF
net device to configure attributes of its virtual functions, we
introduce the following functions to be used by IPoIB which is the
network driver implementation for IB devices.

ib_set_vf_link_state - set the policy for a VF link. More below.
ib_get_vf_config - read configuration information of a VF
ib_get_vf_stats - read VF statistics
ib_set_vf_guid - set the node or port GUID of a VF

Also add an indication in the device cap flags that indicates that this
IB devices is based on a virtual function.

A VF shares the physical port with the PF and other VFs. When setting
the link state we have three options:

1. Auto - in this mode, the virtual port follows the state of the
   physical port and becomes active only if the physical port's state is
   active. In all other cases it remains in a Down state.
2. Down - sets the state of the virtual port to Down
3. Up - causes the virtual port to transition into Initialize state if
   it was not already in this state. A virtualization aware subnet manager
   can then bring the state of the port into the Active state.

Signed-off-by: Eli Cohen <eli@mellanox.com>
Reviewed-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
2016-03-21 17:13:14 -04:00
..
addr.c IB/core: Use hop-limit from IP stack for RoCE 2016-01-19 15:26:56 -05:00
agent.c
agent.h
cache.c IB/core: trivial prink cleanup. 2016-03-03 10:20:25 -05:00
cm_msgs.h
cm.c IB/core: Use hop-limit from IP stack for RoCE 2016-01-19 15:26:56 -05:00
cma_configfs.c IB/cma: allocating too much memory in make_cma_ports() 2016-01-19 15:17:40 -05:00
cma.c Merge branches 'mlx4', 'mlx5' and 'ocrdma' into k.o/for-4.6 2016-03-16 13:38:28 -04:00
core_priv.h IB/cma: Add configfs for rdma_cm 2015-12-23 10:39:52 -05:00
cq.c IB: add a proper completion queue abstraction 2015-12-11 14:10:43 -08:00
device.c IB/core: Add subnet prefix to port info 2016-03-21 16:34:06 -04:00
fmr_pool.c IB/core: trivial prink cleanup. 2016-03-03 10:20:25 -05:00
iwcm.c iwcm: common code for port mapper 2016-03-16 13:47:52 -04:00
iwcm.h
iwpm_msg.c iwpm: crash fix for large connections test 2016-03-16 13:48:32 -04:00
iwpm_util.c iwpm: crash fix for large connections test 2016-03-16 13:48:32 -04:00
iwpm_util.h iwpm: crash fix for large connections test 2016-03-16 13:48:32 -04:00
mad_priv.h IB/mad: use CQ abstraction 2016-01-19 15:25:45 -05:00
mad_rmpp.c
mad_rmpp.h
mad.c IB/mad: use CQ abstraction 2016-01-19 15:25:45 -05:00
Makefile IB/cma: Add configfs for rdma_cm 2015-12-23 10:39:52 -05:00
multicast.c IB/cma: Join and leave multicast groups with IGMP 2015-12-23 10:39:53 -05:00
netlink.c
opa_smi.h
packer.c IB/core: trivial prink cleanup. 2016-03-03 10:20:25 -05:00
roce_gid_mgmt.c IB/core: Move rdma_is_upper_dev_rcu to header file 2015-12-23 10:35:12 -05:00
sa_query.c IB/core: Support accessing SA in virtualized environment 2016-03-21 16:34:06 -04:00
sa.h
smi.c
smi.h
sysfs.c IB/core: Fix reading capability mask of the port info class 2016-02-11 11:05:56 -05:00
ucm.c IB/core: trivial prink cleanup. 2016-03-03 10:20:25 -05:00
ucma.c IB/core: trivial prink cleanup. 2016-03-03 10:20:25 -05:00
ud_header.c IB/core: trivial prink cleanup. 2016-03-03 10:20:25 -05:00
umem_odp.c IB/core: constify mmu_notifier_ops structures 2015-12-24 00:17:33 -05:00
umem_rbtree.c
umem.c
user_mad.c IB/mad: pass ib_mad_send_buf explicitly to the recv_handler 2016-01-19 15:25:36 -05:00
uverbs_cmd.c IB/{core, ulp} Support above 32 possible device capability flags 2016-03-21 16:32:59 -04:00
uverbs_main.c IB/core: trivial prink cleanup. 2016-03-03 10:20:25 -05:00
uverbs_marshall.c IB/core: Add gid_type to gid attribute 2015-12-23 10:35:10 -05:00
uverbs.h IB: remove in-kernel support for memory windows 2015-12-23 14:29:04 -05:00
verbs.c IB/core: Add interfaces to control VF attributes 2016-03-21 17:13:14 -04:00