ixgbe: don't set RXDCTL.RLPML for 82599
authorEmil Tantilov <emil.s.tantilov@intel.com>
Fri, 12 Jan 2018 22:02:56 +0000 (14:02 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 26 Apr 2018 09:02:12 +0000 (11:02 +0200)
commit7addb3e4ad3db6a95a953c59884921b5883dcdec
tree073d385d1bdf70bd9e6d47a35af00001f8a85087
parent27eb641f236843b34819ed05d6288dd54053827b
ixgbe: don't set RXDCTL.RLPML for 82599

[ Upstream commit 2bafa8fac19a31ca72ae1a3e48df35f73661dbed ]

commit 2de6aa3a666e ("ixgbe: Add support for padding packet")

Uses RXDCTL.RLPML to limit the maximum frame size on Rx when using
build_skb. Unfortunately that register does not work on 82599.

Added an explicit check to avoid setting this register on 82599 MAC.

Extended the comment related to the setting of RXDCTL.RLPML to better
explain its purpose.

Signed-off-by: Emil Tantilov <emil.s.tantilov@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c