qede: Don't report link change needlessly
authorYuval Mintz <Yuval.Mintz@qlogic.com>
Wed, 24 Feb 2016 14:52:47 +0000 (16:52 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 25 Feb 2016 21:54:44 +0000 (16:54 -0500)
commit8e025ae28ae866c6a01239c4df6cf465a7deb02f
tree049abacf197745cb75b9c1a0f5e3e612359b1c41
parentb1199b100e67f6d296e915b501f3c84d892a99c2
qede: Don't report link change needlessly

There are several corner cases where driver might get a 2nd notification
about the same link change. Don't log any additional changes if the
physical carrier is already reported as it should.

Signed-off-by: Yuval Mintz <Yuval.Mintz@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qlogic/qede/qede_main.c