WSL2-Linux-Kernel/drivers/infiniband/hw/mthca
Matan Barak dd5f03beb4 IB/core: Ethernet L2 attributes in verbs/cm structures
This patch add the support for Ethernet L2 attributes in the
verbs/cm/cma structures.

When dealing with L2 Ethernet, we should use smac, dmac, vlan ID and priority
in a similar manner that the IB L2 (and the L4 PKEY) attributes are used.

Thus, those attributes were added to the following structures:

* ib_ah_attr - added dmac
* ib_qp_attr - added smac and vlan_id, (sl remains vlan priority)
* ib_wc - added smac, vlan_id
* ib_sa_path_rec - added smac, dmac, vlan_id
* cm_av - added smac and vlan_id

For the path record structure, extra care was taken to avoid the new
fields when packing it into wire format, so we don't break the IB CM
and SA wire protocol.

On the active side, the CM fills. its internal structures from the
path provided by the ULP.  We add there taking the ETH L2 attributes
and placing them into the CM Address Handle (struct cm_av).

On the passive side, the CM fills its internal structures from the WC
associated with the REQ message.  We add there taking the ETH L2
attributes from the WC.

When the HW driver provides the required ETH L2 attributes in the WC,
they set the IB_WC_WITH_SMAC and IB_WC_WITH_VLAN flags. The IB core
code checks for the presence of these flags, and in their absence does
address resolution from the ib_init_ah_from_wc() helper function.

ib_modify_qp_is_ok is also updated to consider the link layer. Some
parameters are mandatory for Ethernet link layer, while they are
irrelevant for IB.  Vendor drivers are modified to support the new
function signature.

Signed-off-by: Matan Barak <matanb@mellanox.com>
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
2014-01-14 14:20:54 -08:00
..
Kconfig kconfig: rename CONFIG_EMBEDDED to CONFIG_EXPERT 2011-01-20 17:02:05 -08:00
Makefile IB/mthca: Always build debugging code unless CONFIG_EMBEDDED=y 2006-04-02 14:39:20 -07:00
mthca_allocator.c IB/mthca: Use the dma state API instead of pci equivalents 2010-04-21 15:25:34 -07:00
mthca_av.c RDMA: Remove subversion $Id tags 2008-07-14 23:48:44 -07:00
mthca_catas.c infiniband: Fix up module files that need to include module.h 2011-10-31 19:31:35 -04:00
mthca_cmd.c infiniband: Fix up module files that need to include module.h 2011-10-31 19:31:35 -04:00
mthca_cmd.h IB/mthca: Stop returning separate error and status from FW commands 2011-07-15 13:33:20 -07:00
mthca_config_reg.h IB/mthca: Remove unnecessary include of <asm/page.h> 2009-09-05 20:36:13 -07:00
mthca_cq.c IB: Change CQE "csum_ok" field to a bit flag 2012-03-08 12:34:27 -08:00
mthca_dev.h IB/mthca: Don't allow userspace open while recovering from catastrophic error 2009-09-05 20:36:16 -07:00
mthca_doorbell.h RDMA: Remove subversion $Id tags 2008-07-14 23:48:44 -07:00
mthca_eq.c IB: Remove unnecessary semicolons 2013-10-14 10:10:00 -07:00
mthca_mad.c IB/mthca: Stop returning separate error and status from FW commands 2011-07-15 13:33:20 -07:00
mthca_main.c Drivers: infinband: remove __dev* attributes. 2013-01-03 15:57:15 -08:00
mthca_mcg.c IB/mthca: Stop returning separate error and status from FW commands 2011-07-15 13:33:20 -07:00
mthca_memfree.c IB/mthca: Stop returning separate error and status from FW commands 2011-07-15 13:33:20 -07:00
mthca_memfree.h RDMA: Remove subversion $Id tags 2008-07-14 23:48:44 -07:00
mthca_mr.c IB/mthca: Fix buddy->num_free allocation size 2011-11-03 17:48:25 -07:00
mthca_pd.c RDMA: Remove subversion $Id tags 2008-07-14 23:48:44 -07:00
mthca_profile.c IB/mthca: Add module parameter for number of MTTs per segment 2009-05-27 14:36:16 -07:00
mthca_profile.h RDMA: Remove subversion $Id tags 2008-07-14 23:48:44 -07:00
mthca_provider.c Merge branch 'modsplit-Oct31_2011' of git://git.kernel.org/pub/scm/linux/kernel/git/paulg/linux 2011-11-06 19:44:47 -08:00
mthca_provider.h IB/mthca: Use the dma state API instead of pci equivalents 2010-04-21 15:25:34 -07:00
mthca_qp.c IB/core: Ethernet L2 attributes in verbs/cm structures 2014-01-14 14:20:54 -08:00
mthca_reset.c IB/mthca: Use PCI Express Capability accessors 2012-08-23 10:11:15 -06:00
mthca_srq.c IB/mthca: Stop returning separate error and status from FW commands 2011-07-15 13:33:20 -07:00
mthca_uar.c RDMA: Remove subversion $Id tags 2008-07-14 23:48:44 -07:00
mthca_user.h RDMA: Remove subversion $Id tags 2008-07-14 23:48:44 -07:00
mthca_wqe.h RDMA: Remove subversion $Id tags 2008-07-14 23:48:44 -07:00