Home
last modified time | relevance | path

Searched refs:act (Results 1 – 25 of 34) sorted by relevance

12

/net/sched/
A Dact_gact.c231 if (to_gact(act)->tcfg_ptype) in tcf_gact_get_fill_size()
246 if (is_tcf_gact_ok(act)) { in tcf_gact_offload_act_setup()
248 } else if (is_tcf_gact_shot(act)) { in tcf_gact_offload_act_setup()
250 } else if (is_tcf_gact_trap(act)) { in tcf_gact_offload_act_setup()
255 } else if (is_tcf_gact_continue(act)) { in tcf_gact_offload_act_setup()
261 } else if (is_tcf_gact_pipe(act)) { in tcf_gact_offload_act_setup()
272 if (is_tcf_gact_ok(act)) in tcf_gact_offload_act_setup()
274 else if (is_tcf_gact_shot(act)) in tcf_gact_offload_act_setup()
276 else if (is_tcf_gact_trap(act)) in tcf_gact_offload_act_setup()
278 else if (is_tcf_gact_goto_chain(act)) in tcf_gact_offload_act_setup()
[all …]
A Dact_skbedit.c373 if (is_tcf_skbedit_mark(act)) { in tcf_skbedit_offload_act_setup()
375 entry->mark = tcf_skbedit_mark(act); in tcf_skbedit_offload_act_setup()
376 } else if (is_tcf_skbedit_ptype(act)) { in tcf_skbedit_offload_act_setup()
378 entry->ptype = tcf_skbedit_ptype(act); in tcf_skbedit_offload_act_setup()
379 } else if (is_tcf_skbedit_priority(act)) { in tcf_skbedit_offload_act_setup()
381 entry->priority = tcf_skbedit_priority(act); in tcf_skbedit_offload_act_setup()
399 if (is_tcf_skbedit_mark(act)) in tcf_skbedit_offload_act_setup()
401 else if (is_tcf_skbedit_ptype(act)) in tcf_skbedit_offload_act_setup()
403 else if (is_tcf_skbedit_priority(act)) in tcf_skbedit_offload_act_setup()
405 else if (is_tcf_skbedit_rx_queue_mapping(act)) in tcf_skbedit_offload_act_setup()
[all …]
A Dact_api.c150 act->in_hw_count = act->in_hw_count > hw_count ? in offload_action_hw_count_dec()
156 if (is_tcf_pedit(act)) in tcf_offload_act_num_actions_single()
194 err = act->ops->offload_act_setup(act, fl_action, NULL, in offload_action_init()
473 return act->ops->get_fill_size(act) + sz; in tcf_action_fill_size()
1021 if (!act->act || !act->dump || !act->init) in tcf_register_action()
1040 if (act->id == a->id || (strcmp(act->kind, a->kind) == 0)) { in tcf_register_action()
1068 if (a == act) { in tcf_unregister_action()
1508 if (IS_ERR(act)) { in tcf_action_init()
1509 err = PTR_ERR(act); in tcf_action_init()
2027 if (IS_ERR(act)) { in tca_action_gd()
[all …]
A Dact_bpf.c36 const struct tc_action *act, in tcf_bpf_act() argument
40 struct tcf_bpf *prog = to_bpf(act); in tcf_bpf_act()
142 struct tcf_bpf *prog = to_bpf(act); in tcf_bpf_dump()
280 struct nlattr *est, struct tc_action **act, in tcf_bpf_init() argument
308 ret = tcf_idr_check_alloc(tn, &index, act, bind); in tcf_bpf_init()
310 ret = tcf_idr_create(tn, index, est, act, in tcf_bpf_init()
324 tcf_idr_release(*act, bind); in tcf_bpf_init()
350 prog = to_bpf(*act); in tcf_bpf_init()
382 tcf_idr_release(*act, bind); in tcf_bpf_init()
390 tcf_bpf_prog_fill_cfg(to_bpf(act), &tmp); in tcf_bpf_cleanup()
[all …]
A Dact_mirred.c596 const struct tc_action *act) in tcf_offload_mirred_get_dev() argument
598 entry->dev = act->ops->get_dev(act, &entry->destructor); in tcf_offload_mirred_get_dev()
611 if (is_tcf_mirred_egress_redirect(act)) { in tcf_mirred_offload_act_setup()
613 tcf_offload_mirred_get_dev(entry, act); in tcf_mirred_offload_act_setup()
616 tcf_offload_mirred_get_dev(entry, act); in tcf_mirred_offload_act_setup()
619 tcf_offload_mirred_get_dev(entry, act); in tcf_mirred_offload_act_setup()
622 tcf_offload_mirred_get_dev(entry, act); in tcf_mirred_offload_act_setup()
631 if (is_tcf_mirred_egress_redirect(act)) in tcf_mirred_offload_act_setup()
633 else if (is_tcf_mirred_egress_mirror(act)) in tcf_mirred_offload_act_setup()
637 else if (is_tcf_mirred_ingress_mirror(act)) in tcf_mirred_offload_act_setup()
[all …]
A Dact_mpls.c389 switch (tcf_mpls_action(act)) { in tcf_mpls_offload_act_setup()
392 entry->mpls_push.proto = tcf_mpls_proto(act); in tcf_mpls_offload_act_setup()
394 entry->mpls_push.tc = tcf_mpls_tc(act); in tcf_mpls_offload_act_setup()
395 entry->mpls_push.bos = tcf_mpls_bos(act); in tcf_mpls_offload_act_setup()
396 entry->mpls_push.ttl = tcf_mpls_ttl(act); in tcf_mpls_offload_act_setup()
400 entry->mpls_pop.proto = tcf_mpls_proto(act); in tcf_mpls_offload_act_setup()
405 entry->mpls_mangle.tc = tcf_mpls_tc(act); in tcf_mpls_offload_act_setup()
406 entry->mpls_mangle.bos = tcf_mpls_bos(act); in tcf_mpls_offload_act_setup()
407 entry->mpls_mangle.ttl = tcf_mpls_ttl(act); in tcf_mpls_offload_act_setup()
423 switch (tcf_mpls_action(act)) { in tcf_mpls_offload_act_setup()
[all …]
A Dact_vlan.c348 static size_t tcf_vlan_get_fill_size(const struct tc_action *act) in tcf_vlan_get_fill_size() argument
356 static int tcf_vlan_offload_act_setup(struct tc_action *act, void *entry_data, in tcf_vlan_offload_act_setup() argument
363 switch (tcf_vlan_action(act)) { in tcf_vlan_offload_act_setup()
366 entry->vlan.vid = tcf_vlan_push_vid(act); in tcf_vlan_offload_act_setup()
367 entry->vlan.proto = tcf_vlan_push_proto(act); in tcf_vlan_offload_act_setup()
368 entry->vlan.prio = tcf_vlan_push_prio(act); in tcf_vlan_offload_act_setup()
375 entry->vlan.vid = tcf_vlan_push_vid(act); in tcf_vlan_offload_act_setup()
376 entry->vlan.proto = tcf_vlan_push_proto(act); in tcf_vlan_offload_act_setup()
377 entry->vlan.prio = tcf_vlan_push_prio(act); in tcf_vlan_offload_act_setup()
394 switch (tcf_vlan_action(act)) { in tcf_vlan_offload_act_setup()
[all …]
A Dact_sample.c289 const struct tc_action *act) in tcf_offload_sample_get_group() argument
292 act->ops->get_psample_group(act, &entry->destructor); in tcf_offload_sample_get_group()
296 static int tcf_sample_offload_act_setup(struct tc_action *act, void *entry_data, in tcf_sample_offload_act_setup() argument
304 entry->sample.trunc_size = tcf_sample_trunc_size(act); in tcf_sample_offload_act_setup()
305 entry->sample.truncate = tcf_sample_truncate(act); in tcf_sample_offload_act_setup()
306 entry->sample.rate = tcf_sample_rate(act); in tcf_sample_offload_act_setup()
307 tcf_offload_sample_get_group(entry, act); in tcf_sample_offload_act_setup()
322 .act = tcf_sample_act,
A Dact_pedit.c563 for (k = 0; k < tcf_pedit_nkeys(act); k++) { in tcf_pedit_offload_act_setup()
564 switch (tcf_pedit_cmd(act, k)) { in tcf_pedit_offload_act_setup()
575 entry->mangle.htype = tcf_pedit_htype(act, k); in tcf_pedit_offload_act_setup()
576 entry->mangle.mask = tcf_pedit_mask(act, k); in tcf_pedit_offload_act_setup()
577 entry->mangle.val = tcf_pedit_val(act, k); in tcf_pedit_offload_act_setup()
578 entry->mangle.offset = tcf_pedit_offset(act, k); in tcf_pedit_offload_act_setup()
579 entry->hw_stats = tc_act_hw_stats(act->hw_stats); in tcf_pedit_offload_act_setup()
585 u32 cmd = tcf_pedit_cmd(act, 0); in tcf_pedit_offload_act_setup()
600 for (k = 1; k < tcf_pedit_nkeys(act); k++) { in tcf_pedit_offload_act_setup()
601 if (cmd != tcf_pedit_cmd(act, k)) { in tcf_pedit_offload_act_setup()
[all …]
A Dact_police.c436 static int tcf_police_offload_act_setup(struct tc_action *act, void *entry_data, in tcf_police_offload_act_setup() argument
442 struct tcf_police *police = to_police(act); in tcf_police_offload_act_setup()
450 entry->police.burst = tcf_police_burst(act); in tcf_police_offload_act_setup()
452 tcf_police_rate_bytes_ps(act); in tcf_police_offload_act_setup()
453 entry->police.peakrate_bytes_ps = tcf_police_peakrate_bytes_ps(act); in tcf_police_offload_act_setup()
454 entry->police.avrate = tcf_police_tcfp_ewma_rate(act); in tcf_police_offload_act_setup()
455 entry->police.overhead = tcf_police_rate_overhead(act); in tcf_police_offload_act_setup()
456 entry->police.burst_pkt = tcf_police_burst_pkt(act); in tcf_police_offload_act_setup()
458 tcf_police_rate_pkt_ps(act); in tcf_police_offload_act_setup()
459 entry->police.mtu = tcf_police_tcfp_mtu(act); in tcf_police_offload_act_setup()
[all …]
A Dact_gate.c575 static size_t tcf_gate_get_fill_size(const struct tc_action *act) in tcf_gate_get_fill_size() argument
588 const struct tc_action *act) in tcf_gate_get_entries() argument
590 entry->gate.entries = tcf_gate_get_list(act); in tcf_gate_get_entries()
601 static int tcf_gate_offload_act_setup(struct tc_action *act, void *entry_data, in tcf_gate_offload_act_setup() argument
611 entry->gate.prio = tcf_gate_prio(act); in tcf_gate_offload_act_setup()
612 entry->gate.basetime = tcf_gate_basetime(act); in tcf_gate_offload_act_setup()
613 entry->gate.cycletime = tcf_gate_cycletime(act); in tcf_gate_offload_act_setup()
614 entry->gate.cycletimeext = tcf_gate_cycletimeext(act); in tcf_gate_offload_act_setup()
615 entry->gate.num_entries = tcf_gate_num_entries(act); in tcf_gate_offload_act_setup()
616 err = tcf_gate_get_entries(entry, act); in tcf_gate_offload_act_setup()
[all …]
A Dact_tunnel_key.c787 const struct tc_action *act) in tcf_tunnel_encap_get_tunnel() argument
789 entry->tunnel = tcf_tunnel_info_copy(act); in tcf_tunnel_encap_get_tunnel()
797 static int tcf_tunnel_key_offload_act_setup(struct tc_action *act, in tcf_tunnel_key_offload_act_setup() argument
808 if (is_tcf_tunnel_set(act)) { in tcf_tunnel_key_offload_act_setup()
810 err = tcf_tunnel_encap_get_tunnel(entry, act); in tcf_tunnel_key_offload_act_setup()
813 } else if (is_tcf_tunnel_release(act)) { in tcf_tunnel_key_offload_act_setup()
823 if (is_tcf_tunnel_set(act)) in tcf_tunnel_key_offload_act_setup()
825 else if (is_tcf_tunnel_release(act)) in tcf_tunnel_key_offload_act_setup()
838 .act = tunnel_key_act,
A Dcls_api.c3392 struct tc_action *act; in tcf_exts_validate_ex() local
3407 if (IS_ERR(act)) in tcf_exts_validate_ex()
3408 return PTR_ERR(act); in tcf_exts_validate_ex()
3411 exts->actions[0] = act; in tcf_exts_validate_ex()
3492 if (nest == NULL || !act) in tcf_exts_dump()
3850 return act->ops->offload_act_setup(act, entry, index_inc, true, in tc_setup_offload_act()
3867 struct tc_action *act; in tc_setup_action() local
3881 spin_lock_bh(&act->tcfa_lock); in tc_setup_action()
3910 spin_unlock_bh(&act->tcfa_lock); in tc_setup_action()
3937 struct tc_action *act; in tcf_exts_num_actions() local
[all …]
A Dact_csum.c676 static size_t tcf_csum_get_fill_size(const struct tc_action *act) in tcf_csum_get_fill_size() argument
681 static int tcf_csum_offload_act_setup(struct tc_action *act, void *entry_data, in tcf_csum_offload_act_setup() argument
689 entry->csum_flags = tcf_csum_update_flags(act); in tcf_csum_offload_act_setup()
704 .act = tcf_csum_act,
A Dact_ct.c1600 static int tcf_ct_offload_act_setup(struct tc_action *act, void *entry_data, in tcf_ct_offload_act_setup() argument
1607 if (tcf_ct_helper(act)) in tcf_ct_offload_act_setup()
1611 entry->ct.action = tcf_ct_action(act); in tcf_ct_offload_act_setup()
1612 entry->ct.zone = tcf_ct_zone(act); in tcf_ct_offload_act_setup()
1613 entry->ct.flow_table = tcf_ct_ft(act); in tcf_ct_offload_act_setup()
1628 .act = tcf_ct_act,
A Dact_simple.c206 .act = tcf_simp_act,
A Dact_connmark.c241 .act = tcf_connmark_act,
/net/ax25/
A DKconfig59 If you say Y here, your Linux box will act as a DAMA slave; this is
61 configuration. Linux cannot yet act as a DAMA server. This option
74 If you say Y here, your Linux box will act as a DAMA master; this is
76 configuration. Linux cannot yet act as a DAMA server. This option
/net/atm/
A DKconfig47 LANE client can also act as an proxy client bridging packets between
64 This device will act like an ethernet from the kernels point of view,
/net/appletalk/
A DKconfig12 so that your Linux box can act as a print and file server for Macs as
/net/netfilter/
A Dnf_conntrack_h323_asn1.c24 #define IFTHEN(cond, act) if(cond){act;} argument
32 #define IFTHEN(cond, act) argument
/net/dsa/
A Duser.c1378 struct flow_action_entry *act; in dsa_user_add_cls_matchall_mirred() local
1397 act = &cls->rule->action.entries[0]; in dsa_user_add_cls_matchall_mirred()
1399 if (!act->dev) in dsa_user_add_cls_matchall_mirred()
1402 if (dsa_user_dev_check(act->dev)) { in dsa_user_add_cls_matchall_mirred()
1412 to_dp = dsa_user_to_port(act->dev); in dsa_user_add_cls_matchall_mirred()
1465 struct flow_action_entry *act; in dsa_user_add_cls_matchall_police() local
1491 act = &cls->rule->action.entries[0]; in dsa_user_add_cls_matchall_police()
1500 policer->rate_bytes_per_sec = act->police.rate_bytes_ps; in dsa_user_add_cls_matchall_police()
1501 policer->burst = act->police.burst; in dsa_user_add_cls_matchall_police()
/net/hsr/
A DKconfig12 If you say Y here, then your Linux box will be able to act as a
/net/bridge/
A DKconfig12 If you say Y here, then your Linux box will be able to act as an
/net/bpf/
A Dtest_run.c289 int err = 0, act, ret, i, nframes = 0, batch_sz; in xdp_test_run_batch() local
318 act = bpf_prog_run_xdp(prog, ctx); in xdp_test_run_batch()
329 switch (act) { in xdp_test_run_batch()
349 bpf_warn_invalid_xdp_action(NULL, prog, act); in xdp_test_run_batch()

Completed in 63 milliseconds

12