diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2012-05-12 12:05:21 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2012-05-12 12:05:21 +0000 |
commit | 88cd79159b0e3101a5b13d7a7936d4edaeda8599 (patch) | |
tree | 2fdd43c02c7f7a989848ca39ca79f1061ed9a588 /target/linux/generic/patches-2.6.38/110_fix_ecn_marking_ipv6.patch | |
parent | 3d65e0831f50b6daf7c697cfce5abcc0a95b9e4b (diff) | |
download | master-187ad058-88cd79159b0e3101a5b13d7a7936d4edaeda8599.tar.gz master-187ad058-88cd79159b0e3101a5b13d7a7936d4edaeda8599.tar.bz2 master-187ad058-88cd79159b0e3101a5b13d7a7936d4edaeda8599.zip |
linux/2.6.38: R.I.P.
It is used only by the broken coldfire target.
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31688 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/generic/patches-2.6.38/110_fix_ecn_marking_ipv6.patch')
-rw-r--r-- | target/linux/generic/patches-2.6.38/110_fix_ecn_marking_ipv6.patch | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/target/linux/generic/patches-2.6.38/110_fix_ecn_marking_ipv6.patch b/target/linux/generic/patches-2.6.38/110_fix_ecn_marking_ipv6.patch deleted file mode 100644 index a981884b1b..0000000000 --- a/target/linux/generic/patches-2.6.38/110_fix_ecn_marking_ipv6.patch +++ /dev/null @@ -1,25 +0,0 @@ ---- a/include/net/inet_ecn.h -+++ b/include/net/inet_ecn.h -@@ -38,9 +38,19 @@ static inline __u8 INET_ECN_encapsulate( - return outer; - } - --#define INET_ECN_xmit(sk) do { inet_sk(sk)->tos |= INET_ECN_ECT_0; } while (0) --#define INET_ECN_dontxmit(sk) \ -- do { inet_sk(sk)->tos &= ~INET_ECN_MASK; } while (0) -+static inline void INET_ECN_xmit(struct sock *sk) -+{ -+ inet_sk(sk)->tos |= INET_ECN_ECT_0; -+ if (inet6_sk(sk) != NULL) -+ inet6_sk(sk)->tclass |= INET_ECN_ECT_0; -+} -+ -+static inline void INET_ECN_dontxmit(struct sock *sk) -+{ -+ inet_sk(sk)->tos &= ~INET_ECN_MASK; -+ if (inet6_sk(sk) != NULL) -+ inet6_sk(sk)->tclass &= ~INET_ECN_MASK; -+} - - #define IP6_ECN_flow_init(label) do { \ - (label) &= ~htonl(INET_ECN_MASK << 20); \ |