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)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Fri, 26 Jan 2018 18:25:35 +0000 (10:25 -0800)
commit2bafa8fac19a31ca72ae1a3e48df35f73661dbed
tree08e7c7f10ec967655c16984790a0790de8522c7b
parentfd492228d4031e12bc83e2d3ea8b7e5033b49003
ixgbe: don't set RXDCTL.RLPML for 82599

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>
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c