igb: Enable reading of wake up packet
authorKim Tatt Chuah <kim.tatt.chuah@intel.com>
Mon, 27 Mar 2017 00:44:35 +0000 (08:44 +0800)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Thu, 20 Apr 2017 23:32:45 +0000 (16:32 -0700)
commitb90fa8763560aab7c75697fb324ffc73fb813ecc
treeed8508e766ecae30c81fed64ff77068f694987f9
parent4827cc37796a02ece7097e01dad8e08f537ac815
igb: Enable reading of wake up packet

Currently, in igb_resume(), igb driver ignores the Wake Up Status (WUS)
and Wake Up Packet Memory (WUPM) registers. This patch enables the igb
driver to read the WUPM if the controller was woken by a wake up packet
that is not more than 128 bytes long (maximum WUPM size), then pass it
up the kernel network stack.

Signed-off-by: Kim Tatt Chuah <kim.tatt.chuah@intel.com>
Tested-by: Aaron Brown <aaron.f.brown@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/igb/e1000_defines.h
drivers/net/ethernet/intel/igb/igb_main.c