]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
net sched actions: fix coding style in pedit headers
authorRoman Mashak <mrv@mojatatu.com>
Wed, 27 Jun 2018 17:33:31 +0000 (13:33 -0400)
committerDavid S. Miller <davem@davemloft.net>
Thu, 28 Jun 2018 13:12:03 +0000 (22:12 +0900)
Fix coding style issues in tc pedit headers detected by the
checkpatch script.

Reviewed-by: Simon Horman <simon.horman@netronome.com>
Signed-off-by: Roman Mashak <mrv@mojatatu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/tc_act/tc_pedit.h
include/uapi/linux/tc_act/tc_pedit.h

index 227a6f1d02f4c4a2c401648071aecd733aa1a5a7..fac3ad4a86de96ed1acb1b2747f043471b5f4fd3 100644 (file)
@@ -17,6 +17,7 @@ struct tcf_pedit {
        struct tc_pedit_key     *tcfp_keys;
        struct tcf_pedit_key_ex *tcfp_keys_ex;
 };
+
 #define to_pedit(a) ((struct tcf_pedit *)a)
 
 static inline bool is_tcf_pedit(const struct tc_action *a)
index 162d1094c41c09ca832c0139474f99b62e6a4aaf..24ec792dacc1828f814625a6b6e0109566e4843b 100644 (file)
@@ -17,13 +17,15 @@ enum {
        TCA_PEDIT_KEY_EX,
        __TCA_PEDIT_MAX
 };
+
 #define TCA_PEDIT_MAX (__TCA_PEDIT_MAX - 1)
-                                                                                
+
 enum {
        TCA_PEDIT_KEY_EX_HTYPE = 1,
        TCA_PEDIT_KEY_EX_CMD = 2,
        __TCA_PEDIT_KEY_EX_MAX
 };
+
 #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
@@ -38,6 +40,7 @@ enum pedit_header_type {
        TCA_PEDIT_KEY_EX_HDR_TYPE_UDP = 5,
        __PEDIT_HDR_TYPE_MAX,
 };
+
 #define TCA_PEDIT_HDR_TYPE_MAX (__PEDIT_HDR_TYPE_MAX - 1)
 
 enum pedit_cmd {
@@ -45,6 +48,7 @@ enum pedit_cmd {
        TCA_PEDIT_KEY_EX_CMD_ADD = 1,
        __PEDIT_CMD_MAX,
 };
+
 #define TCA_PEDIT_CMD_MAX (__PEDIT_CMD_MAX - 1)
 
 struct tc_pedit_key {
@@ -55,13 +59,14 @@ struct tc_pedit_key {
        __u32           offmask;
        __u32           shift;
 };
-                                                                                
+
 struct tc_pedit_sel {
        tc_gen;
        unsigned char           nkeys;
        unsigned char           flags;
        struct tc_pedit_key     keys[0];
 };
+
 #define tc_pedit tc_pedit_sel
 
 #endif