/linux-6.6.21/drivers/net/ethernet/mellanox/mlx5/core/en/tc/act/ |
D | police.c | 23 static int police_act_validate(const struct flow_action_entry *act, in police_act_validate() argument 26 if (!police_act_validate_control(act->police.exceed.act_id, extack) || in police_act_validate() 27 !police_act_validate_control(act->police.notexceed.act_id, extack)) in police_act_validate() 30 if (act->police.peakrate_bytes_ps || in police_act_validate() 31 act->police.avrate || act->police.overhead) { in police_act_validate() 42 const struct flow_action_entry *act, in tc_act_can_offload_police() argument 48 err = police_act_validate(act, parse_state->extack); in tc_act_can_offload_police() 56 fill_meter_params_from_act(const struct flow_action_entry *act, in fill_meter_params_from_act() argument 59 params->index = act->hw_index; in fill_meter_params_from_act() 60 if (act->police.rate_bytes_ps) { in fill_meter_params_from_act() [all …]
|
D | mpls.c | 10 const struct flow_action_entry *act, in tc_act_can_offload_mpls_push() argument 18 act->mpls_push.proto != htons(ETH_P_MPLS_UC)) { in tc_act_can_offload_mpls_push() 28 const struct flow_action_entry *act) in copy_mpls_info() argument 30 mpls_info->label = act->mpls_push.label; in copy_mpls_info() 31 mpls_info->tc = act->mpls_push.tc; in copy_mpls_info() 32 mpls_info->bos = act->mpls_push.bos; in copy_mpls_info() 33 mpls_info->ttl = act->mpls_push.ttl; in copy_mpls_info() 38 const struct flow_action_entry *act, in tc_act_parse_mpls_push() argument 43 copy_mpls_info(&parse_state->mpls_info, act); in tc_act_parse_mpls_push() 50 const struct flow_action_entry *act, in tc_act_can_offload_mpls_pop() argument [all …]
|
D | sample.c | 11 const struct flow_action_entry *act, in tc_act_parse_sample() argument 17 sample_attr->rate = act->sample.rate; in tc_act_parse_sample() 18 sample_attr->group_num = act->sample.psample_group->group_num; in tc_act_parse_sample() 20 if (act->sample.truncate) in tc_act_parse_sample() 21 sample_attr->trunc_size = act->sample.trunc_size; in tc_act_parse_sample() 42 const struct flow_action_entry *act, in tc_act_is_multi_table_act_sample() argument
|
D | vlan.c | 34 const struct flow_action_entry *act, in parse_tc_vlan_action() argument 52 switch (act->id) { in parse_tc_vlan_action() 60 attr->vlan_vid[vlan_idx] = act->vlan.vid; in parse_tc_vlan_action() 61 attr->vlan_prio[vlan_idx] = act->vlan.prio; in parse_tc_vlan_action() 62 attr->vlan_proto[vlan_idx] = act->vlan.proto; in parse_tc_vlan_action() 78 memcpy(attr->eth.h_dest, act->vlan_push_eth.dst, ETH_ALEN); in parse_tc_vlan_action() 79 memcpy(attr->eth.h_source, act->vlan_push_eth.src, ETH_ALEN); in parse_tc_vlan_action() 146 const struct flow_action_entry *act, in tc_act_parse_vlan() argument 153 if (act->id == FLOW_ACTION_VLAN_PUSH && in tc_act_parse_vlan() 157 err = mlx5e_tc_act_vlan_add_rewrite_action(priv, MLX5_FLOW_NAMESPACE_FDB, act, in tc_act_parse_vlan() [all …]
|
D | ct.c | 10 const struct flow_action_entry *act, in tc_act_parse_ct() argument 16 err = mlx5_tc_ct_parse_action(parse_state->ct_priv, attr, act, parse_state->extack); in tc_act_parse_ct() 43 const struct flow_action_entry *act, in tc_act_is_multi_table_act_ct() argument 46 if (act->ct.action & TCA_CT_ACT_CLEAR) in tc_act_is_multi_table_act_ct() 53 tc_act_is_missable_ct(const struct flow_action_entry *act) in tc_act_is_missable_ct() argument 55 return !(act->ct.action & TCA_CT_ACT_CLEAR); in tc_act_is_missable_ct()
|
D | pedit.c | 47 const struct flow_action_entry *act, int namespace, in mlx5e_tc_act_pedit_parse_action() argument 51 u8 cmd = (act->id == FLOW_ACTION_MANGLE) ? 0 : 1; in mlx5e_tc_act_pedit_parse_action() 52 u8 htype = act->mangle.htype; in mlx5e_tc_act_pedit_parse_action() 66 mask = act->mangle.mask; in mlx5e_tc_act_pedit_parse_action() 67 val = act->mangle.val; in mlx5e_tc_act_pedit_parse_action() 68 offset = act->mangle.offset; in mlx5e_tc_act_pedit_parse_action() 83 const struct flow_action_entry *act, in tc_act_parse_pedit() argument 94 err = mlx5e_tc_act_pedit_parse_action(flow->priv, act, ns_type, attr->parse_attr->hdrs, in tc_act_parse_pedit()
|
/linux-6.6.21/include/net/tc_act/ |
D | tc_police.h | 47 static inline bool is_tcf_police(const struct tc_action *act) in is_tcf_police() argument 50 if (act->ops && act->ops->id == TCA_ID_POLICE) in is_tcf_police() 56 static inline u64 tcf_police_rate_bytes_ps(const struct tc_action *act) in tcf_police_rate_bytes_ps() argument 58 struct tcf_police *police = to_police(act); in tcf_police_rate_bytes_ps() 66 static inline u32 tcf_police_burst(const struct tc_action *act) in tcf_police_burst() argument 68 struct tcf_police *police = to_police(act); in tcf_police_burst() 104 static inline u64 tcf_police_rate_pkt_ps(const struct tc_action *act) in tcf_police_rate_pkt_ps() argument 106 struct tcf_police *police = to_police(act); in tcf_police_rate_pkt_ps() 114 static inline u32 tcf_police_burst_pkt(const struct tc_action *act) in tcf_police_burst_pkt() argument 116 struct tcf_police *police = to_police(act); in tcf_police_burst_pkt() [all …]
|
/linux-6.6.21/drivers/net/ethernet/sfc/ |
D | tc.c | 175 struct efx_tc_action_set *act, bool in_hw) in efx_tc_free_action_set() argument 182 efx_mae_free_action_set(efx, act->fw_id); in efx_tc_free_action_set() 186 list_del(&act->list); in efx_tc_free_action_set() 188 if (act->count) { in efx_tc_free_action_set() 189 spin_lock_bh(&act->count->cnt->lock); in efx_tc_free_action_set() 190 if (!list_empty(&act->count_user)) in efx_tc_free_action_set() 191 list_del(&act->count_user); in efx_tc_free_action_set() 192 spin_unlock_bh(&act->count->cnt->lock); in efx_tc_free_action_set() 193 efx_tc_flower_put_counter_index(efx, act->count); in efx_tc_free_action_set() 195 if (act->encap_md) { in efx_tc_free_action_set() [all …]
|
/linux-6.6.21/drivers/s390/scsi/ |
D | zfcp_erp.c | 57 static bool zfcp_erp_action_is_running(struct zfcp_erp_action *act) in zfcp_erp_action_is_running() argument 61 list_for_each_entry(curr_act, &act->adapter->erp_running_head, list) in zfcp_erp_action_is_running() 62 if (act == curr_act) in zfcp_erp_action_is_running() 67 static void zfcp_erp_action_ready(struct zfcp_erp_action *act) in zfcp_erp_action_ready() argument 69 struct zfcp_adapter *adapter = act->adapter; in zfcp_erp_action_ready() 71 list_move(&act->list, &adapter->erp_ready_head); in zfcp_erp_action_ready() 72 zfcp_dbf_rec_run("erardy1", act); in zfcp_erp_action_ready() 74 zfcp_dbf_rec_run("erardy2", act); in zfcp_erp_action_ready() 77 static void zfcp_erp_action_dismiss(struct zfcp_erp_action *act) in zfcp_erp_action_dismiss() argument 79 act->status |= ZFCP_STATUS_ERP_DISMISSED; in zfcp_erp_action_dismiss() [all …]
|
/linux-6.6.21/drivers/net/ethernet/netronome/nfp/flower/ |
D | action.c | 33 const struct flow_action_entry *act, in nfp_fl_push_mpls() argument 43 if (act->mpls_push.bos != ACT_MPLS_BOS_NOT_SET) { in nfp_fl_push_mpls() 44 mpls_lse |= act->mpls_push.bos << MPLS_LS_S_SHIFT; in nfp_fl_push_mpls() 51 if (act->mpls_push.tc != ACT_MPLS_TC_NOT_SET) in nfp_fl_push_mpls() 52 mpls_lse |= act->mpls_push.tc << MPLS_LS_TC_SHIFT; in nfp_fl_push_mpls() 55 mpls_lse |= act->mpls_push.label << MPLS_LS_LABEL_SHIFT; in nfp_fl_push_mpls() 56 mpls_lse |= act->mpls_push.ttl << MPLS_LS_TTL_SHIFT; in nfp_fl_push_mpls() 57 push_mpls->ethtype = act->mpls_push.proto; in nfp_fl_push_mpls() 65 const struct flow_action_entry *act) in nfp_fl_pop_mpls() argument 71 pop_mpls->ethtype = act->mpls_pop.proto; in nfp_fl_pop_mpls() [all …]
|
/linux-6.6.21/include/net/ |
D | tc_wrapper.h | 53 if (a->ops->act == tcf_gact_act) in tc_act() 57 if (a->ops->act == tcf_mirred_act) in tc_act() 61 if (a->ops->act == tcf_pedit_act) in tc_act() 65 if (a->ops->act == tcf_skbedit_act) in tc_act() 69 if (a->ops->act == tcf_skbmod_act) in tc_act() 73 if (a->ops->act == tcf_police_act) in tc_act() 77 if (a->ops->act == tcf_bpf_act) in tc_act() 81 if (a->ops->act == tcf_connmark_act) in tc_act() 85 if (a->ops->act == tcf_csum_act) in tc_act() 89 if (a->ops->act == tcf_ct_act) in tc_act() [all …]
|
/linux-6.6.21/tools/testing/selftests/powerpc/signal/ |
D | sig_sc_double_restart.c | 99 struct sigaction act; in test_restart() local 102 memset(&act, 0, sizeof(act)); in test_restart() 103 sigaddset(&act.sa_mask, SIGUSR2); in test_restart() 104 act.sa_handler = SIGUSR1_handler; in test_restart() 105 act.sa_flags = SA_RESTART; in test_restart() 106 if (sigaction(SIGUSR1, &act, NULL) == -1) { in test_restart() 111 memset(&act, 0, sizeof(act)); in test_restart() 112 act.sa_handler = SIGUSR2_handler; in test_restart() 113 act.sa_flags = SA_RESTART; in test_restart() 114 if (sigaction(SIGUSR2, &act, NULL) == -1) { in test_restart()
|
/linux-6.6.21/tools/testing/selftests/clone3/ |
D | clone3_clear_sighand.c | 51 struct sigaction act; in test_clone3_clear_sighand() local 64 act.sa_handler = nop_handler; in test_clone3_clear_sighand() 65 ret = sigemptyset(&act.sa_mask); in test_clone3_clear_sighand() 70 act.sa_flags = 0; in test_clone3_clear_sighand() 73 ret = sigaction(SIGUSR1, &act, NULL); in test_clone3_clear_sighand() 80 ret = sigaction(SIGUSR2, &act, NULL); in test_clone3_clear_sighand() 94 ret = sigaction(SIGUSR1, NULL, &act); in test_clone3_clear_sighand() 98 if (act.sa_handler != SIG_DFL) in test_clone3_clear_sighand() 101 ret = sigaction(SIGUSR2, NULL, &act); in test_clone3_clear_sighand() 105 if (act.sa_handler != SIG_DFL) in test_clone3_clear_sighand()
|
/linux-6.6.21/tools/testing/selftests/syscall_user_dispatch/ |
D | sud_test.c | 166 struct sigaction act; in TEST() local 174 memset(&act, 0, sizeof(act)); in TEST() 177 act.sa_sigaction = handle_sigsys; in TEST() 178 act.sa_flags = SA_SIGINFO; in TEST() 179 act.sa_mask = mask; in TEST() 181 ret = sigaction(SIGSYS, &act, NULL); in TEST() 221 struct sigaction act; in TEST_SIGNAL() local 230 memset(&act, 0, sizeof(act)); in TEST_SIGNAL() 233 act.sa_sigaction = handle_sigsys; in TEST_SIGNAL() 234 act.sa_flags = SA_SIGINFO; in TEST_SIGNAL() [all …]
|
/linux-6.6.21/drivers/net/ethernet/microchip/lan966x/ |
D | lan966x_police.c | 73 const struct flow_action_entry *act, in lan966x_police_validate() argument 78 if (act->police.exceed.act_id != FLOW_ACTION_DROP) { in lan966x_police_validate() 84 if (act->police.notexceed.act_id != FLOW_ACTION_PIPE && in lan966x_police_validate() 85 act->police.notexceed.act_id != FLOW_ACTION_ACCEPT) { in lan966x_police_validate() 91 if (act->police.notexceed.act_id == FLOW_ACTION_ACCEPT && in lan966x_police_validate() 92 !flow_action_is_last_entry(action, act)) { in lan966x_police_validate() 98 if (act->police.peakrate_bytes_ps || in lan966x_police_validate() 99 act->police.avrate || act->police.overhead) { in lan966x_police_validate() 105 if (act->police.rate_pkt_ps) { in lan966x_police_validate() 134 struct flow_action_entry *act, in lan966x_police_port_add() argument [all …]
|
/linux-6.6.21/drivers/net/ethernet/mellanox/mlxsw/ |
D | core_acl_flex_actions.c | 1144 char *act = mlxsw_afa_block_append_action(block, in mlxsw_afa_block_append_vlan_modify() local 1148 if (IS_ERR(act)) { in mlxsw_afa_block_append_vlan_modify() 1150 return PTR_ERR(act); in mlxsw_afa_block_append_vlan_modify() 1152 mlxsw_afa_vlan_pack(act, MLXSW_AFA_VLAN_VLAN_TAG_CMD_NOP, in mlxsw_afa_block_append_vlan_modify() 1263 char *act = mlxsw_afa_block_append_action_trap(block, in mlxsw_afa_block_append_drop_plain() local 1267 if (IS_ERR(act)) in mlxsw_afa_block_append_drop_plain() 1268 return PTR_ERR(act); in mlxsw_afa_block_append_drop_plain() 1269 mlxsw_afa_trap_pack(act, MLXSW_AFA_TRAP_TRAP_ACTION_TRAP, in mlxsw_afa_block_append_drop_plain() 1284 char *act; in mlxsw_afa_block_append_drop_with_cookie() local 1294 act = mlxsw_afa_block_append_action_trap(block, MLXSW_AFA_TRAPWU_CODE, in mlxsw_afa_block_append_drop_with_cookie() [all …]
|
D | spectrum_flower.c | 19 const struct flow_action_entry *act, in mlxsw_sp_policer_validate() argument 22 if (act->police.exceed.act_id != FLOW_ACTION_DROP) { in mlxsw_sp_policer_validate() 28 if (act->police.notexceed.act_id != FLOW_ACTION_PIPE && in mlxsw_sp_policer_validate() 29 act->police.notexceed.act_id != FLOW_ACTION_ACCEPT) { in mlxsw_sp_policer_validate() 35 if (act->police.notexceed.act_id == FLOW_ACTION_ACCEPT && in mlxsw_sp_policer_validate() 36 !flow_action_is_last_entry(action, act)) { in mlxsw_sp_policer_validate() 42 if (act->police.peakrate_bytes_ps || in mlxsw_sp_policer_validate() 43 act->police.avrate || act->police.overhead) { in mlxsw_sp_policer_validate() 49 if (act->police.rate_pkt_ps) { in mlxsw_sp_policer_validate() 64 const struct flow_action_entry *act; in mlxsw_sp_flower_parse_actions() local [all …]
|
/linux-6.6.21/arch/mips/kernel/ |
D | signal32.c | 38 SYSCALL_DEFINE3(32_sigaction, long, sig, const struct compat_sigaction __user *, act, 45 if (act) { 49 if (!access_ok(act, sizeof(*act))) 51 err |= __get_user(handler, &act->sa_handler); 53 err |= __get_user(new_ka.sa.sa_flags, &act->sa_flags); 54 err |= __get_user(mask, &act->sa_mask.sig[0]); 61 ret = do_sigaction(sig, act ? &new_ka : NULL, oact ? &old_ka : NULL);
|
/linux-6.6.21/drivers/net/ethernet/mediatek/ |
D | mtk_ppe_offload.c | 73 mtk_flow_offload_mangle_eth(const struct flow_action_entry *act, void *eth) in mtk_flow_offload_mangle_eth() argument 75 void *dest = eth + act->mangle.offset; in mtk_flow_offload_mangle_eth() 76 const void *src = &act->mangle.val; in mtk_flow_offload_mangle_eth() 78 if (act->mangle.offset > 8) in mtk_flow_offload_mangle_eth() 81 if (act->mangle.mask == 0xffff) { in mtk_flow_offload_mangle_eth() 86 memcpy(dest, src, act->mangle.mask ? 2 : 4); in mtk_flow_offload_mangle_eth() 120 mtk_flow_mangle_ports(const struct flow_action_entry *act, in mtk_flow_mangle_ports() argument 123 u32 val = ntohl(act->mangle.val); in mtk_flow_mangle_ports() 125 switch (act->mangle.offset) { in mtk_flow_mangle_ports() 127 if (act->mangle.mask == ~htonl(0xffff)) in mtk_flow_mangle_ports() [all …]
|
/linux-6.6.21/drivers/net/ethernet/mellanox/mlx5/core/ |
D | Makefile | 52 mlx5_core-$(CONFIG_MLX5_CLS_ACT) += en/tc/act/act.o en/tc/act/drop.o en/tc/act/trap.o \ 53 en/tc/act/accept.o en/tc/act/mark.o en/tc/act/goto.o \ 54 en/tc/act/tun.o en/tc/act/csum.o en/tc/act/pedit.o \ 55 en/tc/act/vlan.o en/tc/act/vlan_mangle.o en/tc/act/mpls.o \ 56 en/tc/act/mirred.o en/tc/act/mirred_nic.o \ 57 en/tc/act/ct.o en/tc/act/sample.o en/tc/act/ptype.o \ 58 en/tc/act/redirect_ingress.o en/tc/act/police.o
|
/linux-6.6.21/drivers/net/vmxnet3/ |
D | vmxnet3_xdp.c | 257 u32 act; in vmxnet3_run_xdp() local 260 act = bpf_prog_run_xdp(prog, xdp); in vmxnet3_run_xdp() 263 switch (act) { in vmxnet3_run_xdp() 265 return act; in vmxnet3_run_xdp() 274 return act; in vmxnet3_run_xdp() 284 return act; in vmxnet3_run_xdp() 286 bpf_warn_invalid_xdp_action(rq->adapter->netdev, prog, act); in vmxnet3_run_xdp() 289 trace_xdp_exception(rq->adapter->netdev, prog, act); in vmxnet3_run_xdp() 299 return act; in vmxnet3_run_xdp() 333 int act; in vmxnet3_process_xdp_small() local [all …]
|
/linux-6.6.21/net/sched/ |
D | act_gact.c | 226 static size_t tcf_gact_get_fill_size(const struct tc_action *act) in tcf_gact_get_fill_size() argument 231 if (to_gact(act)->tcfg_ptype) in tcf_gact_get_fill_size() 239 static int tcf_gact_offload_act_setup(struct tc_action *act, void *entry_data, in tcf_gact_offload_act_setup() argument 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() 252 } else if (is_tcf_gact_goto_chain(act)) { in tcf_gact_offload_act_setup() 254 entry->chain_index = tcf_gact_goto_chain_index(act); in tcf_gact_offload_act_setup() 255 } else if (is_tcf_gact_continue(act)) { in tcf_gact_offload_act_setup() 258 } else if (is_tcf_gact_reclassify(act)) { in tcf_gact_offload_act_setup() [all …]
|
/linux-6.6.21/drivers/net/dsa/sja1105/ |
D | sja1105_flower.c | 304 const struct flow_action_entry *act, in sja1105_policer_validate() argument 307 if (act->police.exceed.act_id != FLOW_ACTION_DROP) { in sja1105_policer_validate() 313 if (act->police.notexceed.act_id != FLOW_ACTION_PIPE && in sja1105_policer_validate() 314 act->police.notexceed.act_id != FLOW_ACTION_ACCEPT) { in sja1105_policer_validate() 320 if (act->police.notexceed.act_id == FLOW_ACTION_ACCEPT && in sja1105_policer_validate() 321 !flow_action_is_last_entry(action, act)) { in sja1105_policer_validate() 327 if (act->police.peakrate_bytes_ps || in sja1105_policer_validate() 328 act->police.avrate || act->police.overhead) { in sja1105_policer_validate() 334 if (act->police.rate_pkt_ps) { in sja1105_policer_validate() 349 const struct flow_action_entry *act; in sja1105_cls_flower_add() local [all …]
|
/linux-6.6.21/include/trace/events/ |
D | xdp.h | 32 const struct bpf_prog *xdp, u32 act), 34 TP_ARGS(dev, xdp, act), 38 __field(u32, act) 44 __entry->act = act; 50 __print_symbolic(__entry->act, __XDP_ACT_SYM_TAB), 63 __field(u32, act) 71 __entry->act = XDP_TX; 79 __print_symbolic(__entry->act, __XDP_ACT_SYM_TAB), 102 __field(u32, act) 125 __entry->act = XDP_REDIRECT; [all …]
|
/linux-6.6.21/drivers/net/wireless/realtek/rtw89/ |
D | ps.c | 197 enum rtw89_p2pps_action act) in rtw89_tsf32_toggle() argument 199 if (act == RTW89_P2P_ACT_UPDATE || act == RTW89_P2P_ACT_REMOVE) in rtw89_tsf32_toggle() 202 if (act == RTW89_P2P_ACT_INIT) in rtw89_tsf32_toggle() 204 else if (act == RTW89_P2P_ACT_TERMINATE) in rtw89_tsf32_toggle() 212 enum rtw89_p2pps_action act; in rtw89_p2p_disable_all_noa() local 220 act = RTW89_P2P_ACT_TERMINATE; in rtw89_p2p_disable_all_noa() 222 act = RTW89_P2P_ACT_REMOVE; in rtw89_p2p_disable_all_noa() 223 rtw89_tsf32_toggle(rtwdev, rtwvif, act); in rtw89_p2p_disable_all_noa() 224 rtw89_fw_h2c_p2p_act(rtwdev, vif, NULL, act, noa_id); in rtw89_p2p_disable_all_noa() 233 enum rtw89_p2pps_action act; in rtw89_p2p_update_noa() local [all …]
|