]> git.baikalelectronics.ru Git - kernel.git/commit
[SCSI] fcoe: adds src and dest mac address checking for fcoe frames
authorVasu Dev <vasu.dev@intel.com>
Tue, 20 Jul 2010 22:19:32 +0000 (15:19 -0700)
committerJames Bottomley <James.Bottomley@suse.de>
Wed, 28 Jul 2010 14:05:47 +0000 (09:05 -0500)
commit97de4da57af58c45bc23c84966ff417813302f9e
treef4b139d0e9288d65a33a43b54e74ef2a6e959d82
parent773c68df28fd16f4965648455ea924612287150d
[SCSI] fcoe: adds src and dest mac address checking for fcoe frames

This is  per FC-BB-5 Annex-D recommendation and per that
if address checking fails then drop the frame.

FIP code paths are already doing this so only needed for fcoe
frames.

The src address checking is limited to only fip mode since
this might break non-fip mode used in p2p due to used OUI
based addressing in some p2p code paths, going forward FIP
will be the only mode, therefore limited this to only FIP
mode so that it won't break non-fip p2p mode for now.

-v2
Removes FCOE packet type checking since fcoe_rcv is
registered to receive only FCoE type packets from netdev
and it is already checked by netdev.

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
include/scsi/libfcoe.h