net: cleanup include/linux
This cleanup patch puts struct/union/enum opening braces,
in first line to ease grep games.
struct something
{
becomes :
struct something {
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
b8883a65be
commit
d94d9fee9f
87 changed files with 351 additions and 694 deletions
|
|
@ -4,8 +4,7 @@
|
|||
#include <linux/types.h>
|
||||
#include <linux/pkt_cls.h>
|
||||
|
||||
struct tcf_em_cmp
|
||||
{
|
||||
struct tcf_em_cmp {
|
||||
__u32 val;
|
||||
__u32 mask;
|
||||
__u16 off;
|
||||
|
|
@ -15,8 +14,7 @@ struct tcf_em_cmp
|
|||
__u8 opnd:4;
|
||||
};
|
||||
|
||||
enum
|
||||
{
|
||||
enum {
|
||||
TCF_EM_ALIGN_U8 = 1,
|
||||
TCF_EM_ALIGN_U16 = 2,
|
||||
TCF_EM_ALIGN_U32 = 4
|
||||
|
|
|
|||
|
|
@ -4,8 +4,7 @@
|
|||
#include <linux/types.h>
|
||||
#include <linux/pkt_cls.h>
|
||||
|
||||
enum
|
||||
{
|
||||
enum {
|
||||
TCA_EM_META_UNSPEC,
|
||||
TCA_EM_META_HDR,
|
||||
TCA_EM_META_LVALUE,
|
||||
|
|
@ -14,8 +13,7 @@ enum
|
|||
};
|
||||
#define TCA_EM_META_MAX (__TCA_EM_META_MAX - 1)
|
||||
|
||||
struct tcf_meta_val
|
||||
{
|
||||
struct tcf_meta_val {
|
||||
__u16 kind;
|
||||
__u8 shift;
|
||||
__u8 op;
|
||||
|
|
@ -26,16 +24,14 @@ struct tcf_meta_val
|
|||
#define TCF_META_ID_MASK 0x7ff
|
||||
#define TCF_META_ID(kind) ((kind) & TCF_META_ID_MASK)
|
||||
|
||||
enum
|
||||
{
|
||||
enum {
|
||||
TCF_META_TYPE_VAR,
|
||||
TCF_META_TYPE_INT,
|
||||
__TCF_META_TYPE_MAX
|
||||
};
|
||||
#define TCF_META_TYPE_MAX (__TCF_META_TYPE_MAX - 1)
|
||||
|
||||
enum
|
||||
{
|
||||
enum {
|
||||
TCF_META_ID_VALUE,
|
||||
TCF_META_ID_RANDOM,
|
||||
TCF_META_ID_LOADAVG_0,
|
||||
|
|
@ -87,8 +83,7 @@ enum
|
|||
};
|
||||
#define TCF_META_ID_MAX (__TCF_META_ID_MAX - 1)
|
||||
|
||||
struct tcf_meta_hdr
|
||||
{
|
||||
struct tcf_meta_hdr {
|
||||
struct tcf_meta_val left;
|
||||
struct tcf_meta_val right;
|
||||
};
|
||||
|
|
|
|||
|
|
@ -4,8 +4,7 @@
|
|||
#include <linux/types.h>
|
||||
#include <linux/pkt_cls.h>
|
||||
|
||||
struct tcf_em_nbyte
|
||||
{
|
||||
struct tcf_em_nbyte {
|
||||
__u16 off;
|
||||
__u16 len:12;
|
||||
__u8 layer:4;
|
||||
|
|
|
|||
|
|
@ -6,8 +6,7 @@
|
|||
|
||||
#define TC_EM_TEXT_ALGOSIZ 16
|
||||
|
||||
struct tcf_em_text
|
||||
{
|
||||
struct tcf_em_text {
|
||||
char algo[TC_EM_TEXT_ALGOSIZ];
|
||||
__u16 from_offset;
|
||||
__u16 to_offset;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue