Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bcbadc04 authored by Mark Einon's avatar Mark Einon Committed by Greg Kroah-Hartman
Browse files

staging: et131x: Don't handle rx/tx packets when changing mtu



There's no need to handle any rx/tx interrupts in the middle of an mtu
change, so don't.

After this change, receive and transmit interrupts are only handled in
one place, which paves the way to using NAPI.

Signed-off-by: default avatarMark Einon <mark.einon@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 36087dc1
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -4447,8 +4447,6 @@ static int et131x_change_mtu(struct net_device *netdev, int new_mtu)
		return -EINVAL;

	et131x_disable_txrx(netdev);
	et131x_handle_send_interrupt(adapter);
	et131x_handle_recv_interrupt(adapter);

	/* Set the new MTU */
	netdev->mtu = new_mtu;