diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2009-04-03 00:05:30 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-04-03 00:05:30 -0400 |
commit | ef8a97bbc92ec07e3a07a81cc011dc549f8c7a23 (patch) | |
tree | 82a95f16d9236bc35a4cfd42ba8cab61981efda8 /include | |
parent | 4f032ac4122a77dbabf7a24b2739b2790448180f (diff) | |
parent | 6c8ad3b07f7d9efdc41396db6da0aed906922701 (diff) |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6
* git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6: (54 commits)
glge: remove unused #include <version.h>
dnet: remove unused #include <version.h>
tcp: miscounts due to tcp_fragment pcount reset
tcp: add helper for counter tweaking due mid-wq change
hso: fix for the 'invalid frame length' messages
hso: fix for crash when unplugging the device
fsl_pq_mdio: Fix compile failure
fsl_pq_mdio: Revive UCC MDIO support
ucc_geth: Pass proper device to DMA routines, otherwise oops happens
i.MX31: Fixing cs89x0 network building to i.MX31ADS
tc35815: Fix build error if NAPI enabled
hso: add Vendor/Product ID's for new devices
ucc_geth: Remove unused header
gianfar: Remove unused header
kaweth: Fix locking to be SMP-safe
net: allow multiple dev per napi with GRO
r8169: reset IntrStatus after chip reset
ixgbe: Fix potential memory leak/driver panic issue while setting up Tx & Rx ring parameters
ixgbe: fix ethtool -A|a behavior
ixgbe: Patch to fix driver panic while freeing up tx & rx resources
...
Diffstat (limited to 'include')
-rw-r--r-- | include/net/tcp.h | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/include/net/tcp.h b/include/net/tcp.h index e54c76d75495..1b94b9bfe2dc 100644 --- a/include/net/tcp.h +++ b/include/net/tcp.h | |||
@@ -616,21 +616,6 @@ static inline int tcp_skb_mss(const struct sk_buff *skb) | |||
616 | return skb_shinfo(skb)->gso_size; | 616 | return skb_shinfo(skb)->gso_size; |
617 | } | 617 | } |
618 | 618 | ||
619 | static inline void tcp_dec_pcount_approx_int(__u32 *count, const int decr) | ||
620 | { | ||
621 | if (*count) { | ||
622 | *count -= decr; | ||
623 | if ((int)*count < 0) | ||
624 | *count = 0; | ||
625 | } | ||
626 | } | ||
627 | |||
628 | static inline void tcp_dec_pcount_approx(__u32 *count, | ||
629 | const struct sk_buff *skb) | ||
630 | { | ||
631 | tcp_dec_pcount_approx_int(count, tcp_skb_pcount(skb)); | ||
632 | } | ||
633 | |||
634 | /* Events passed to congestion control interface */ | 619 | /* Events passed to congestion control interface */ |
635 | enum tcp_ca_event { | 620 | enum tcp_ca_event { |
636 | CA_EVENT_TX_START, /* first transmit when no packets in flight */ | 621 | CA_EVENT_TX_START, /* first transmit when no packets in flight */ |