diff options
author | Matt Carlson <mcarlson@broadcom.com> | 2010-04-12 02:58:29 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-04-13 05:25:46 -0400 |
commit | 04380d401ebd02ec68bb0fc170f21a93690ebc80 (patch) | |
tree | 0cbf1e3c0fc2c0c0c84878df73266d983cbb8114 /drivers/net/tg3.c | |
parent | 9dc7a1134919bda8951bf5909fb79c14defb8317 (diff) |
tg3: Unify max pkt size preprocessor constants
The maximum packet size that gets programmed into the standard producer
ring control block is directly related to the packet size used to
allocate packet buffers. This patch removes the redundant preprocessor
constant.
Signed-off-by: Matt Carlson <mcarlson@broadcom.com>
Reviewed-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/tg3.c')
-rw-r--r-- | drivers/net/tg3.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/tg3.c b/drivers/net/tg3.c index 3263f50bc52e..a331ec51ebc2 100644 --- a/drivers/net/tg3.c +++ b/drivers/net/tg3.c | |||
@@ -7905,9 +7905,9 @@ static int tg3_reset_hw(struct tg3 *tp, int reset_phy) | |||
7905 | if (GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5717 || | 7905 | if (GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5717 || |
7906 | GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_57765) | 7906 | GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_57765) |
7907 | val = (RX_STD_MAX_SIZE_5705 << BDINFO_FLAGS_MAXLEN_SHIFT) | | 7907 | val = (RX_STD_MAX_SIZE_5705 << BDINFO_FLAGS_MAXLEN_SHIFT) | |
7908 | (RX_STD_MAX_SIZE << 2); | 7908 | (TG3_RX_STD_DMA_SZ << 2); |
7909 | else | 7909 | else |
7910 | val = RX_STD_MAX_SIZE << BDINFO_FLAGS_MAXLEN_SHIFT; | 7910 | val = TG3_RX_STD_DMA_SZ << BDINFO_FLAGS_MAXLEN_SHIFT; |
7911 | } else | 7911 | } else |
7912 | val = RX_STD_MAX_SIZE_5705 << BDINFO_FLAGS_MAXLEN_SHIFT; | 7912 | val = RX_STD_MAX_SIZE_5705 << BDINFO_FLAGS_MAXLEN_SHIFT; |
7913 | 7913 | ||