]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1772ffc4060af5fd741152f770c5c0dcfbba8f53
treeed8508e766ecae30c81fed64ff77068f694987f9
parentcd28afca7dddd57996f5b7db4b7616d9dc50c120
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