Home
last modified time | relevance | path

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

12

/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
Dcxgb4_ethtool.c1821 u32 filter_id; in cxgb4_ntuple_del_filter() local
1842 filter_id = filter_info->loc_array[cmd->fs.location]; in cxgb4_ntuple_del_filter()
1843 f = cxgb4_get_filter_entry(adapter, filter_id); in cxgb4_ntuple_del_filter()
1846 filter_id -= adapter->tids.hpftid_base; in cxgb4_ntuple_del_filter()
1848 filter_id -= (adapter->tids.ftid_base - adapter->tids.nhpftids); in cxgb4_ntuple_del_filter()
1850 ret = cxgb4_flow_rule_destroy(dev, f->fs.tc_prio, &f->fs, filter_id); in cxgb4_ntuple_del_filter()
/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()
Dionic_rx_filter.h17 u32 filter_id; member
Dionic_lif.c1017 u32 filter_id; in ionic_lif_del_hwstamp_rxfilt() local
1028 filter_id = f->filter_id; in ionic_lif_del_hwstamp_rxfilt()
1033 netdev_dbg(lif->netdev, "rx_filter del RXSTEER (id %d)\n", filter_id); in ionic_lif_del_hwstamp_rxfilt()
1035 ctx.cmd.rx_filter_del.filter_id = cpu_to_le32(filter_id); in ionic_lif_del_hwstamp_rxfilt()
1039 netdev_dbg(lif->netdev, "failed to delete rx_filter RXSTEER (id %d)\n", filter_id); in ionic_lif_del_hwstamp_rxfilt()
1357 addr, f->filter_id); in ionic_lif_addr_del()
1360 ctx.cmd.rx_filter_del.filter_id = cpu_to_le32(f->filter_id); in ionic_lif_addr_del()
1929 vid, f->filter_id); in ionic_vlan_rx_kill_vid()
1931 ctx.cmd.rx_filter_del.filter_id = cpu_to_le32(f->filter_id); in ionic_vlan_rx_kill_vid()
/drivers/net/ethernet/sfc/
Defx.h123 u32 filter_id) in efx_filter_remove_id_safe() argument
125 return efx->type->filter_remove_safe(efx, priority, filter_id); in efx_filter_remove_id_safe()
141 u32 filter_id, struct efx_filter_spec *spec) in efx_filter_get_filter_safe() argument
143 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()
574 u32 filter_id, bool by_index) in efx_mcdi_filter_remove_internal() argument
576 unsigned int filter_idx = efx_mcdi_filter_get_unsafe_id(filter_id); in efx_mcdi_filter_remove_internal()
589 efx_mcdi_filter_get_unsafe_pri(filter_id))) in efx_mcdi_filter_remove_internal()
682 u32 filter_id) in efx_mcdi_filter_remove_safe() argument
690 rc = efx_mcdi_filter_remove_internal(efx, 1U << priority, filter_id, in efx_mcdi_filter_remove_safe()
[all …]
Drx_common.c697 if (rule->filter_id == EFX_ARFS_FILTER_ID_PENDING) { in efx_rps_check_rule()
701 if (rule->filter_id == EFX_ARFS_FILTER_ID_ERROR) { in efx_rps_check_rule()
705 rule->filter_id = EFX_ARFS_FILTER_ID_REMOVING; in efx_rps_check_rule()
708 } else if (WARN_ON(rule->filter_id != filter_idx)) { /* can't happen */ in efx_rps_check_rule()
795 if (rule->filter_id != EFX_ARFS_FILTER_ID_REMOVING) in efx_rps_hash_del()
900 rule->filter_id = EFX_ARFS_FILTER_ID_ERROR; in efx_filter_rfs_work()
902 rule->filter_id = rc; in efx_filter_rfs_work()
1034 rule->filter_id >= EFX_ARFS_FILTER_ID_PENDING) in efx_filter_rfs()
1037 rule->filter_id = EFX_ARFS_FILTER_ID_PENDING; in efx_filter_rfs()
Dmcdi_filters.h126 u32 filter_id);
129 u32 filter_id, struct efx_filter_spec *spec);
Dnic.h344 u32 filter_id);
346 enum efx_filter_priority priority, u32 filter_id,
Dnet_driver.h801 s32 filter_id; member
1445 u32 filter_id);
1448 u32 filter_id, struct efx_filter_spec *);
Dfarch.c2591 u32 filter_id) in efx_farch_filter_remove_safe() argument
2599 table_id = efx_farch_filter_id_table_id(filter_id); in efx_farch_filter_remove_safe()
2604 filter_idx = efx_farch_filter_id_index(filter_id); in efx_farch_filter_remove_safe()
2617 u32 filter_id, struct efx_filter_spec *spec_buf) in efx_farch_filter_get_safe() argument
2628 table_id = efx_farch_filter_id_table_id(filter_id); in efx_farch_filter_get_safe()
2633 filter_idx = efx_farch_filter_id_index(filter_id); in efx_farch_filter_get_safe()
2939 rule->filter_id = EFX_ARFS_FILTER_ID_REMOVING; in efx_farch_filter_rfs_expire_one()
/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,
Dnet_driver.h1110 u32 filter_id);
1113 u32 filter_id, struct ef4_filter_spec *);
Dfarch.c2524 u32 filter_id) in ef4_farch_filter_remove_safe() argument
2532 table_id = ef4_farch_filter_id_table_id(filter_id); in ef4_farch_filter_remove_safe()
2537 filter_idx = ef4_farch_filter_id_index(filter_id); in ef4_farch_filter_remove_safe()
2550 u32 filter_id, struct ef4_filter_spec *spec_buf) in ef4_farch_filter_get_safe() argument
2559 table_id = ef4_farch_filter_id_table_id(filter_id); in ef4_farch_filter_get_safe()
2564 filter_idx = ef4_farch_filter_id_index(filter_id); in ef4_farch_filter_get_safe()
/drivers/net/ethernet/mellanox/mlx5/core/
Den_arfs.c89 int filter_id; member
408 arfs_rule->filter_id)) { in arfs_may_expire_flow()
566 __func__, arfs_rule->filter_id, arfs_rule->rxq, in arfs_add_rule()
654 rule->filter_id = priv->fs.arfs->last_filter_id++ % RPS_NO_FILTER; in arfs_alloc_rule()
722 return arfs_rule->filter_id; in mlx5e_rx_flow_steer()
734 return arfs_rule->filter_id; in mlx5e_rx_flow_steer()
/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()
/drivers/media/usb/as102/
Das10x_cmd_stream.c61 filter->idx = prsp->body.add_pid_filter.rsp.filter_id; in as10x_cmd_add_PID_filter()
/drivers/media/usb/ttusb-budget/
Ddvb-ttusb-budget.c356 static int ttusb_set_filter(struct ttusb *ttusb, int filter_id, in ttusb_set_filter() argument
361 u8 b[] = { 0xaa, 0, 0x24, 0x1a, filter_id, associated_chan, in ttusb_set_filter()
374 static int ttusb_del_filter(struct ttusb *ttusb, int filter_id) in ttusb_del_filter() argument
378 u8 b[] = { 0xaa, ++ttusb->c, 0x25, 1, filter_id }; in ttusb_del_filter()

12