e1000e: fix division by zero on jumbo MTUs
authorDmitry Fleytman <dmitry@daynix.com>
Tue, 13 Oct 2015 09:48:18 +0000 (12:48 +0300)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Sun, 13 Dec 2015 07:14:21 +0000 (23:14 -0800)
commitb77ac46bbae862dcb3f51296825c940404c69b0f
treea1813636414eb0ae33531db9fe4d627622619727
parent13a87c124ec8a717b557cd8bc08693af021c8812
e1000e: fix division by zero on jumbo MTUs

This patch fixes possible division by zero in receive
interrupt handler when working without adaptive interrupt
moderation.

The adaptive interrupt moderation mechanism is typically
disabled on jumbo MTUs.

Signed-off-by: Dmitry Fleytman <dmitry@daynix.com>
Signed-off-by: Leonid Bloch <leonid@daynix.com>
Tested-by: Aaron Brown <aaron.f.brown@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/e1000e/netdev.c