ixgbe: Fix SR-IOV MTU warning
authorAlexander Duyck <alexander.h.duyck@intel.com>
Wed, 9 Jan 2013 08:50:42 +0000 (08:50 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Tue, 5 Feb 2013 09:44:27 +0000 (01:44 -0800)
commitc560451c2009b94820460e06d3f7c258f7234948
tree5616c80808bce09a820f75ee2c5971b49ef47197
parent7e63bf490151f7e457002fc046601bb6bb541fa3
ixgbe: Fix SR-IOV MTU warning

This change corrects the fact that we were using 1522 to test for the
max frame size in ixgbe_change_mtu and 1518 in ixgbe_set_vf_lpe.  The
difference was the addition of VLAN_HLEN which we only need to add in the case
of computing a buffer size, but not a filter size.

Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com>
Tested-by: Sibai Li <Sibai.li@intel.com>
Tested-by: Stephen Ko <stephen.s.ko@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ixgbe/ixgbe.h
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c