~ubuntu-branches/ubuntu/precise/linux-ti-omap4/precise

« back to all changes in this revision

Viewing changes to include/net/inet_ecn.h

  • Committer: Bazaar Package Importer
  • Author(s): Paolo Pisati
  • Date: 2011-06-29 15:23:51 UTC
  • mfrom: (26.1.1 natty-proposed)
  • Revision ID: james.westby@ubuntu.com-20110629152351-xs96tm303d95rpbk
Tags: 3.0.0-1200.2
* Rebased against 3.0.0-6.7
* BSP from TI based on 3.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
38
38
        return outer;
39
39
}
40
40
 
41
 
#define INET_ECN_xmit(sk) do { inet_sk(sk)->tos |= INET_ECN_ECT_0; } while (0)
42
 
#define INET_ECN_dontxmit(sk) \
43
 
        do { inet_sk(sk)->tos &= ~INET_ECN_MASK; } while (0)
 
41
static inline void INET_ECN_xmit(struct sock *sk)
 
42
{
 
43
        inet_sk(sk)->tos |= INET_ECN_ECT_0;
 
44
        if (inet6_sk(sk) != NULL)
 
45
                inet6_sk(sk)->tclass |= INET_ECN_ECT_0;
 
46
}
 
47
 
 
48
static inline void INET_ECN_dontxmit(struct sock *sk)
 
49
{
 
50
        inet_sk(sk)->tos &= ~INET_ECN_MASK;
 
51
        if (inet6_sk(sk) != NULL)
 
52
                inet6_sk(sk)->tclass &= ~INET_ECN_MASK;
 
53
}
44
54
 
45
55
#define IP6_ECN_flow_init(label) do {           \
46
56
      (label) &= ~htonl(INET_ECN_MASK << 20);   \