fcoe: fix reset of fip selection time.
authorUsha Ketineni <usha.k.ketineni@intel.com>
Mon, 29 Feb 2016 11:36:52 +0000 (03:36 -0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 1 Mar 2016 02:02:20 +0000 (21:02 -0500)
commiteac00c8aa8a5e1dacaaa8ecc1d604a735851287d
treeac848a600e08f207fec755785ee92088a76332bc
parent268d11e9eff2c84b82ab7d01dd3c71461c7313b3
fcoe: fix reset of fip selection time.

Do not reset fip selection time for every advertisement
in fcoe_ctlr_recv_adv() but set it only once for the first
validated FCF. Otherwise FCF selection won't happen when the
advertisements consistently arrive with sub FCOE_CTLR_START_DELAY
periodicity.

Tested-by: Narendra K <narendra_k@dell.com>
Acked-by: Neil Horman <nhorman@tuxdriver.com>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Acked-by: Vasu Dev <vasu.dev@intel.com>
Signed-off-by: Usha Ketineni <usha.k.ketineni@intel.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/fcoe/fcoe_ctlr.c