@@ -65,7 +65,7 @@ int tcf_hash_release(struct tcf_common *p, int bind,
6565 p -> tcfc_bindcnt -- ;
6666
6767 p -> tcfc_refcnt -- ;
68- if (p -> tcfc_bindcnt <= 0 && p -> tcfc_refcnt <= 0 ) {
68+ if (p -> tcfc_bindcnt <= 0 && p -> tcfc_refcnt <= 0 ) {
6969 tcf_hash_destroy (p , hinfo );
7070 ret = 1 ;
7171 }
@@ -362,7 +362,7 @@ static struct tc_action_ops *tc_lookup_action_id(u32 type)
362362#endif
363363
364364int tcf_action_exec (struct sk_buff * skb , struct tc_action * act ,
365- struct tcf_result * res )
365+ struct tcf_result * res )
366366{
367367 struct tc_action * a ;
368368 int ret = -1 ;
@@ -473,7 +473,7 @@ tcf_action_dump(struct sk_buff *skb, struct tc_action *act, int bind, int ref)
473473}
474474
475475struct tc_action * tcf_action_init_1 (struct rtattr * rta , struct rtattr * est ,
476- char * name , int ovr , int bind , int * err )
476+ char * name , int ovr , int bind , int * err )
477477{
478478 struct tc_action * a ;
479479 struct tc_action_ops * a_o ;
@@ -553,7 +553,7 @@ struct tc_action *tcf_action_init_1(struct rtattr *rta, struct rtattr *est,
553553}
554554
555555struct tc_action * tcf_action_init (struct rtattr * rta , struct rtattr * est ,
556- char * name , int ovr , int bind , int * err )
556+ char * name , int ovr , int bind , int * err )
557557{
558558 struct rtattr * tb [TCA_ACT_MAX_PRIO + 1 ];
559559 struct tc_action * head = NULL , * act , * act_prev = NULL ;
@@ -590,7 +590,7 @@ int tcf_action_copy_stats(struct sk_buff *skb, struct tc_action *a,
590590 int err = 0 ;
591591 struct gnet_dump d ;
592592 struct tcf_act_hdr * h = a -> priv ;
593-
593+
594594 if (h == NULL )
595595 goto errout ;
596596
@@ -632,7 +632,7 @@ int tcf_action_copy_stats(struct sk_buff *skb, struct tc_action *a,
632632
633633static int
634634tca_get_fill (struct sk_buff * skb , struct tc_action * a , u32 pid , u32 seq ,
635- u16 flags , int event , int bind , int ref )
635+ u16 flags , int event , int bind , int ref )
636636{
637637 struct tcamsg * t ;
638638 struct nlmsghdr * nlh ;
@@ -645,15 +645,15 @@ tca_get_fill(struct sk_buff *skb, struct tc_action *a, u32 pid, u32 seq,
645645 t -> tca_family = AF_UNSPEC ;
646646 t -> tca__pad1 = 0 ;
647647 t -> tca__pad2 = 0 ;
648-
648+
649649 x = (struct rtattr * ) skb -> tail ;
650650 RTA_PUT (skb , TCA_ACT_TAB , 0 , NULL );
651651
652652 if (tcf_action_dump (skb , a , bind , ref ) < 0 )
653653 goto rtattr_failure ;
654654
655655 x -> rta_len = skb -> tail - (u8 * )x ;
656-
656+
657657 nlh -> nlmsg_len = skb -> tail - b ;
658658 return skb -> len ;
659659
@@ -852,7 +852,7 @@ tca_action_gd(struct rtattr *rta, struct nlmsghdr *n, u32 pid, int event)
852852 }
853853
854854 if (tca_get_fill (skb , head , pid , n -> nlmsg_seq , 0 , event ,
855- 0 , 1 ) <= 0 ) {
855+ 0 , 1 ) <= 0 ) {
856856 kfree_skb (skb );
857857 ret = - EINVAL ;
858858 goto err ;
@@ -861,7 +861,7 @@ tca_action_gd(struct rtattr *rta, struct nlmsghdr *n, u32 pid, int event)
861861 /* now do the delete */
862862 tcf_action_destroy (head , 0 );
863863 ret = rtnetlink_send (skb , pid , RTNLGRP_TC ,
864- n -> nlmsg_flags & NLM_F_ECHO );
864+ n -> nlmsg_flags & NLM_F_ECHO );
865865 if (ret > 0 )
866866 return 0 ;
867867 return ret ;
@@ -872,7 +872,7 @@ tca_action_gd(struct rtattr *rta, struct nlmsghdr *n, u32 pid, int event)
872872}
873873
874874static int tcf_add_notify (struct tc_action * a , u32 pid , u32 seq , int event ,
875- u16 flags )
875+ u16 flags )
876876{
877877 struct tcamsg * t ;
878878 struct nlmsghdr * nlh ;
@@ -900,10 +900,10 @@ static int tcf_add_notify(struct tc_action *a, u32 pid, u32 seq, int event,
900900 goto rtattr_failure ;
901901
902902 x -> rta_len = skb -> tail - (u8 * )x ;
903-
903+
904904 nlh -> nlmsg_len = skb -> tail - b ;
905905 NETLINK_CB (skb ).dst_group = RTNLGRP_TC ;
906-
906+
907907 err = rtnetlink_send (skb , pid , RTNLGRP_TC , flags & NLM_F_ECHO );
908908 if (err > 0 )
909909 err = 0 ;
@@ -915,7 +915,7 @@ static int tcf_add_notify(struct tc_action *a, u32 pid, u32 seq, int event,
915915 return -1 ;
916916}
917917
918-
918+
919919static int
920920tcf_action_add (struct rtattr * rta , struct nlmsghdr * n , u32 pid , int ovr )
921921{
@@ -999,13 +999,13 @@ find_dump_kind(struct nlmsghdr *n)
999999 return NULL ;
10001000
10011001 if (rtattr_parse (tb , TCA_ACT_MAX_PRIO , RTA_DATA (tb1 ),
1002- NLMSG_ALIGN (RTA_PAYLOAD (tb1 ))) < 0 )
1002+ NLMSG_ALIGN (RTA_PAYLOAD (tb1 ))) < 0 )
10031003 return NULL ;
10041004 if (tb [0 ] == NULL )
10051005 return NULL ;
10061006
10071007 if (rtattr_parse (tb2 , TCA_ACT_MAX , RTA_DATA (tb [0 ]),
1008- RTA_PAYLOAD (tb [0 ])) < 0 )
1008+ RTA_PAYLOAD (tb [0 ])) < 0 )
10091009 return NULL ;
10101010 kind = tb2 [TCA_ACT_KIND - 1 ];
10111011
@@ -1043,7 +1043,7 @@ tc_dump_action(struct sk_buff *skb, struct netlink_callback *cb)
10431043 }
10441044
10451045 nlh = NLMSG_PUT (skb , NETLINK_CB (cb -> skb ).pid , cb -> nlh -> nlmsg_seq ,
1046- cb -> nlh -> nlmsg_type , sizeof (* t ));
1046+ cb -> nlh -> nlmsg_type , sizeof (* t ));
10471047 t = NLMSG_DATA (nlh );
10481048 t -> tca_family = AF_UNSPEC ;
10491049 t -> tca__pad1 = 0 ;
0 commit comments