diff options
| author | Nicolas Dichtel <nicolas.dichtel@6wind.com> | 2016-04-26 04:06:18 -0400 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2016-04-26 12:00:49 -0400 |
| commit | 9854518ea04db33738602d45ebc96a200e6f5198 (patch) | |
| tree | 96d3d6f4024f7a79010bea763f5922315d7bd63f /include | |
| parent | b676338fb3aab0b63b4a2489feb8f35003db22e8 (diff) | |
sched: align nlattr properly when needed
Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
| -rw-r--r-- | include/net/gen_stats.h | 6 | ||||
| -rw-r--r-- | include/uapi/linux/gen_stats.h | 1 | ||||
| -rw-r--r-- | include/uapi/linux/pkt_cls.h | 2 | ||||
| -rw-r--r-- | include/uapi/linux/rtnetlink.h | 1 | ||||
| -rw-r--r-- | include/uapi/linux/tc_act/tc_bpf.h | 1 | ||||
| -rw-r--r-- | include/uapi/linux/tc_act/tc_connmark.h | 1 | ||||
| -rw-r--r-- | include/uapi/linux/tc_act/tc_csum.h | 1 | ||||
| -rw-r--r-- | include/uapi/linux/tc_act/tc_defact.h | 1 | ||||
| -rw-r--r-- | include/uapi/linux/tc_act/tc_gact.h | 1 | ||||
| -rw-r--r-- | include/uapi/linux/tc_act/tc_ife.h | 1 | ||||
| -rw-r--r-- | include/uapi/linux/tc_act/tc_ipt.h | 1 | ||||
| -rw-r--r-- | include/uapi/linux/tc_act/tc_mirred.h | 1 | ||||
| -rw-r--r-- | include/uapi/linux/tc_act/tc_nat.h | 1 | ||||
| -rw-r--r-- | include/uapi/linux/tc_act/tc_pedit.h | 1 | ||||
| -rw-r--r-- | include/uapi/linux/tc_act/tc_skbedit.h | 1 | ||||
| -rw-r--r-- | include/uapi/linux/tc_act/tc_vlan.h | 1 |
16 files changed, 20 insertions, 2 deletions
diff --git a/include/net/gen_stats.h b/include/net/gen_stats.h index cbafa3768d48..610cd397890e 100644 --- a/include/net/gen_stats.h +++ b/include/net/gen_stats.h | |||
| @@ -19,17 +19,19 @@ struct gnet_dump { | |||
| 19 | /* Backward compatibility */ | 19 | /* Backward compatibility */ |
| 20 | int compat_tc_stats; | 20 | int compat_tc_stats; |
| 21 | int compat_xstats; | 21 | int compat_xstats; |
| 22 | int padattr; | ||
| 22 | void * xstats; | 23 | void * xstats; |
| 23 | int xstats_len; | 24 | int xstats_len; |
| 24 | struct tc_stats tc_stats; | 25 | struct tc_stats tc_stats; |
| 25 | }; | 26 | }; |
| 26 | 27 | ||
| 27 | int gnet_stats_start_copy(struct sk_buff *skb, int type, spinlock_t *lock, | 28 | int gnet_stats_start_copy(struct sk_buff *skb, int type, spinlock_t *lock, |
| 28 | struct gnet_dump *d); | 29 | struct gnet_dump *d, int padattr); |
| 29 | 30 | ||
| 30 | int gnet_stats_start_copy_compat(struct sk_buff *skb, int type, | 31 | int gnet_stats_start_copy_compat(struct sk_buff *skb, int type, |
| 31 | int tc_stats_type, int xstats_type, | 32 | int tc_stats_type, int xstats_type, |
| 32 | spinlock_t *lock, struct gnet_dump *d); | 33 | spinlock_t *lock, struct gnet_dump *d, |
| 34 | int padattr); | ||
| 33 | 35 | ||
| 34 | int gnet_stats_copy_basic(struct gnet_dump *d, | 36 | int gnet_stats_copy_basic(struct gnet_dump *d, |
| 35 | struct gnet_stats_basic_cpu __percpu *cpu, | 37 | struct gnet_stats_basic_cpu __percpu *cpu, |
diff --git a/include/uapi/linux/gen_stats.h b/include/uapi/linux/gen_stats.h index 6487317ea619..52deccc2128e 100644 --- a/include/uapi/linux/gen_stats.h +++ b/include/uapi/linux/gen_stats.h | |||
| @@ -10,6 +10,7 @@ enum { | |||
| 10 | TCA_STATS_QUEUE, | 10 | TCA_STATS_QUEUE, |
| 11 | TCA_STATS_APP, | 11 | TCA_STATS_APP, |
| 12 | TCA_STATS_RATE_EST64, | 12 | TCA_STATS_RATE_EST64, |
| 13 | TCA_STATS_PAD, | ||
| 13 | __TCA_STATS_MAX, | 14 | __TCA_STATS_MAX, |
| 14 | }; | 15 | }; |
| 15 | #define TCA_STATS_MAX (__TCA_STATS_MAX - 1) | 16 | #define TCA_STATS_MAX (__TCA_STATS_MAX - 1) |
diff --git a/include/uapi/linux/pkt_cls.h b/include/uapi/linux/pkt_cls.h index c43c5f78b9c4..84660905fedf 100644 --- a/include/uapi/linux/pkt_cls.h +++ b/include/uapi/linux/pkt_cls.h | |||
| @@ -66,6 +66,7 @@ enum { | |||
| 66 | TCA_ACT_OPTIONS, | 66 | TCA_ACT_OPTIONS, |
| 67 | TCA_ACT_INDEX, | 67 | TCA_ACT_INDEX, |
| 68 | TCA_ACT_STATS, | 68 | TCA_ACT_STATS, |
| 69 | TCA_ACT_PAD, | ||
| 69 | __TCA_ACT_MAX | 70 | __TCA_ACT_MAX |
| 70 | }; | 71 | }; |
| 71 | 72 | ||
| @@ -173,6 +174,7 @@ enum { | |||
| 173 | TCA_U32_PCNT, | 174 | TCA_U32_PCNT, |
| 174 | TCA_U32_MARK, | 175 | TCA_U32_MARK, |
| 175 | TCA_U32_FLAGS, | 176 | TCA_U32_FLAGS, |
| 177 | TCA_U32_PAD, | ||
| 176 | __TCA_U32_MAX | 178 | __TCA_U32_MAX |
| 177 | }; | 179 | }; |
| 178 | 180 | ||
diff --git a/include/uapi/linux/rtnetlink.h b/include/uapi/linux/rtnetlink.h index a94e0b69c769..262f0379d83a 100644 --- a/include/uapi/linux/rtnetlink.h +++ b/include/uapi/linux/rtnetlink.h | |||
| @@ -542,6 +542,7 @@ enum { | |||
| 542 | TCA_FCNT, | 542 | TCA_FCNT, |
| 543 | TCA_STATS2, | 543 | TCA_STATS2, |
| 544 | TCA_STAB, | 544 | TCA_STAB, |
| 545 | TCA_PAD, | ||
| 545 | __TCA_MAX | 546 | __TCA_MAX |
| 546 | }; | 547 | }; |
| 547 | 548 | ||
diff --git a/include/uapi/linux/tc_act/tc_bpf.h b/include/uapi/linux/tc_act/tc_bpf.h index 07f17cc70bb3..063d9d465119 100644 --- a/include/uapi/linux/tc_act/tc_bpf.h +++ b/include/uapi/linux/tc_act/tc_bpf.h | |||
| @@ -26,6 +26,7 @@ enum { | |||
| 26 | TCA_ACT_BPF_OPS, | 26 | TCA_ACT_BPF_OPS, |
| 27 | TCA_ACT_BPF_FD, | 27 | TCA_ACT_BPF_FD, |
| 28 | TCA_ACT_BPF_NAME, | 28 | TCA_ACT_BPF_NAME, |
| 29 | TCA_ACT_BPF_PAD, | ||
| 29 | __TCA_ACT_BPF_MAX, | 30 | __TCA_ACT_BPF_MAX, |
| 30 | }; | 31 | }; |
| 31 | #define TCA_ACT_BPF_MAX (__TCA_ACT_BPF_MAX - 1) | 32 | #define TCA_ACT_BPF_MAX (__TCA_ACT_BPF_MAX - 1) |
diff --git a/include/uapi/linux/tc_act/tc_connmark.h b/include/uapi/linux/tc_act/tc_connmark.h index 994b0971bce2..62a5e944c554 100644 --- a/include/uapi/linux/tc_act/tc_connmark.h +++ b/include/uapi/linux/tc_act/tc_connmark.h | |||
| @@ -15,6 +15,7 @@ enum { | |||
| 15 | TCA_CONNMARK_UNSPEC, | 15 | TCA_CONNMARK_UNSPEC, |
| 16 | TCA_CONNMARK_PARMS, | 16 | TCA_CONNMARK_PARMS, |
| 17 | TCA_CONNMARK_TM, | 17 | TCA_CONNMARK_TM, |
| 18 | TCA_CONNMARK_PAD, | ||
| 18 | __TCA_CONNMARK_MAX | 19 | __TCA_CONNMARK_MAX |
| 19 | }; | 20 | }; |
| 20 | #define TCA_CONNMARK_MAX (__TCA_CONNMARK_MAX - 1) | 21 | #define TCA_CONNMARK_MAX (__TCA_CONNMARK_MAX - 1) |
diff --git a/include/uapi/linux/tc_act/tc_csum.h b/include/uapi/linux/tc_act/tc_csum.h index a047c49a3153..8ac8041ab5f1 100644 --- a/include/uapi/linux/tc_act/tc_csum.h +++ b/include/uapi/linux/tc_act/tc_csum.h | |||
| @@ -10,6 +10,7 @@ enum { | |||
| 10 | TCA_CSUM_UNSPEC, | 10 | TCA_CSUM_UNSPEC, |
| 11 | TCA_CSUM_PARMS, | 11 | TCA_CSUM_PARMS, |
| 12 | TCA_CSUM_TM, | 12 | TCA_CSUM_TM, |
| 13 | TCA_CSUM_PAD, | ||
| 13 | __TCA_CSUM_MAX | 14 | __TCA_CSUM_MAX |
| 14 | }; | 15 | }; |
| 15 | #define TCA_CSUM_MAX (__TCA_CSUM_MAX - 1) | 16 | #define TCA_CSUM_MAX (__TCA_CSUM_MAX - 1) |
diff --git a/include/uapi/linux/tc_act/tc_defact.h b/include/uapi/linux/tc_act/tc_defact.h index 17dddb40f740..d2a3abb77aeb 100644 --- a/include/uapi/linux/tc_act/tc_defact.h +++ b/include/uapi/linux/tc_act/tc_defact.h | |||
| @@ -12,6 +12,7 @@ enum { | |||
| 12 | TCA_DEF_TM, | 12 | TCA_DEF_TM, |
| 13 | TCA_DEF_PARMS, | 13 | TCA_DEF_PARMS, |
| 14 | TCA_DEF_DATA, | 14 | TCA_DEF_DATA, |
| 15 | TCA_DEF_PAD, | ||
| 15 | __TCA_DEF_MAX | 16 | __TCA_DEF_MAX |
| 16 | }; | 17 | }; |
| 17 | #define TCA_DEF_MAX (__TCA_DEF_MAX - 1) | 18 | #define TCA_DEF_MAX (__TCA_DEF_MAX - 1) |
diff --git a/include/uapi/linux/tc_act/tc_gact.h b/include/uapi/linux/tc_act/tc_gact.h index f7bf94eed510..70b536a8f8b2 100644 --- a/include/uapi/linux/tc_act/tc_gact.h +++ b/include/uapi/linux/tc_act/tc_gact.h | |||
| @@ -25,6 +25,7 @@ enum { | |||
| 25 | TCA_GACT_TM, | 25 | TCA_GACT_TM, |
| 26 | TCA_GACT_PARMS, | 26 | TCA_GACT_PARMS, |
| 27 | TCA_GACT_PROB, | 27 | TCA_GACT_PROB, |
| 28 | TCA_GACT_PAD, | ||
| 28 | __TCA_GACT_MAX | 29 | __TCA_GACT_MAX |
| 29 | }; | 30 | }; |
| 30 | #define TCA_GACT_MAX (__TCA_GACT_MAX - 1) | 31 | #define TCA_GACT_MAX (__TCA_GACT_MAX - 1) |
diff --git a/include/uapi/linux/tc_act/tc_ife.h b/include/uapi/linux/tc_act/tc_ife.h index d648ff66586f..4ece02a77b9a 100644 --- a/include/uapi/linux/tc_act/tc_ife.h +++ b/include/uapi/linux/tc_act/tc_ife.h | |||
| @@ -23,6 +23,7 @@ enum { | |||
| 23 | TCA_IFE_SMAC, | 23 | TCA_IFE_SMAC, |
| 24 | TCA_IFE_TYPE, | 24 | TCA_IFE_TYPE, |
| 25 | TCA_IFE_METALST, | 25 | TCA_IFE_METALST, |
| 26 | TCA_IFE_PAD, | ||
| 26 | __TCA_IFE_MAX | 27 | __TCA_IFE_MAX |
| 27 | }; | 28 | }; |
| 28 | #define TCA_IFE_MAX (__TCA_IFE_MAX - 1) | 29 | #define TCA_IFE_MAX (__TCA_IFE_MAX - 1) |
diff --git a/include/uapi/linux/tc_act/tc_ipt.h b/include/uapi/linux/tc_act/tc_ipt.h index 130aaadf6fac..7c6e155dd981 100644 --- a/include/uapi/linux/tc_act/tc_ipt.h +++ b/include/uapi/linux/tc_act/tc_ipt.h | |||
| @@ -14,6 +14,7 @@ enum { | |||
| 14 | TCA_IPT_CNT, | 14 | TCA_IPT_CNT, |
| 15 | TCA_IPT_TM, | 15 | TCA_IPT_TM, |
| 16 | TCA_IPT_TARG, | 16 | TCA_IPT_TARG, |
| 17 | TCA_IPT_PAD, | ||
| 17 | __TCA_IPT_MAX | 18 | __TCA_IPT_MAX |
| 18 | }; | 19 | }; |
| 19 | #define TCA_IPT_MAX (__TCA_IPT_MAX - 1) | 20 | #define TCA_IPT_MAX (__TCA_IPT_MAX - 1) |
diff --git a/include/uapi/linux/tc_act/tc_mirred.h b/include/uapi/linux/tc_act/tc_mirred.h index 7561750e8fd6..3d7a2b352a62 100644 --- a/include/uapi/linux/tc_act/tc_mirred.h +++ b/include/uapi/linux/tc_act/tc_mirred.h | |||
| @@ -20,6 +20,7 @@ enum { | |||
| 20 | TCA_MIRRED_UNSPEC, | 20 | TCA_MIRRED_UNSPEC, |
| 21 | TCA_MIRRED_TM, | 21 | TCA_MIRRED_TM, |
| 22 | TCA_MIRRED_PARMS, | 22 | TCA_MIRRED_PARMS, |
| 23 | TCA_MIRRED_PAD, | ||
| 23 | __TCA_MIRRED_MAX | 24 | __TCA_MIRRED_MAX |
| 24 | }; | 25 | }; |
| 25 | #define TCA_MIRRED_MAX (__TCA_MIRRED_MAX - 1) | 26 | #define TCA_MIRRED_MAX (__TCA_MIRRED_MAX - 1) |
diff --git a/include/uapi/linux/tc_act/tc_nat.h b/include/uapi/linux/tc_act/tc_nat.h index 6663aeba0b9a..923457c9ebf0 100644 --- a/include/uapi/linux/tc_act/tc_nat.h +++ b/include/uapi/linux/tc_act/tc_nat.h | |||
| @@ -10,6 +10,7 @@ enum { | |||
| 10 | TCA_NAT_UNSPEC, | 10 | TCA_NAT_UNSPEC, |
| 11 | TCA_NAT_PARMS, | 11 | TCA_NAT_PARMS, |
| 12 | TCA_NAT_TM, | 12 | TCA_NAT_TM, |
| 13 | TCA_NAT_PAD, | ||
| 13 | __TCA_NAT_MAX | 14 | __TCA_NAT_MAX |
| 14 | }; | 15 | }; |
| 15 | #define TCA_NAT_MAX (__TCA_NAT_MAX - 1) | 16 | #define TCA_NAT_MAX (__TCA_NAT_MAX - 1) |
diff --git a/include/uapi/linux/tc_act/tc_pedit.h b/include/uapi/linux/tc_act/tc_pedit.h index 716cfabcd5b2..6389959a5157 100644 --- a/include/uapi/linux/tc_act/tc_pedit.h +++ b/include/uapi/linux/tc_act/tc_pedit.h | |||
| @@ -10,6 +10,7 @@ enum { | |||
| 10 | TCA_PEDIT_UNSPEC, | 10 | TCA_PEDIT_UNSPEC, |
| 11 | TCA_PEDIT_TM, | 11 | TCA_PEDIT_TM, |
| 12 | TCA_PEDIT_PARMS, | 12 | TCA_PEDIT_PARMS, |
| 13 | TCA_PEDIT_PAD, | ||
| 13 | __TCA_PEDIT_MAX | 14 | __TCA_PEDIT_MAX |
| 14 | }; | 15 | }; |
| 15 | #define TCA_PEDIT_MAX (__TCA_PEDIT_MAX - 1) | 16 | #define TCA_PEDIT_MAX (__TCA_PEDIT_MAX - 1) |
diff --git a/include/uapi/linux/tc_act/tc_skbedit.h b/include/uapi/linux/tc_act/tc_skbedit.h index 7a2e910a5f08..fecb5cc48c40 100644 --- a/include/uapi/linux/tc_act/tc_skbedit.h +++ b/include/uapi/linux/tc_act/tc_skbedit.h | |||
| @@ -39,6 +39,7 @@ enum { | |||
| 39 | TCA_SKBEDIT_PRIORITY, | 39 | TCA_SKBEDIT_PRIORITY, |
| 40 | TCA_SKBEDIT_QUEUE_MAPPING, | 40 | TCA_SKBEDIT_QUEUE_MAPPING, |
| 41 | TCA_SKBEDIT_MARK, | 41 | TCA_SKBEDIT_MARK, |
| 42 | TCA_SKBEDIT_PAD, | ||
| 42 | __TCA_SKBEDIT_MAX | 43 | __TCA_SKBEDIT_MAX |
| 43 | }; | 44 | }; |
| 44 | #define TCA_SKBEDIT_MAX (__TCA_SKBEDIT_MAX - 1) | 45 | #define TCA_SKBEDIT_MAX (__TCA_SKBEDIT_MAX - 1) |
diff --git a/include/uapi/linux/tc_act/tc_vlan.h b/include/uapi/linux/tc_act/tc_vlan.h index f7b8d448b960..31151ff6264f 100644 --- a/include/uapi/linux/tc_act/tc_vlan.h +++ b/include/uapi/linux/tc_act/tc_vlan.h | |||
| @@ -28,6 +28,7 @@ enum { | |||
| 28 | TCA_VLAN_PARMS, | 28 | TCA_VLAN_PARMS, |
| 29 | TCA_VLAN_PUSH_VLAN_ID, | 29 | TCA_VLAN_PUSH_VLAN_ID, |
| 30 | TCA_VLAN_PUSH_VLAN_PROTOCOL, | 30 | TCA_VLAN_PUSH_VLAN_PROTOCOL, |
| 31 | TCA_VLAN_PAD, | ||
| 31 | __TCA_VLAN_MAX, | 32 | __TCA_VLAN_MAX, |
| 32 | }; | 33 | }; |
| 33 | #define TCA_VLAN_MAX (__TCA_VLAN_MAX - 1) | 34 | #define TCA_VLAN_MAX (__TCA_VLAN_MAX - 1) |
