/linux-master/drivers/net/ethernet/mellanox/mlx5/core/en/tc/act/ |
H A D | mark.c | 4 #include "act.h" 9 const struct flow_action_entry *act, 13 if (act->mark & ~MLX5E_TC_FLOW_ID_MASK) { 23 const struct flow_action_entry *act, 27 attr->nic_attr->flow_tag = act->mark; 8 tc_act_can_offload_mark(struct mlx5e_tc_act_parse_state *parse_state, const struct flow_action_entry *act, int act_index, struct mlx5_flow_attr *attr) argument 22 tc_act_parse_mark(struct mlx5e_tc_act_parse_state *parse_state, const struct flow_action_entry *act, struct mlx5e_priv *priv, struct mlx5_flow_attr *attr) argument
|
H A D | tun.c | 4 #include "act.h" 10 const struct flow_action_entry *act, 14 if (!act->tunnel) { 25 const struct flow_action_entry *act, 29 parse_state->tun_info = act->tunnel; 37 const struct flow_action_entry *act, 9 tc_act_can_offload_tun_encap(struct mlx5e_tc_act_parse_state *parse_state, const struct flow_action_entry *act, int act_index, struct mlx5_flow_attr *attr) argument 24 tc_act_parse_tun_encap(struct mlx5e_tc_act_parse_state *parse_state, const struct flow_action_entry *act, struct mlx5e_priv *priv, struct mlx5_flow_attr *attr) argument 36 tc_act_parse_tun_decap(struct mlx5e_tc_act_parse_state *parse_state, const struct flow_action_entry *act, struct mlx5e_priv *priv, struct mlx5_flow_attr *attr) argument
|
H A D | sample.c | 5 #include "act.h" 7 #include "en/tc/act/sample.h" 11 const struct flow_action_entry *act, 17 sample_attr->rate = act->sample.rate; 18 sample_attr->group_num = act->sample.psample_group->group_num; 20 if (act->sample.truncate) 21 sample_attr->trunc_size = act->sample.trunc_size; 42 const struct flow_action_entry *act, 10 tc_act_parse_sample(struct mlx5e_tc_act_parse_state *parse_state, const struct flow_action_entry *act, struct mlx5e_priv *priv, struct mlx5_flow_attr *attr) argument 41 tc_act_is_multi_table_act_sample(struct mlx5e_priv *priv, const struct flow_action_entry *act, struct mlx5_flow_attr *attr) argument
|
H A D | ct.c | 4 #include "act.h" 10 const struct flow_action_entry *act, 16 err = mlx5_tc_ct_parse_action(parse_state->ct_priv, attr, act, parse_state->extack); 43 const struct flow_action_entry *act, 46 if (act->ct.action & TCA_CT_ACT_CLEAR) 53 tc_act_is_missable_ct(const struct flow_action_entry *act) argument 55 return !(act->ct.action & TCA_CT_ACT_CLEAR); 9 tc_act_parse_ct(struct mlx5e_tc_act_parse_state *parse_state, const struct flow_action_entry *act, struct mlx5e_priv *priv, struct mlx5_flow_attr *attr) argument 42 tc_act_is_multi_table_act_ct(struct mlx5e_priv *priv, const struct flow_action_entry *act, struct mlx5_flow_attr *attr) argument
|
H A D | mpls.c | 5 #include "act.h" 10 const struct flow_action_entry *act, 18 act->mpls_push.proto != htons(ETH_P_MPLS_UC)) { 28 const struct flow_action_entry *act) 30 mpls_info->label = act->mpls_push.label; 31 mpls_info->tc = act->mpls_push.tc; 32 mpls_info->bos = act->mpls_push.bos; 33 mpls_info->ttl = act->mpls_push.ttl; 38 const struct flow_action_entry *act, 43 copy_mpls_info(&parse_state->mpls_info, act); 9 tc_act_can_offload_mpls_push(struct mlx5e_tc_act_parse_state *parse_state, const struct flow_action_entry *act, int act_index, struct mlx5_flow_attr *attr) argument 27 copy_mpls_info(struct mlx5e_mpls_info *mpls_info, const struct flow_action_entry *act) argument 37 tc_act_parse_mpls_push(struct mlx5e_tc_act_parse_state *parse_state, const struct flow_action_entry *act, struct mlx5e_priv *priv, struct mlx5_flow_attr *attr) argument 49 tc_act_can_offload_mpls_pop(struct mlx5e_tc_act_parse_state *parse_state, const struct flow_action_entry *act, int act_index, struct mlx5_flow_attr *attr) argument 79 tc_act_parse_mpls_pop(struct mlx5e_tc_act_parse_state *parse_state, const struct flow_action_entry *act, struct mlx5e_priv *priv, struct mlx5_flow_attr *attr) argument [all...] |
H A D | ptype.c | 4 #include "act.h" 9 const struct flow_action_entry *act, 15 if (act->ptype != PACKET_HOST) { 8 tc_act_parse_ptype(struct mlx5e_tc_act_parse_state *parse_state, const struct flow_action_entry *act, struct mlx5e_priv *priv, struct mlx5_flow_attr *attr) argument
|
H A D | mirred_nic.c | 4 #include "act.h" 9 const struct flow_action_entry *act, 15 struct net_device *out_dev = act->dev; 18 if (act->id != FLOW_ACTION_REDIRECT) 37 const struct flow_action_entry *act, 41 attr->parse_attr->mirred_ifindex[0] = act->dev->ifindex; 8 tc_act_can_offload_mirred_nic(struct mlx5e_tc_act_parse_state *parse_state, const struct flow_action_entry *act, int act_index, struct mlx5_flow_attr *attr) argument 36 tc_act_parse_mirred_nic(struct mlx5e_tc_act_parse_state *parse_state, const struct flow_action_entry *act, struct mlx5e_priv *priv, struct mlx5_flow_attr *attr) argument
|
H A D | police.c | 4 #include "act.h" 23 static int police_act_validate(const struct flow_action_entry *act, argument 26 if (!police_act_validate_control(act->police.exceed.act_id, extack) || 27 !police_act_validate_control(act->police.notexceed.act_id, extack)) 30 if (act->police.peakrate_bytes_ps || 31 act->police.avrate || act->police.overhead) { 42 const struct flow_action_entry *act, 48 err = police_act_validate(act, parse_state->extack); 56 fill_meter_params_from_act(const struct flow_action_entry *act, argument 41 tc_act_can_offload_police(struct mlx5e_tc_act_parse_state *parse_state, const struct flow_action_entry *act, int act_index, struct mlx5_flow_attr *attr) argument 79 tc_act_parse_police(struct mlx5e_tc_act_parse_state *parse_state, const struct flow_action_entry *act, struct mlx5e_priv *priv, struct mlx5_flow_attr *attr) argument 108 tc_act_is_multi_table_act_police(struct mlx5e_priv *priv, const struct flow_action_entry *act, struct mlx5_flow_attr *attr) argument 116 tc_act_police_offload(struct mlx5e_priv *priv, struct flow_offload_action *fl_act, struct flow_action_entry *act) argument 192 tc_act_police_get_branch_ctrl(const struct flow_action_entry *act, struct mlx5e_tc_act_branch_ctrl *cond_true, struct mlx5e_tc_act_branch_ctrl *cond_false) argument [all...] |
H A D | drop.c | 4 #include "act.h" 9 const struct flow_action_entry *act, 8 tc_act_parse_drop(struct mlx5e_tc_act_parse_state *parse_state, const struct flow_action_entry *act, struct mlx5e_priv *priv, struct mlx5_flow_attr *attr) argument
|
H A D | accept.c | 4 #include "act.h" 9 const struct flow_action_entry *act, 8 tc_act_parse_accept(struct mlx5e_tc_act_parse_state *parse_state, const struct flow_action_entry *act, struct mlx5e_priv *priv, struct mlx5_flow_attr *attr) argument
|
H A D | csum.c | 5 #include "act.h" 40 const struct flow_action_entry *act, 47 act->csum_flags, parse_state->extack); 52 const struct flow_action_entry *act, 39 tc_act_can_offload_csum(struct mlx5e_tc_act_parse_state *parse_state, const struct flow_action_entry *act, int act_index, struct mlx5_flow_attr *attr) argument 51 tc_act_parse_csum(struct mlx5e_tc_act_parse_state *parse_state, const struct flow_action_entry *act, struct mlx5e_priv *priv, struct mlx5_flow_attr *attr) argument
|
H A D | goto.c | 4 #include "act.h" 12 const struct flow_action_entry *act, 18 u32 dest_chain = act->chain_index; 61 const struct flow_action_entry *act, 68 if (validate_goto_chain(flow->priv, flow, attr, act, extack)) 76 const struct flow_action_entry *act, 81 attr->dest_chain = act->chain_index; 9 validate_goto_chain(struct mlx5e_priv *priv, struct mlx5e_tc_flow *flow, struct mlx5_flow_attr *attr, const struct flow_action_entry *act, struct netlink_ext_ack *extack) argument 60 tc_act_can_offload_goto(struct mlx5e_tc_act_parse_state *parse_state, const struct flow_action_entry *act, int act_index, struct mlx5_flow_attr *attr) argument 75 tc_act_parse_goto(struct mlx5e_tc_act_parse_state *parse_state, const struct flow_action_entry *act, struct mlx5e_priv *priv, struct mlx5_flow_attr *attr) argument
|
H A D | pedit.c | 5 #include "act.h" 47 const struct flow_action_entry *act, int namespace, 51 u8 cmd = (act->id == FLOW_ACTION_MANGLE) ? TCA_PEDIT_KEY_EX_CMD_SET : 53 u8 htype = act->mangle.htype; 67 mask = act->mangle.mask; 68 val = act->mangle.val; 69 offset = act->mangle.offset; 84 const struct flow_action_entry *act, 95 err = mlx5e_tc_act_pedit_parse_action(flow->priv, act, ns_type, attr->parse_attr->hdrs, 46 mlx5e_tc_act_pedit_parse_action(struct mlx5e_priv *priv, const struct flow_action_entry *act, int namespace, struct pedit_headers_action *hdrs, struct netlink_ext_ack *extack) argument 83 tc_act_parse_pedit(struct mlx5e_tc_act_parse_state *parse_state, const struct flow_action_entry *act, struct mlx5e_priv *priv, struct mlx5_flow_attr *attr) argument
|
/linux-master/tools/testing/selftests/filesystems/ |
H A D | dnotify_test.c | 18 struct sigaction act; local 21 act.sa_sigaction = handler; 22 sigemptyset(&act.sa_mask); 23 act.sa_flags = SA_SIGINFO; 24 sigaction(SIGRTMIN + 1, &act, NULL);
|
/linux-master/tools/testing/selftests/powerpc/tm/ |
H A D | tm-signal-msr-resv.c | 51 struct sigaction act; local 55 act.sa_sigaction = signal_usr1; 56 sigemptyset(&act.sa_mask); 57 act.sa_flags = SA_SIGINFO; 58 if (sigaction(SIGUSR1, &act, NULL) < 0) {
|
/linux-master/tools/testing/selftests/clone3/ |
H A D | clone3_clear_sighand.c | 47 struct sigaction act; local 60 act.sa_handler = nop_handler; 61 ret = sigemptyset(&act.sa_mask); 66 act.sa_flags = 0; 69 ret = sigaction(SIGUSR1, &act, NULL); 72 "%s - sigaction(SIGUSR1, &act, NULL) failed\n", 76 ret = sigaction(SIGUSR2, &act, NULL); 79 "%s - sigaction(SIGUSR2, &act, NULL) failed\n", 90 ret = sigaction(SIGUSR1, NULL, &act); 94 if (act [all...] |
/linux-master/include/net/tc_act/ |
H A D | tc_police.h | 47 static inline bool is_tcf_police(const struct tc_action *act) argument 50 if (act->ops && act->ops->id == TCA_ID_POLICE) 56 static inline u64 tcf_police_rate_bytes_ps(const struct tc_action *act) argument 58 struct tcf_police *police = to_police(act); 66 static inline u32 tcf_police_burst(const struct tc_action *act) argument 68 struct tcf_police *police = to_police(act); 104 static inline u64 tcf_police_rate_pkt_ps(const struct tc_action *act) argument 106 struct tcf_police *police = to_police(act); 114 static inline u32 tcf_police_burst_pkt(const struct tc_action *act) argument 152 tcf_police_tcfp_mtu(const struct tc_action *act) argument 162 tcf_police_peakrate_bytes_ps(const struct tc_action *act) argument 172 tcf_police_tcfp_ewma_rate(const struct tc_action *act) argument 182 tcf_police_rate_overhead(const struct tc_action *act) argument [all...] |
/linux-master/tools/testing/selftests/powerpc/signal/ |
H A D | sig_sc_double_restart.c | 99 struct sigaction act; local 102 memset(&act, 0, sizeof(act)); 103 sigaddset(&act.sa_mask, SIGUSR2); 104 act.sa_handler = SIGUSR1_handler; 105 act.sa_flags = SA_RESTART; 106 if (sigaction(SIGUSR1, &act, NULL) == -1) { 111 memset(&act, 0, sizeof(act)); 112 act [all...] |
H A D | signal.c | 39 struct sigaction act; local 43 act.sa_handler = signal_handler; 44 act.sa_flags = 0; 45 sigemptyset(&act.sa_mask); 46 if (sigaction(SIGUSR1, &act, NULL) < 0) { 50 if (sigaction(SIGALRM, &act, NULL) < 0) {
|
H A D | signal_tm.c | 44 struct sigaction act; local 46 act.sa_handler = signal_handler; 47 act.sa_flags = 0; 48 sigemptyset(&act.sa_mask); 49 if (sigaction(SIGUSR1, &act, NULL) < 0) { 53 if (sigaction(SIGALRM, &act, NULL) < 0) {
|
/linux-master/arch/mips/kernel/ |
H A D | signal32.c | 39 SYSCALL_DEFINE3(32_sigaction, long, sig, const struct compat_sigaction __user *, act, 46 if (act) { 50 if (!access_ok(act, sizeof(*act))) 52 err |= __get_user(handler, &act->sa_handler); 54 err |= __get_user(new_ka.sa.sa_flags, &act->sa_flags); 55 err |= __get_user(mask, &act->sa_mask.sig[0]); 62 ret = do_sigaction(sig, act ? &new_ka : NULL, oact ? &old_ka : NULL);
|
/linux-master/tools/testing/selftests/x86/ |
H A D | nx_stack.c | 164 struct sigaction act = {}; local 165 sigemptyset(&act.sa_mask); 166 act.sa_flags = SA_SIGINFO; 167 act.sa_sigaction = &sigsegv; 168 int rv = sigaction(SIGSEGV, &act, NULL); 172 struct sigaction act = {}; local 173 sigemptyset(&act.sa_mask); 174 act.sa_flags = SA_SIGINFO; 175 act.sa_sigaction = &sigtrap; 176 int rv = sigaction(SIGTRAP, &act, NUL [all...] |
/linux-master/include/net/ |
H A D | tc_wrapper.h | 53 if (a->ops->act == tcf_gact_act) 57 if (a->ops->act == tcf_mirred_act) 61 if (a->ops->act == tcf_pedit_act) 65 if (a->ops->act == tcf_skbedit_act) 69 if (a->ops->act == tcf_skbmod_act) 73 if (a->ops->act == tcf_police_act) 77 if (a->ops->act == tcf_bpf_act) 81 if (a->ops->act == tcf_connmark_act) 85 if (a->ops->act == tcf_csum_act) 89 if (a->ops->act [all...] |
/linux-master/drivers/net/ethernet/microchip/lan966x/ |
H A D | lan966x_tc_matchall.c | 9 struct flow_action_entry *act; local 17 act = &f->rule->action.entries[0]; 18 switch (act->id) { 20 return lan966x_police_port_add(port, &f->rule->action, act, 24 return lan966x_mirror_port_add(port, act, f->cookie, 28 act->chain_index, f->cookie,
|
/linux-master/drivers/net/ethernet/sfc/ |
H A D | tc.c | 175 struct efx_tc_action_set *act, bool in_hw) 179 * not still have it in act. 182 efx_mae_free_action_set(efx, act->fw_id); 186 list_del(&act->list); 188 if (act->count) { 189 spin_lock_bh(&act->count->cnt->lock); 190 if (!list_empty(&act->count_user)) 191 list_del(&act->count_user); 192 spin_unlock_bh(&act->count->cnt->lock); 193 efx_tc_flower_put_counter_index(efx, act 174 efx_tc_free_action_set(struct efx_nic *efx, struct efx_tc_action_set *act, bool in_hw) argument 210 struct efx_tc_action_set *act, *next; local 787 efx_tc_flower_action_order_ok(const struct efx_tc_action_set *act, enum efx_tc_action_order new) argument 979 struct efx_tc_lhs_action *act = &rule->lhs_act; local 1076 efx_tc_flower_release_lhs_actions(struct efx_nic *efx, struct efx_tc_lhs_action *act) argument 1122 efx_tc_complete_mac_mangle(struct efx_nic *efx, struct efx_tc_action_set *act, struct efx_tc_mangler_state *mung, struct netlink_ext_ack *extack) argument 1162 efx_tc_pedit_add(struct efx_nic *efx, struct efx_tc_action_set *act, const struct flow_action_entry *fa, struct netlink_ext_ack *extack) argument 1243 efx_tc_mangle(struct efx_nic *efx, struct efx_tc_action_set *act, const struct flow_action_entry *fa, struct efx_tc_mangler_state *mung, struct netlink_ext_ack *extack, struct efx_tc_match *match) argument 1679 struct efx_tc_action_set *act = NULL; local 2080 struct efx_tc_action_set *act = NULL; local 2674 struct efx_tc_action_set *act; local 2749 struct efx_tc_action_set *act; local [all...] |