]> git.baikalelectronics.ru Git - kernel.git/commit
i40e: fix link checking logic
authorMitch Williams <mitch.a.williams@intel.com>
Fri, 17 Oct 2014 03:14:43 +0000 (03:14 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Mon, 3 Nov 2014 09:31:21 +0000 (01:31 -0800)
commit41c27f10705e238b2b230aeac62b468f426d84e8
tree7f7f9ec702406f6a61ade44c5c93cc0096c61324
parent6d3e316cbfe1e0cbb0f4f9afa55fa29fb45ae139
i40e: fix link checking logic

If the interface is closed, but VFs exist, current code will spam all
the VFs with link messages every second. This is because the link event
code was looking at netif_carrier_ok() without checking to see if the
interface was actually open.

Refactor the logic to only check the carrier state if the interface is
actually open. This allows link changes to be reported correctly without
spamming the VFs.

Change-ID: If136e79bb3820d21ea4e39e332e8a9604efc2b2a
Signed-off-by: Mitch Williams <mitch.a.williams@intel.com>
Signed-off-by: Patrick Lu <patrick.lu@intel.com>
Tested-by: Jim Young <jamesx.m.young@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/i40e/i40e_main.c