@@ -80,10 +80,10 @@ static struct ch_tc_flower_entry *ch_flower_lookup(struct adapter *adap,
8080}
8181
8282static void cxgb4_process_flow_match (struct net_device * dev ,
83- struct tc_cls_flower_offload * cls ,
83+ struct flow_cls_offload * cls ,
8484 struct ch_filter_specification * fs )
8585{
86- struct flow_rule * rule = tc_cls_flower_offload_flow_rule (cls );
86+ struct flow_rule * rule = flow_cls_offload_flow_rule (cls );
8787 u16 addr_type = 0 ;
8888
8989 if (flow_rule_match_key (rule , FLOW_DISSECTOR_KEY_CONTROL )) {
@@ -223,9 +223,9 @@ static void cxgb4_process_flow_match(struct net_device *dev,
223223}
224224
225225static int cxgb4_validate_flow_match (struct net_device * dev ,
226- struct tc_cls_flower_offload * cls )
226+ struct flow_cls_offload * cls )
227227{
228- struct flow_rule * rule = tc_cls_flower_offload_flow_rule (cls );
228+ struct flow_rule * rule = flow_cls_offload_flow_rule (cls );
229229 struct flow_dissector * dissector = rule -> match .dissector ;
230230 u16 ethtype_mask = 0 ;
231231 u16 ethtype_key = 0 ;
@@ -378,10 +378,10 @@ static void process_pedit_field(struct ch_filter_specification *fs, u32 val,
378378}
379379
380380static void cxgb4_process_flow_actions (struct net_device * in ,
381- struct tc_cls_flower_offload * cls ,
381+ struct flow_cls_offload * cls ,
382382 struct ch_filter_specification * fs )
383383{
384- struct flow_rule * rule = tc_cls_flower_offload_flow_rule (cls );
384+ struct flow_rule * rule = flow_cls_offload_flow_rule (cls );
385385 struct flow_action_entry * act ;
386386 int i ;
387387
@@ -544,9 +544,9 @@ static bool valid_pedit_action(struct net_device *dev,
544544}
545545
546546static int cxgb4_validate_flow_actions (struct net_device * dev ,
547- struct tc_cls_flower_offload * cls )
547+ struct flow_cls_offload * cls )
548548{
549- struct flow_rule * rule = tc_cls_flower_offload_flow_rule (cls );
549+ struct flow_rule * rule = flow_cls_offload_flow_rule (cls );
550550 struct flow_action_entry * act ;
551551 bool act_redir = false;
552552 bool act_pedit = false;
@@ -633,7 +633,7 @@ static int cxgb4_validate_flow_actions(struct net_device *dev,
633633}
634634
635635int cxgb4_tc_flower_replace (struct net_device * dev ,
636- struct tc_cls_flower_offload * cls )
636+ struct flow_cls_offload * cls )
637637{
638638 struct adapter * adap = netdev2adap (dev );
639639 struct ch_tc_flower_entry * ch_flower ;
@@ -709,7 +709,7 @@ int cxgb4_tc_flower_replace(struct net_device *dev,
709709}
710710
711711int cxgb4_tc_flower_destroy (struct net_device * dev ,
712- struct tc_cls_flower_offload * cls )
712+ struct flow_cls_offload * cls )
713713{
714714 struct adapter * adap = netdev2adap (dev );
715715 struct ch_tc_flower_entry * ch_flower ;
@@ -783,7 +783,7 @@ static void ch_flower_stats_cb(struct timer_list *t)
783783}
784784
785785int cxgb4_tc_flower_stats (struct net_device * dev ,
786- struct tc_cls_flower_offload * cls )
786+ struct flow_cls_offload * cls )
787787{
788788 struct adapter * adap = netdev2adap (dev );
789789 struct ch_tc_flower_stats * ofld_stats ;
0 commit comments