]> git.baikalelectronics.ru Git - kernel.git/commit
[SCSI] fcoe: drop FCoE LOGO in FIP mode
authorVasu Dev <vasu.dev@linux.intel.com>
Sat, 29 Jan 2011 00:03:52 +0000 (16:03 -0800)
committerJames Bottomley <James.Bottomley@suse.de>
Sat, 12 Feb 2011 17:00:04 +0000 (11:00 -0600)
commitfe67d98f393eb64b8fe624f1c2d22c84b39646bc
tree253e53bbf292d3a33f3bcf6fdad82ef4fea5f052
parente4a7cc87487eae7ce5747568fd151364eb8c22b4
[SCSI] fcoe: drop FCoE LOGO in FIP mode

Allowing FCoE LOGO followed by CVL in this case prevents
FIP login back to the FCF and then keeps lport offline,
only FIP LOGO and CLV needs to be processed while in
FIP mode, therefore this patch drops FCoE LOGO in FIP mode.

Added fcoe_filter_frames() to filter out above mentioned LOGO
in fcoe rx path along with other existing filtering in code
for bad CRC frames. Adding separate fcoe_filter_frames function
helped with better code indentations and if needed then same
will allow adding more filters at one place in future.

This LOGO drop is added after FCP frames passed up to avoid
any additional checks on fast path for this.

Signed-off-by: Vasu Dev <vasu.dev@intel.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