]> git.baikalelectronics.ru Git - kernel.git/commit
tg3: Preserve PCIe MPS setting for new devs
authorMatt Carlson <mcarlson@broadcom.com>
Tue, 25 Aug 2009 10:08:16 +0000 (10:08 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 26 Aug 2009 22:47:53 +0000 (15:47 -0700)
commit0536a48e432f85a2fd476c277635f7cf98f364c5
treecc592fc98d946756caa30dd6dccde7374d3af2e4
parentc3582dcfb025faa5b5c258afddc25504fda23ad4
tg3: Preserve PCIe MPS setting for new devs

Most older tg3 devices only supported a PCIe maximum payload size of
128 bytes.  More recent devices bump this limit up to 256 bytes
though.  This patch modifies the code so that the MPS limit is only
enforced on those devices that only allow the 128 byte setting.

Signed-off-by: Matt Carlson <mcarlson@broadcom.com>
Reviewed-by: Michael Chan <mchan@broadcom.com>
Reviewed-by: Benjamin Li <benli@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/tg3.c