be2net: Add functionality to support RoCE driver
authorParav Pandit <parav.pandit@emulex.com>
Mon, 26 Mar 2012 14:27:13 +0000 (14:27 +0000)
committerRoland Dreier <roland@purestorage.com>
Tue, 8 May 2012 18:17:47 +0000 (11:17 -0700)
commit045508a8a36f9a82b63d1f6362bd323085638588
tree3673bf4fb8bb060beb67b05a3fec9941364d20e4
parent6a4ab669ad0b0eadb042383ef7677a84a68a0e0e
be2net: Add functionality to support RoCE driver

- Increase MSI-X vectors by 5 for RoCE traffic.
- Add macro to check roce support on a device.
- Add device-specific doorbell and MSI-X vector fields shared with NIC
  functionality.
- Provide RoCE driver registration and deregistration functions.
- Add support functions which will be invoked on adapter add/remove
  and port up/down events.
- Traverse through the list of adapters to invoke callback functions.

Signed-off-by: Parav Pandit <parav.pandit@emulex.com>
Acked-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Roland Dreier <roland@purestorage.com>
drivers/net/ethernet/emulex/benet/Makefile
drivers/net/ethernet/emulex/benet/be.h
drivers/net/ethernet/emulex/benet/be_cmds.h
drivers/net/ethernet/emulex/benet/be_hw.h
drivers/net/ethernet/emulex/benet/be_main.c
drivers/net/ethernet/emulex/benet/be_roce.c [new file with mode: 0644]
drivers/net/ethernet/emulex/benet/be_roce.h [new file with mode: 0644]