net/ixgbe: fix setting MTU on stopped device
authorJia Yu <jyu@vmware.com>
Fri, 28 Apr 2017 06:11:31 +0000 (23:11 -0700)
committerThomas Monjalon <thomas@monjalon.net>
Fri, 5 May 2017 15:17:09 +0000 (17:17 +0200)
commit22d0e5aed3c22bd8b08d58cfd2ed261d5e45ae9c
treeb59de9cdf384cbb48b43b29fff52a0775b4ebe76
parentb604589d572ee8844afaf196e82d2d563f51f543
net/ixgbe: fix setting MTU on stopped device

There exists case that software sets mtu (i.e jumbo frame) of
ixgbe device when it's stopped. Before the fix, scattered_rx
is cleared during device stop, and setting jumbo frame mtu
after device stop will always fail as scattered_rx is 0.

Signed-off-by: Jia Yu <jyu@vmware.com>
Acked-by: Wenzhuo Lu <wenzhuo.lu@intel.com>
drivers/net/ixgbe/ixgbe_ethdev.c