igb: Add message when malformed packets detected by hw
authorCarolyn Wyborny <carolyn.wyborny@intel.com>
Wed, 9 Jul 2014 04:55:45 +0000 (04:55 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Thu, 24 Jul 2014 10:00:37 +0000 (03:00 -0700)
commit1516f0a6492a3d1bd9fbebeac331950986ec9a9b
tree358c2635502a5721cd44bb7e8c6a7df9c0b0475b
parentcaafb95d6952c4c977c1b9ddf32bb56bfcda8059
igb: Add message when malformed packets detected by hw

This patch adds a check and prints the error cause register value when
the hardware detects a malformed packet.  This is a very unlikely
scenario but has been seen occasionally, so printing the message to
assist the user.

Signed-off-by: Carolyn Wyborny <carolyn.wyborny@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/igb/e1000_regs.h
drivers/net/ethernet/intel/igb/igb_main.c