Home
last modified time | relevance | path

Searched refs:filter_id (Results 1 – 25 of 39) sorted by relevance

12

/linux-6.6.21/drivers/net/ethernet/chelsio/cxgb4/
Dcxgb4_tc_u32.c161 int filter_id; in cxgb4_config_knode() local
176 filter_id = cxgb4_get_free_ftid(dev, inet_family, false, in cxgb4_config_knode()
178 if (filter_id < 0) { in cxgb4_config_knode()
200 if (filter_id < adapter->tids.nhpftids) in cxgb4_config_knode()
337 ret = cxgb4_set_filter(dev, filter_id, &fs); in cxgb4_config_knode()
346 set_bit(filter_id, t->table[uhtid - 1].tid_map); in cxgb4_config_knode()
355 unsigned int filter_id, max_tids, i, j; in cxgb4_delete_knode() local
371 filter_id = 0; in cxgb4_delete_knode()
372 while (filter_id < max_tids) { in cxgb4_delete_knode()
373 if (filter_id < adapter->tids.nhpftids) { in cxgb4_delete_knode()
[all …]
Dcxgb4_filter.c1534 int iq, ret, filter_id = ftid; in __cxgb4_set_filter() local
1548 if (filter_id != (max_fidx + adapter->tids.nsftids - 1) && in __cxgb4_set_filter()
1549 filter_id >= max_fidx) in __cxgb4_set_filter()
1566 filter_id = ftid - adapter->tids.nhpftids; in __cxgb4_set_filter()
1585 fidx = filter_id & ~0x3; in __cxgb4_set_filter()
1587 fidx = filter_id & ~0x1; in __cxgb4_set_filter()
1589 if (fidx != filter_id && tab[fidx].fs.type) { in __cxgb4_set_filter()
1603 if (filter_id & 0x3) { in __cxgb4_set_filter()
1612 for (fidx = filter_id + 1; fidx < filter_id + 4; in __cxgb4_set_filter()
1626 if (filter_id & 0x1) in __cxgb4_set_filter()
[all …]
Dcxgb4_uld.h286 int __cxgb4_set_filter(struct net_device *dev, int filter_id,
289 int __cxgb4_del_filter(struct net_device *dev, int filter_id,
292 int cxgb4_set_filter(struct net_device *dev, int filter_id,
294 int cxgb4_del_filter(struct net_device *dev, int filter_id,
Dcxgb4_tc_flower.c947 &ch_flower->filter_id); in cxgb4_tc_flower_replace()
963 cxgb4_del_filter(dev, ch_flower->filter_id, &ch_flower->fs); in cxgb4_tc_flower_replace()
1004 &ch_flower->fs, ch_flower->filter_id); in cxgb4_tc_flower_destroy()
1007 ch_flower->filter_id, ret); in cxgb4_tc_flower_destroy()
1031 flower_entry->filter_id, in ch_flower_stats_handler()
1076 ret = cxgb4_get_filter_counters(dev, ch_flower->filter_id, in cxgb4_tc_flower_stats()
Dcxgb4_tc_flower.h54 u32 filter_id; member
/linux-6.6.21/samples/bpf/
Dtest_cgrp2_sock2.c35 int cg_fd, err, ret = EXIT_FAILURE, filter_id = 0, prog_cnt = 0; in main() local
46 filter_id = atoi(argv[3]); in main()
65 if (filter_id >= prog_cnt) { in main()
76 link = bpf_program__attach_cgroup(progs[filter_id], cg_fd); in main()
/linux-6.6.21/drivers/net/ethernet/pensando/ionic/
Dionic_rx_filter.c76 f->filter_id = le32_to_cpu(ctx.comp.rx_filter_add.filter_id); in ionic_rx_filter_replay()
84 key = f->filter_id & IONIC_RX_FILTER_HLISTS_MASK; in ionic_rx_filter_replay()
165 f->filter_id = le32_to_cpu(ctx->comp.rx_filter_add.filter_id); in ionic_rx_filter_save()
169 netdev_dbg(lif->netdev, "rx_filter add filter_id %d\n", f->filter_id); in ionic_rx_filter_save()
178 key = f->filter_id & IONIC_RX_FILTER_HLISTS_MASK; in ionic_rx_filter_save()
491 __func__, ac->vlan.vlan, f->filter_id); in ionic_lif_filter_del()
496 __func__, ac->mac.addr, f->filter_id); in ionic_lif_filter_del()
505 ctx.cmd.rx_filter_del.filter_id = cpu_to_le32(f->filter_id); in ionic_lif_filter_del()
Dionic_debugfs.c245 f->filter_id, f->flow_id, f->state, in lif_filters_show()
250 f->filter_id, f->flow_id, f->state, in lif_filters_show()
255 f->filter_id, f->flow_id, f->state, in lif_filters_show()
261 f->filter_id, f->flow_id, f->state, in lif_filters_show()
Dionic_rx_filter.h17 u32 filter_id; member
/linux-6.6.21/drivers/net/ethernet/sfc/siena/
Defx.h105 u32 filter_id) in efx_filter_remove_id_safe() argument
107 return efx->type->filter_remove_safe(efx, priority, filter_id); in efx_filter_remove_id_safe()
123 u32 filter_id, struct efx_filter_spec *spec) in efx_filter_get_filter_safe() argument
125 return efx->type->filter_get_safe(efx, priority, filter_id, spec); in efx_filter_get_filter_safe()
Drx_common.c686 if (rule->filter_id == EFX_ARFS_FILTER_ID_PENDING) { in efx_siena_rps_check_rule()
690 if (rule->filter_id == EFX_ARFS_FILTER_ID_ERROR) { in efx_siena_rps_check_rule()
694 rule->filter_id = EFX_ARFS_FILTER_ID_REMOVING; in efx_siena_rps_check_rule()
697 } else if (WARN_ON(rule->filter_id != filter_idx)) { /* can't happen */ in efx_siena_rps_check_rule()
785 if (rule->filter_id != EFX_ARFS_FILTER_ID_REMOVING) in efx_siena_rps_hash_del()
888 rule->filter_id = EFX_ARFS_FILTER_ID_ERROR; in efx_filter_rfs_work()
890 rule->filter_id = rc; in efx_filter_rfs_work()
1023 rule->filter_id >= EFX_ARFS_FILTER_ID_PENDING) in efx_siena_filter_rfs()
1026 rule->filter_id = EFX_ARFS_FILTER_ID_PENDING; in efx_siena_filter_rfs()
Dnic.h154 u32 filter_id);
156 enum efx_filter_priority priority, u32 filter_id,
Dnet_driver.h753 s32 filter_id; member
1398 u32 filter_id);
1401 u32 filter_id, struct efx_filter_spec *);
Dfarch.c2593 u32 filter_id) in efx_farch_filter_remove_safe() argument
2601 table_id = efx_farch_filter_id_table_id(filter_id); in efx_farch_filter_remove_safe()
2606 filter_idx = efx_farch_filter_id_index(filter_id); in efx_farch_filter_remove_safe()
2619 u32 filter_id, struct efx_filter_spec *spec_buf) in efx_farch_filter_get_safe() argument
2630 table_id = efx_farch_filter_id_table_id(filter_id); in efx_farch_filter_get_safe()
2635 filter_idx = efx_farch_filter_id_index(filter_id); in efx_farch_filter_get_safe()
2940 rule->filter_id = EFX_ARFS_FILTER_ID_REMOVING; in efx_farch_filter_rfs_expire_one()
/linux-6.6.21/drivers/net/ethernet/sfc/
Defx.h121 u32 filter_id) in efx_filter_remove_id_safe() argument
123 return efx->type->filter_remove_safe(efx, priority, filter_id); in efx_filter_remove_id_safe()
139 u32 filter_id, struct efx_filter_spec *spec) in efx_filter_get_filter_safe() argument
141 return efx->type->filter_get_safe(efx, priority, filter_id, spec); in efx_filter_get_filter_safe()
Dmcdi_filters.c41 static u32 efx_mcdi_filter_get_unsafe_id(u32 filter_id) in efx_mcdi_filter_get_unsafe_id() argument
43 WARN_ON_ONCE(filter_id == EFX_EF10_FILTER_ID_INVALID); in efx_mcdi_filter_get_unsafe_id()
44 return filter_id & (EFX_MCDI_FILTER_TBL_ROWS - 1); in efx_mcdi_filter_get_unsafe_id()
47 static unsigned int efx_mcdi_filter_get_unsafe_pri(u32 filter_id) in efx_mcdi_filter_get_unsafe_pri() argument
49 return filter_id / (EFX_MCDI_FILTER_TBL_ROWS * 2); in efx_mcdi_filter_get_unsafe_pri()
578 u32 filter_id, bool by_index) in efx_mcdi_filter_remove_internal() argument
580 unsigned int filter_idx = efx_mcdi_filter_get_unsafe_id(filter_id); in efx_mcdi_filter_remove_internal()
593 efx_mcdi_filter_get_unsafe_pri(filter_id))) in efx_mcdi_filter_remove_internal()
686 u32 filter_id) in efx_mcdi_filter_remove_safe() argument
694 rc = efx_mcdi_filter_remove_internal(efx, 1U << priority, filter_id, in efx_mcdi_filter_remove_safe()
[all …]
Drx_common.c684 if (rule->filter_id == EFX_ARFS_FILTER_ID_PENDING) { in efx_rps_check_rule()
688 if (rule->filter_id == EFX_ARFS_FILTER_ID_ERROR) { in efx_rps_check_rule()
692 rule->filter_id = EFX_ARFS_FILTER_ID_REMOVING; in efx_rps_check_rule()
695 } else if (WARN_ON(rule->filter_id != filter_idx)) { /* can't happen */ in efx_rps_check_rule()
782 if (rule->filter_id != EFX_ARFS_FILTER_ID_REMOVING) in efx_rps_hash_del()
883 rule->filter_id = EFX_ARFS_FILTER_ID_ERROR; in efx_filter_rfs_work()
885 rule->filter_id = rc; in efx_filter_rfs_work()
1017 rule->filter_id >= EFX_ARFS_FILTER_ID_PENDING) in efx_filter_rfs()
1020 rule->filter_id = EFX_ARFS_FILTER_ID_PENDING; in efx_filter_rfs()
Dmcdi_filters.h127 u32 filter_id);
130 u32 filter_id, struct efx_filter_spec *spec);
Dnet_driver.h783 s32 filter_id; member
1447 u32 filter_id);
1450 u32 filter_id, struct efx_filter_spec *);
/linux-6.6.21/drivers/net/ethernet/sfc/falcon/
Defx.h125 u32 filter_id) in ef4_filter_remove_id_safe() argument
127 return efx->type->filter_remove_safe(efx, priority, filter_id); in ef4_filter_remove_id_safe()
143 u32 filter_id, struct ef4_filter_spec *spec) in ef4_filter_get_filter_safe() argument
145 return efx->type->filter_get_safe(efx, priority, filter_id, spec); in ef4_filter_get_filter_safe()
Dnic.h413 u32 filter_id);
415 enum ef4_filter_priority priority, u32 filter_id,
/linux-6.6.21/drivers/net/ethernet/mellanox/mlx5/core/
Den_arfs.c88 int filter_id; member
430 arfs_rule->filter_id)) { in arfs_may_expire_flow()
594 __func__, arfs_rule->filter_id, arfs_rule->rxq, in arfs_add_rule()
690 rule->filter_id = arfs->last_filter_id++ % RPS_NO_FILTER; in arfs_alloc_rule()
759 return arfs_rule->filter_id; in mlx5e_rx_flow_steer()
774 return arfs_rule->filter_id; in mlx5e_rx_flow_steer()
/linux-6.6.21/drivers/net/ethernet/cisco/enic/
Denic_clsf.h11 int enic_delfltr(struct enic *enic, u16 filter_id);
Denic_clsf.c59 int enic_delfltr(struct enic *enic, u16 filter_id) in enic_delfltr() argument
64 ret = vnic_dev_classifier(enic->vdev, CLSF_DEL, &filter_id, NULL); in enic_delfltr()
/linux-6.6.21/drivers/media/usb/as102/
Das10x_cmd_stream.c61 filter->idx = prsp->body.add_pid_filter.rsp.filter_id; in as10x_cmd_add_PID_filter()

12