diff options
author | Vijay Subramanian <subramanian.vijay@gmail.com> | 2011-12-20 08:23:24 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-12-21 01:03:23 -0500 |
commit | ab56222a32b9dbaae19c1d37f07b0ac4fc3c27ec (patch) | |
tree | ce5eff7879a1d80c419835171de13e52c24afdfb /include/net/tcp.h | |
parent | 08f4fc9da9a04d59f5c937e06e375158abb68206 (diff) |
tcp: Replace constants with #define macros
to record the state of SACK/FACK and DSACK for better readability and maintenance.
Signed-off-by: Vijay Subramanian <subramanian.vijay@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/tcp.h')
-rw-r--r-- | include/net/tcp.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/net/tcp.h b/include/net/tcp.h index a4f52e154843..0118ea999f67 100644 --- a/include/net/tcp.h +++ b/include/net/tcp.h | |||
@@ -773,12 +773,12 @@ static inline int tcp_is_reno(const struct tcp_sock *tp) | |||
773 | 773 | ||
774 | static inline int tcp_is_fack(const struct tcp_sock *tp) | 774 | static inline int tcp_is_fack(const struct tcp_sock *tp) |
775 | { | 775 | { |
776 | return tp->rx_opt.sack_ok & 2; | 776 | return tp->rx_opt.sack_ok & TCP_FACK_ENABLED; |
777 | } | 777 | } |
778 | 778 | ||
779 | static inline void tcp_enable_fack(struct tcp_sock *tp) | 779 | static inline void tcp_enable_fack(struct tcp_sock *tp) |
780 | { | 780 | { |
781 | tp->rx_opt.sack_ok |= 2; | 781 | tp->rx_opt.sack_ok |= TCP_FACK_ENABLED; |
782 | } | 782 | } |
783 | 783 | ||
784 | static inline unsigned int tcp_left_out(const struct tcp_sock *tp) | 784 | static inline unsigned int tcp_left_out(const struct tcp_sock *tp) |