mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
libcxgb: add library module for Chelsio drivers
Add common library module(libcxgb.ko) for Chelsio drivers to remove duplicate code. Code for iSCSI DDP Page Pod Manager is moved from cxgb4.ko to libcxgb.ko. Earlier only cxgbit.ko was using this code, now cxgb3i and cxgb4i will also use common Page Pod manager code. In future this module will have common connection management and hardware specific code that can be shared by multiple Chelsio drivers. Signed-off-by: Varun Prakash <[email protected]> Reviewed-by: Steve Wise <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
9e0b27fe5a
commit
b8b9d81b36
9 changed files with 81 additions and 26 deletions
|
|
@ -1,7 +1,7 @@
|
|||
config ISCSI_TARGET_CXGB4
|
||||
tristate "Chelsio iSCSI target offload driver"
|
||||
depends on ISCSI_TARGET && CHELSIO_T4 && INET
|
||||
select CHELSIO_T4_UWIRE
|
||||
select CHELSIO_LIB
|
||||
---help---
|
||||
To compile this driver as module, choose M here: the module
|
||||
will be called cxgbit.
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
ccflags-y := -Idrivers/net/ethernet/chelsio/cxgb4
|
||||
ccflags-y += -Idrivers/net/ethernet/chelsio/libcxgb
|
||||
ccflags-y += -Idrivers/target/iscsi
|
||||
|
||||
obj-$(CONFIG_ISCSI_TARGET_CXGB4) += cxgbit.o
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@
|
|||
#include "cxgb4.h"
|
||||
#include "cxgb4_uld.h"
|
||||
#include "l2t.h"
|
||||
#include "cxgb4_ppm.h"
|
||||
#include "libcxgb_ppm.h"
|
||||
#include "cxgbit_lro.h"
|
||||
|
||||
extern struct mutex cdev_list_lock;
|
||||
|
|
|
|||
Loading…
Reference in a new issue