Commit d020d455 authored by Roman Mashak's avatar Roman Mashak Committed by David S. Miller

net sched actions: fix coding style in pedit headers

Fix coding style issues in tc pedit headers detected by the
checkpatch script.
Reviewed-by: default avatarSimon Horman <simon.horman@netronome.com>
Signed-off-by: default avatarRoman Mashak <mrv@mojatatu.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 80f0f574
...@@ -17,6 +17,7 @@ struct tcf_pedit { ...@@ -17,6 +17,7 @@ struct tcf_pedit {
struct tc_pedit_key *tcfp_keys; struct tc_pedit_key *tcfp_keys;
struct tcf_pedit_key_ex *tcfp_keys_ex; struct tcf_pedit_key_ex *tcfp_keys_ex;
}; };
#define to_pedit(a) ((struct tcf_pedit *)a) #define to_pedit(a) ((struct tcf_pedit *)a)
static inline bool is_tcf_pedit(const struct tc_action *a) static inline bool is_tcf_pedit(const struct tc_action *a)
......
...@@ -17,6 +17,7 @@ enum { ...@@ -17,6 +17,7 @@ enum {
TCA_PEDIT_KEY_EX, TCA_PEDIT_KEY_EX,
__TCA_PEDIT_MAX __TCA_PEDIT_MAX
}; };
#define TCA_PEDIT_MAX (__TCA_PEDIT_MAX - 1) #define TCA_PEDIT_MAX (__TCA_PEDIT_MAX - 1)
enum { enum {
...@@ -24,6 +25,7 @@ enum { ...@@ -24,6 +25,7 @@ enum {
TCA_PEDIT_KEY_EX_CMD = 2, TCA_PEDIT_KEY_EX_CMD = 2,
__TCA_PEDIT_KEY_EX_MAX __TCA_PEDIT_KEY_EX_MAX
}; };
#define TCA_PEDIT_KEY_EX_MAX (__TCA_PEDIT_KEY_EX_MAX - 1) #define TCA_PEDIT_KEY_EX_MAX (__TCA_PEDIT_KEY_EX_MAX - 1)
/* TCA_PEDIT_KEY_EX_HDR_TYPE_NETWROK is a special case for legacy users. It /* TCA_PEDIT_KEY_EX_HDR_TYPE_NETWROK is a special case for legacy users. It
...@@ -38,6 +40,7 @@ enum pedit_header_type { ...@@ -38,6 +40,7 @@ enum pedit_header_type {
TCA_PEDIT_KEY_EX_HDR_TYPE_UDP = 5, TCA_PEDIT_KEY_EX_HDR_TYPE_UDP = 5,
__PEDIT_HDR_TYPE_MAX, __PEDIT_HDR_TYPE_MAX,
}; };
#define TCA_PEDIT_HDR_TYPE_MAX (__PEDIT_HDR_TYPE_MAX - 1) #define TCA_PEDIT_HDR_TYPE_MAX (__PEDIT_HDR_TYPE_MAX - 1)
enum pedit_cmd { enum pedit_cmd {
...@@ -45,6 +48,7 @@ enum pedit_cmd { ...@@ -45,6 +48,7 @@ enum pedit_cmd {
TCA_PEDIT_KEY_EX_CMD_ADD = 1, TCA_PEDIT_KEY_EX_CMD_ADD = 1,
__PEDIT_CMD_MAX, __PEDIT_CMD_MAX,
}; };
#define TCA_PEDIT_CMD_MAX (__PEDIT_CMD_MAX - 1) #define TCA_PEDIT_CMD_MAX (__PEDIT_CMD_MAX - 1)
struct tc_pedit_key { struct tc_pedit_key {
...@@ -62,6 +66,7 @@ struct tc_pedit_sel { ...@@ -62,6 +66,7 @@ struct tc_pedit_sel {
unsigned char flags; unsigned char flags;
struct tc_pedit_key keys[0]; struct tc_pedit_key keys[0];
}; };
#define tc_pedit tc_pedit_sel #define tc_pedit tc_pedit_sel
#endif #endif
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment