Skip to contentSkip to conversation

Patch "[PATCH 016/135] e1000e: fix division by zero on jumbo MTUs" has been added to the 4.4-stable tree

PATCH [email protected] 1 participant 1 message Sep 9, 2016

Subsystems (3)
lore
Share & tools
lore

[email protected]

author maintainer Applied
#0 lore raw

This is a note to let you know that I've just added the patch titled

[PATCH 016/135] e1000e: fix division by zero on jumbo MTUs

to the 4.4-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:

     0016-e1000e-fix-division-by-zero-on-jumbo-MTUs.patch

and it can be found in the queue-4.4 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.

Quoted 1 line

From 6f962b9a4211413d3159bb652edba114e5b8758b Mon Sep 17 00:00:00 2001

From: Dmitry Fleytman <[email protected]>
Date: Tue, 13 Oct 2015 12:48:18 +0300
Subject: [PATCH 016/135] e1000e: fix division by zero on jumbo MTUs

[ Upstream commit b77ac46bbae862dcb3f51296825c940404c69b0f ]

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.

---
 drivers/net/ethernet/intel/e1000e/netdev.c |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
drivers/net/ethernet/intel/e1000e/netdev.c +4 -2
@@ -1959,8 +1959,10 @@ static irqreturn_t e1000_intr_msix_rx(in
 	 * previous interrupt.
 	 */
 	if (rx_ring->set_itr) {
-		writel(1000000000 / (rx_ring->itr_val * 256),
-		       rx_ring->itr_register);
+		u32 itr = rx_ring->itr_val ?
+			  1000000000 / (rx_ring->itr_val * 256) : 0;
+
+		writel(itr, rx_ring->itr_register);
 		rx_ring->set_itr = 0;
 	}
 

Patches currently in stable-queue which might be from [email protected] are

queue-4.4/0016-e1000e-fix-division-by-zero-on-jumbo-MTUs.patch