Lines Matching refs:set_act
810 int *a_len, struct nfp_flower_pedit_acts *set_act, in nfp_fl_commit_mangle() argument
823 if (set_act->set_eth.head.len_lw) { in nfp_fl_commit_mangle()
824 act_size = sizeof(set_act->set_eth); in nfp_fl_commit_mangle()
825 memcpy(nfp_action, &set_act->set_eth, act_size); in nfp_fl_commit_mangle()
829 if (set_act->set_ip_ttl_tos.head.len_lw) { in nfp_fl_commit_mangle()
831 act_size = sizeof(set_act->set_ip_ttl_tos); in nfp_fl_commit_mangle()
832 memcpy(nfp_action, &set_act->set_ip_ttl_tos, act_size); in nfp_fl_commit_mangle()
840 if (set_act->set_ip_addr.head.len_lw) { in nfp_fl_commit_mangle()
842 act_size = sizeof(set_act->set_ip_addr); in nfp_fl_commit_mangle()
843 memcpy(nfp_action, &set_act->set_ip_addr, act_size); in nfp_fl_commit_mangle()
851 if (set_act->set_ip6_tc_hl_fl.head.len_lw) { in nfp_fl_commit_mangle()
853 act_size = sizeof(set_act->set_ip6_tc_hl_fl); in nfp_fl_commit_mangle()
854 memcpy(nfp_action, &set_act->set_ip6_tc_hl_fl, act_size); in nfp_fl_commit_mangle()
861 if (set_act->set_ip6_dst.head.len_lw && in nfp_fl_commit_mangle()
862 set_act->set_ip6_src.head.len_lw) { in nfp_fl_commit_mangle()
867 act_size = sizeof(set_act->set_ip6_src); in nfp_fl_commit_mangle()
868 memcpy(nfp_action, &set_act->set_ip6_src, act_size); in nfp_fl_commit_mangle()
871 act_size = sizeof(set_act->set_ip6_dst); in nfp_fl_commit_mangle()
872 memcpy(&nfp_action[sizeof(set_act->set_ip6_src)], in nfp_fl_commit_mangle()
873 &set_act->set_ip6_dst, act_size); in nfp_fl_commit_mangle()
878 } else if (set_act->set_ip6_dst.head.len_lw) { in nfp_fl_commit_mangle()
880 act_size = sizeof(set_act->set_ip6_dst); in nfp_fl_commit_mangle()
881 memcpy(nfp_action, &set_act->set_ip6_dst, act_size); in nfp_fl_commit_mangle()
886 } else if (set_act->set_ip6_src.head.len_lw) { in nfp_fl_commit_mangle()
888 act_size = sizeof(set_act->set_ip6_src); in nfp_fl_commit_mangle()
889 memcpy(nfp_action, &set_act->set_ip6_src, act_size); in nfp_fl_commit_mangle()
895 if (set_act->set_tport.head.len_lw) { in nfp_fl_commit_mangle()
897 act_size = sizeof(set_act->set_tport); in nfp_fl_commit_mangle()
898 memcpy(nfp_action, &set_act->set_tport, act_size); in nfp_fl_commit_mangle()
911 u32 *csum_updated, struct nfp_flower_pedit_acts *set_act, in nfp_fl_pedit() argument
922 return nfp_fl_set_eth(act, offset, &set_act->set_eth, extack); in nfp_fl_pedit()
924 return nfp_fl_set_ip4(act, offset, &set_act->set_ip_addr, in nfp_fl_pedit()
925 &set_act->set_ip_ttl_tos, extack); in nfp_fl_pedit()
927 return nfp_fl_set_ip6(act, offset, &set_act->set_ip6_dst, in nfp_fl_pedit()
928 &set_act->set_ip6_src, in nfp_fl_pedit()
929 &set_act->set_ip6_tc_hl_fl, extack); in nfp_fl_pedit()
931 return nfp_fl_set_tport(act, offset, &set_act->set_tport, in nfp_fl_pedit()
934 return nfp_fl_set_tport(act, offset, &set_act->set_tport, in nfp_fl_pedit()
1047 struct nfp_flower_pedit_acts *set_act, bool *pkt_host, in nfp_flower_loop_action() argument
1153 a_len, csum_updated, set_act, extack)) in nfp_flower_loop_action()
1279 struct nfp_flower_pedit_acts set_act; in nfp_flower_compile_action() local
1299 memset(&set_act, 0, sizeof(set_act)); in nfp_flower_compile_action()
1303 &set_act, &pkt_host, extack, i); in nfp_flower_compile_action()
1310 &act_len, &set_act, &csum_updated); in nfp_flower_compile_action()