On Mon, Feb 29, 2016 at 03:36:52AM -0800, Usha Ketineni wrote:
> 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 <narendr...@dell.com>
> Acked-by: Neil Horman <nhor...@tuxdriver.com>
> Reviewed-by: Johannes Thumshirn <jthumsh...@suse.de>
> Acked-by: Vasu Dev <vasu....@intel.com>
> Signed-off-by: Usha Ketineni <usha.k.ketin...@intel.com>
> ---
>  drivers/scsi/fcoe/fcoe_ctlr.c |    3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/drivers/scsi/fcoe/fcoe_ctlr.c b/drivers/scsi/fcoe/fcoe_ctlr.c
> index d68d572..0c85ef6 100644
> --- a/drivers/scsi/fcoe/fcoe_ctlr.c
> +++ b/drivers/scsi/fcoe/fcoe_ctlr.c
> @@ -1079,7 +1079,8 @@ static void fcoe_ctlr_recv_adv(struct fcoe_ctlr *fip, 
> struct sk_buff *skb)
>        * If this is the first validated FCF, note the time and
>        * set a timer to trigger selection.
>        */
> -     if (mtu_valid && !fip->sel_fcf && fcoe_ctlr_fcf_usable(fcf)) {
> +     if (mtu_valid && !fip->sel_fcf && !fip->sel_time &&
> +         fcoe_ctlr_fcf_usable(fcf)) {
>               fip->sel_time = jiffies +
>                       msecs_to_jiffies(FCOE_CTLR_START_DELAY);
>               if (!timer_pending(&fip->timer) ||
> 
> _______________________________________________
> fcoe-devel mailing list
> fcoe-de...@open-fcoe.org
> http://lists.open-fcoe.org/mailman/listinfo/fcoe-devel
> 
Acked-by: Neil Horman <nhor...@tuxdriver.com>

--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to