]> git.baikalelectronics.ru Git - kernel.git/commit
[SCSI] libfcoe: Move common code from fcoe to libfcoe module
authorBhanu Prakash Gollapudi <bprakash@broadcom.com>
Sat, 29 Jan 2011 00:05:37 +0000 (16:05 -0800)
committerJames Bottomley <James.Bottomley@suse.de>
Sat, 12 Feb 2011 17:18:18 +0000 (11:18 -0600)
commitfef9b241903d70e31bbbcfd78403a22191e0c62f
tree64020cecc7ef1bb2923109ed5afea58f59d9bcbe
parent9737e1ab88e667da0a2ff694935fead63fc5acc5
[SCSI] libfcoe: Move common code from fcoe to libfcoe module

To facilitate LLDDs to reuse the code, skb queue related functions are moved to
libfcoe, so that both fcoe and bnx2fc drivers can use them. The common structures
fcoe_port, fcoe_percpu_s are moved to libfcoe. fcoe_port will now have an
opaque pointer that points to corresponding driver's interface structure.
Also, fcoe_start_io and fcoe_fc_crc are moved to libfcoe.

As part of this change, fixed fcoe_start_io to return ENOMEM if
skb_clone fails.

Signed-off-by: Bhanu Prakash Gollapudi <bprakash@broadcom.com>
Signed-off-by: Robert Love <robert.w.love@intel.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
drivers/scsi/fcoe/fcoe.c
drivers/scsi/fcoe/fcoe.h
drivers/scsi/fcoe/fcoe_transport.c
include/scsi/libfcoe.h