Added RHEL6.4 support
[compat-rdma/compat.git] / compat / compat-3.5.c
1 /*
2  * Copyright 2012 Mellanox Technologies Ltd.
3  *
4  * This program is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License version 2 as
6  * published by the Free Software Foundation.
7  *
8  * Compatibility file for Linux wireless for kernels 3.4.
9  */
10 #ifndef  CONFIG_COMPAT_RHEL_6_4
11 #include <linux/pkt_sched.h>
12 #define ECN_OR_COST(class)      TC_PRIO_##class
13
14 const __u8 ip_tos2prio[16] = {
15         TC_PRIO_BESTEFFORT,
16         ECN_OR_COST(BESTEFFORT),
17         TC_PRIO_BESTEFFORT,
18         ECN_OR_COST(BESTEFFORT),
19         TC_PRIO_BULK,
20         ECN_OR_COST(BULK),
21         TC_PRIO_BULK,
22         ECN_OR_COST(BULK),
23         TC_PRIO_INTERACTIVE,
24         ECN_OR_COST(INTERACTIVE),
25         TC_PRIO_INTERACTIVE,
26         ECN_OR_COST(INTERACTIVE),
27         TC_PRIO_INTERACTIVE_BULK,
28         ECN_OR_COST(INTERACTIVE_BULK),
29         TC_PRIO_INTERACTIVE_BULK,
30         ECN_OR_COST(INTERACTIVE_BULK)
31 };
32 EXPORT_SYMBOL(ip_tos2prio);
33 #endif  /* CONFIG_COMPAT_RHEL_6_4 */