diff options
author | David S. Miller <davem@davemloft.net> | 2010-01-28 09:12:38 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-01-28 09:12:38 -0500 |
commit | 05ba712d7eb156009753e18e5116cabd869cc6e2 (patch) | |
tree | 1ad850d6889f6b3671a5636653940f20a7d22bdf /drivers/net/e1000e/netdev.c | |
parent | 257ddbdad13cd3c4f7d03b85af632c508aa8abc9 (diff) | |
parent | b473946a0853860e13b51c28add5524741117786 (diff) |
Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6
Diffstat (limited to 'drivers/net/e1000e/netdev.c')
-rw-r--r-- | drivers/net/e1000e/netdev.c | 22 |
1 files changed, 2 insertions, 20 deletions
diff --git a/drivers/net/e1000e/netdev.c b/drivers/net/e1000e/netdev.c index 5d7a760194d4..14a80f8f6118 100644 --- a/drivers/net/e1000e/netdev.c +++ b/drivers/net/e1000e/netdev.c | |||
@@ -2350,18 +2350,6 @@ static void e1000_setup_rctl(struct e1000_adapter *adapter) | |||
2350 | rctl &= ~E1000_RCTL_SZ_4096; | 2350 | rctl &= ~E1000_RCTL_SZ_4096; |
2351 | rctl |= E1000_RCTL_BSEX; | 2351 | rctl |= E1000_RCTL_BSEX; |
2352 | switch (adapter->rx_buffer_len) { | 2352 | switch (adapter->rx_buffer_len) { |
2353 | case 256: | ||
2354 | rctl |= E1000_RCTL_SZ_256; | ||
2355 | rctl &= ~E1000_RCTL_BSEX; | ||
2356 | break; | ||
2357 | case 512: | ||
2358 | rctl |= E1000_RCTL_SZ_512; | ||
2359 | rctl &= ~E1000_RCTL_BSEX; | ||
2360 | break; | ||
2361 | case 1024: | ||
2362 | rctl |= E1000_RCTL_SZ_1024; | ||
2363 | rctl &= ~E1000_RCTL_BSEX; | ||
2364 | break; | ||
2365 | case 2048: | 2353 | case 2048: |
2366 | default: | 2354 | default: |
2367 | rctl |= E1000_RCTL_SZ_2048; | 2355 | rctl |= E1000_RCTL_SZ_2048; |
@@ -3788,7 +3776,7 @@ static int e1000_tso(struct e1000_adapter *adapter, | |||
3788 | 0, IPPROTO_TCP, 0); | 3776 | 0, IPPROTO_TCP, 0); |
3789 | cmd_length = E1000_TXD_CMD_IP; | 3777 | cmd_length = E1000_TXD_CMD_IP; |
3790 | ipcse = skb_transport_offset(skb) - 1; | 3778 | ipcse = skb_transport_offset(skb) - 1; |
3791 | } else if (skb_shinfo(skb)->gso_type == SKB_GSO_TCPV6) { | 3779 | } else if (skb_is_gso_v6(skb)) { |
3792 | ipv6_hdr(skb)->payload_len = 0; | 3780 | ipv6_hdr(skb)->payload_len = 0; |
3793 | tcp_hdr(skb)->check = ~csum_ipv6_magic(&ipv6_hdr(skb)->saddr, | 3781 | tcp_hdr(skb)->check = ~csum_ipv6_magic(&ipv6_hdr(skb)->saddr, |
3794 | &ipv6_hdr(skb)->daddr, | 3782 | &ipv6_hdr(skb)->daddr, |
@@ -4324,13 +4312,7 @@ static int e1000_change_mtu(struct net_device *netdev, int new_mtu) | |||
4324 | * fragmented skbs | 4312 | * fragmented skbs |
4325 | */ | 4313 | */ |
4326 | 4314 | ||
4327 | if (max_frame <= 256) | 4315 | if (max_frame <= 2048) |
4328 | adapter->rx_buffer_len = 256; | ||
4329 | else if (max_frame <= 512) | ||
4330 | adapter->rx_buffer_len = 512; | ||
4331 | else if (max_frame <= 1024) | ||
4332 | adapter->rx_buffer_len = 1024; | ||
4333 | else if (max_frame <= 2048) | ||
4334 | adapter->rx_buffer_len = 2048; | 4316 | adapter->rx_buffer_len = 2048; |
4335 | else | 4317 | else |
4336 | adapter->rx_buffer_len = 4096; | 4318 | adapter->rx_buffer_len = 4096; |