linux/drivers/net/ethernet/broadcom/bnxt
Michael Chan a588e4580a bnxt_en: Add interface to support RDMA driver.
Since the network driver and RDMA driver operate on the same PCI function,
we need to create an interface to allow the RDMA driver to share resources
with the network driver.

1. Create a new bnxt_en_dev struct which will be returned by
bnxt_ulp_probe() upon success.  After that, all calls from the RDMA driver
to bnxt_en will pass a pointer to this struct.

2. This struct contains additional function pointers to register, request
msix, send fw messages, register for async events.

3. If the RDMA driver wants to enable RDMA on the function, it needs to
call the function pointer bnxt_register_device().  A ulp_ops structure
is passed for RCU protected upcalls from bnxt_en to the RDMA driver.

4. The RDMA driver can call firmware APIs using the bnxt_send_fw_msg()
function pointer.

5. 1 stats context is reserved when the RDMA driver registers.  MSIX
and completion rings are reserved when the RDMA driver calls
bnxt_request_msix() function pointer.

6. When the RDMA driver calls bnxt_unregister_device(), all RDMA resources
will be cleaned up.

v2: Fixed 2 uninitialized variable warnings.

Signed-off-by: Somnath Kotur <somnath.kotur@broadcom.com>
Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2016-12-07 10:59:26 -05:00
..
bnxt_dcb.c bnxt_en: Add PFC statistics. 2016-12-05 13:21:40 -05:00
bnxt_dcb.h bnxt_en: Implement DCBNL to support host-based DCBX. 2016-12-05 13:21:40 -05:00
bnxt_ethtool.c bnxt_en: Add PFC statistics. 2016-12-05 13:21:40 -05:00
bnxt_ethtool.h bnxt_en: Add EEE setup code. 2016-04-05 16:20:46 -04:00
bnxt_fw_hdr.h bnxt_en: Added support for Secure Firmware Update 2016-09-19 21:32:24 -04:00
bnxt_hsi.h bnxt_en: Update firmware header file to latest 1.6.0. 2016-12-05 13:21:40 -05:00
bnxt_nvm_defs.h bnxt_en: Add support for updating flash more securely 2016-07-02 14:52:35 -04:00
bnxt_sriov.c bnxt_en: Improve completion ring allocation for VFs. 2016-12-07 10:59:26 -05:00
bnxt_sriov.h net: Update API for VF vlan protocol 802.1ad support 2016-09-24 08:01:26 -04:00
bnxt_ulp.c bnxt_en: Add interface to support RDMA driver. 2016-12-07 10:59:26 -05:00
bnxt_ulp.h bnxt_en: Add interface to support RDMA driver. 2016-12-07 10:59:26 -05:00
bnxt.c bnxt_en: Add interface to support RDMA driver. 2016-12-07 10:59:26 -05:00
bnxt.h bnxt_en: Add interface to support RDMA driver. 2016-12-07 10:59:26 -05:00
Makefile bnxt_en: Add interface to support RDMA driver. 2016-12-07 10:59:26 -05:00