Home
last modified time | relevance | path

Searched refs:dissector (Results 1 – 25 of 40) sorted by relevance

12

/openbmc/linux/Documentation/bpf/
H A Dprog_flow_dissector.rst10 Flow dissector is a routine that parses metadata out of the packets. It's
13 BPF flow dissector is an attempt to reimplement C-based flow dissector logic
20 BPF flow dissector programs operate on an ``__sk_buff``. However, only the
22 ``flow_keys`` is ``struct bpf_flow_keys`` and contains flow dissector input
31 Flow dissector BPF program should fill out the rest of the ``struct
42 dissector looks like::
49 +-- flow dissector starts here
58 In case of VLAN, flow dissector can be called with the two different states.
67 +-- flow dissector starts here
86 +-- flow dissector starts here
[all …]
/openbmc/linux/net/netfilter/
H A Dnf_tables_offload.c24 flow->rule->match.dissector = &flow->match.dissector; in nft_flow_rule_alloc()
38 if (match->dissector.used_keys & BIT_ULL(FLOW_DISSECTOR_KEY_CONTROL)) in nft_flow_rule_set_addr_type()
43 match->dissector.used_keys |= BIT_ULL(FLOW_DISSECTOR_KEY_CONTROL); in nft_flow_rule_set_addr_type()
44 match->dissector.offset[FLOW_DISSECTOR_KEY_CONTROL] = in nft_flow_rule_set_addr_type()
62 if (match->dissector.used_keys & BIT_ULL(FLOW_DISSECTOR_KEY_VLAN) && in nft_flow_rule_transfer_vlan()
71 match->dissector.offset[FLOW_DISSECTOR_KEY_CVLAN] = in nft_flow_rule_transfer_vlan()
73 match->dissector.used_keys |= BIT_ULL(FLOW_DISSECTOR_KEY_CVLAN); in nft_flow_rule_transfer_vlan()
74 } else if (match->dissector.used_keys & in nft_flow_rule_transfer_vlan()
82 match->dissector.offset[FLOW_DISSECTOR_KEY_VLAN] = in nft_flow_rule_transfer_vlan()
84 match->dissector.used_keys |= BIT_ULL(FLOW_DISSECTOR_KEY_VLAN); in nft_flow_rule_transfer_vlan()
H A Dnf_flow_table_offload.c29 (__match)->dissector.offset[__type] = \
77 match->dissector.used_keys |= enc_keys; in nf_flow_rule_lwt_match()
166 match->dissector.used_keys |= BIT_ULL(key->control.addr_type); in nf_flow_rule_match()
173 match->dissector.used_keys |= BIT_ULL(FLOW_DISSECTOR_KEY_TCP); in nf_flow_rule_match()
185 match->dissector.used_keys |= BIT_ULL(FLOW_DISSECTOR_KEY_META) | in nf_flow_rule_match()
197 match->dissector.used_keys |= BIT_ULL(FLOW_DISSECTOR_KEY_PORTS); in nf_flow_rule_match()
751 flow_rule->rule->match.dissector = &flow_rule->match.dissector; in nf_flow_offload_rule_alloc()
H A Dnft_cmp.c165 flow->match.dissector.used_keys |= BIT_ULL(reg->key); in __nft_cmp_offload()
166 flow->match.dissector.offset[reg->key] = reg->base_offset; in __nft_cmp_offload()
/openbmc/linux/drivers/net/ethernet/stmicro/stmmac/
H A Dstmmac_tc.c465 struct flow_dissector *dissector = rule->match.dissector; in tc_add_basic_flow() local
469 if (!dissector_uses_key(dissector, FLOW_DISSECTOR_KEY_BASIC)) in tc_add_basic_flow()
483 struct flow_dissector *dissector = rule->match.dissector; in tc_add_ip4_flow() local
490 if (!dissector_uses_key(dissector, FLOW_DISSECTOR_KEY_IPV4_ADDRS)) in tc_add_ip4_flow()
518 struct flow_dissector *dissector = rule->match.dissector; in tc_add_ports_flow() local
526 if (!dissector_uses_key(dissector, FLOW_DISSECTOR_KEY_PORTS)) in tc_add_ports_flow()
668 struct flow_dissector *dissector = rule->match.dissector; in tc_add_vlan_flow() local
683 if (!dissector_uses_key(dissector, FLOW_DISSECTOR_KEY_VLAN)) in tc_add_vlan_flow()
739 struct flow_dissector *dissector = rule->match.dissector; in tc_add_ethtype_flow() local
750 if (!dissector_uses_key(dissector, FLOW_DISSECTOR_KEY_BASIC)) in tc_add_ethtype_flow()
H A Dstmmac_selftests.c1336 struct flow_dissector *dissector; in __stmmac_test_l3filt() local
1352 dissector = kzalloc(sizeof(*dissector), GFP_KERNEL); in __stmmac_test_l3filt()
1353 if (!dissector) { in __stmmac_test_l3filt()
1358 dissector->used_keys |= (1ULL << FLOW_DISSECTOR_KEY_IPV4_ADDRS); in __stmmac_test_l3filt()
1359 dissector->offset[FLOW_DISSECTOR_KEY_IPV4_ADDRS] = 0; in __stmmac_test_l3filt()
1377 rule->match.dissector = dissector; in __stmmac_test_l3filt()
1416 kfree(dissector); in __stmmac_test_l3filt()
1462 struct flow_dissector *dissector; in __stmmac_test_l4filt() local
1478 dissector = kzalloc(sizeof(*dissector), GFP_KERNEL); in __stmmac_test_l4filt()
1479 if (!dissector) { in __stmmac_test_l4filt()
[all …]
/openbmc/linux/drivers/net/ethernet/netronome/nfp/flower/
H A Dconntrack.c59 struct flow_dissector *dissector = rule->match.dissector; in is_pre_ct_flow() local
64 if (dissector->used_keys & BIT_ULL(FLOW_DISSECTOR_KEY_CT)) { in is_pre_ct_flow()
91 struct flow_dissector *dissector = rule->match.dissector; in is_post_ct_flow() local
97 if (dissector->used_keys & BIT_ULL(FLOW_DISSECTOR_KEY_CT)) { in is_post_ct_flow()
242 ovlp_keys = entry1->rule->match.dissector->used_keys & in nfp_ct_merge_check()
243 entry2->rule->match.dissector->used_keys; in nfp_ct_merge_check()
587 struct flow_dissector *dissector = post_ct_entry->rule->match.dissector; in nfp_ct_check_meta() local
593 if (ct_met && (dissector->used_keys & BIT_ULL(FLOW_DISSECTOR_KEY_CT))) { in nfp_ct_check_meta()
1509 memcpy(&nft_match->dissector, flow->rule->match.dissector, in nfp_fl_ct_add_flow()
1510 sizeof(nft_match->dissector)); in nfp_fl_ct_add_flow()
[all …]
H A Doffload.c245 struct flow_dissector *dissector = rule->match.dissector; in nfp_flower_calculate_key_layers() local
253 if (dissector->used_keys & ~NFP_FLOWER_WHITELIST_DISSECTOR) { in nfp_flower_calculate_key_layers()
259 if (dissector->used_keys & NFP_FLOWER_WHITELIST_TUN_DISSECTOR && in nfp_flower_calculate_key_layers()
260 (dissector->used_keys & NFP_FLOWER_WHITELIST_TUN_DISSECTOR_V6_R) in nfp_flower_calculate_key_layers()
262 (dissector->used_keys & NFP_FLOWER_WHITELIST_TUN_DISSECTOR_R) in nfp_flower_calculate_key_layers()
1301 struct flow_dissector *dissector = rule->match.dissector; in offload_pre_check() local
1304 if (dissector->used_keys & BIT_ULL(FLOW_DISSECTOR_KEY_CT)) { in offload_pre_check()
/openbmc/linux/drivers/net/ethernet/freescale/dpaa2/
H A Ddpaa2-switch-flower.c15 struct flow_dissector *dissector = rule->match.dissector; in dpaa2_switch_flower_parse_key() local
19 if (dissector->used_keys & in dpaa2_switch_flower_parse_key()
538 struct flow_dissector *dissector = rule->match.dissector; in dpaa2_switch_flower_parse_mirror_key() local
542 if (dissector->used_keys & in dpaa2_switch_flower_parse_mirror_key()
/openbmc/linux/net/ethtool/
H A Dioctl.c3137 struct flow_dissector dissector; member
3163 flow->rule->match.dissector = &match->dissector; in ethtool_rx_flow_rule_create()
3213 match->dissector.used_keys |= in ethtool_rx_flow_rule_create()
3215 match->dissector.offset[FLOW_DISSECTOR_KEY_IPV4_ADDRS] = in ethtool_rx_flow_rule_create()
3228 match->dissector.used_keys |= in ethtool_rx_flow_rule_create()
3230 match->dissector.offset[FLOW_DISSECTOR_KEY_PORTS] = in ethtool_rx_flow_rule_create()
3236 match->dissector.used_keys |= in ethtool_rx_flow_rule_create()
3238 match->dissector.offset[FLOW_DISSECTOR_KEY_IP] = in ethtool_rx_flow_rule_create()
3265 match->dissector.used_keys |= in ethtool_rx_flow_rule_create()
3267 match->dissector.offset[FLOW_DISSECTOR_KEY_IPV6_ADDRS] = in ethtool_rx_flow_rule_create()
[all …]
/openbmc/linux/drivers/net/ethernet/sfc/
H A Dtc_conntrack.c96 struct flow_dissector *dissector = fr->match.dissector; in efx_tc_ct_parse_match() local
123 if (dissector->used_keys & in efx_tc_ct_parse_match()
133 dissector->used_keys); in efx_tc_ct_parse_match()
H A Dtc.c243 struct flow_dissector *dissector = rule->match.dissector; in efx_tc_flower_parse_match() local
282 if (dissector->used_keys & in efx_tc_flower_parse_match()
301 dissector->used_keys); in efx_tc_flower_parse_match()
310 if (dissector->used_keys & in efx_tc_flower_parse_match()
318 dissector->used_keys); in efx_tc_flower_parse_match()
364 if (dissector->used_keys & in efx_tc_flower_parse_match()
369 dissector->used_keys); in efx_tc_flower_parse_match()
428 } else if (dissector->used_keys & in efx_tc_flower_parse_match()
436 dissector->used_keys); in efx_tc_flower_parse_match()
/openbmc/linux/drivers/net/dsa/sja1105/
H A Dsja1105_flower.c201 struct flow_dissector *dissector = rule->match.dissector; in sja1105_flower_parse_key() local
207 if (dissector->used_keys & in sja1105_flower_parse_key()
/openbmc/linux/net/sched/
H A Dcls_flower.c91 struct flow_dissector dissector; member
101 struct flow_dissector dissector; member
328 skb_flow_dissect_meta(skb, &mask->dissector, &skb_key); in fl_classify()
333 skb_flow_dissect_tunnel_info(skb, &mask->dissector, &skb_key); in fl_classify()
334 skb_flow_dissect_ct(skb, &mask->dissector, &skb_key, in fl_classify()
338 skb_flow_dissect_hash(skb, &mask->dissector, &skb_key); in fl_classify()
339 skb_flow_dissect(skb, &mask->dissector, &skb_key, in fl_classify()
468 cls_flower.rule->match.dissector = &f->mask->dissector; in fl_hw_replace_filter()
2038 static void fl_init_dissector(struct flow_dissector *dissector, in fl_init_dissector() argument
2103 skb_flow_dissector_init(dissector, keys, cnt); in fl_init_dissector()
[all …]
/openbmc/linux/include/net/netfilter/
H A Dnf_tables_offload.h59 struct flow_dissector dissector; member
/openbmc/linux/drivers/net/ethernet/marvell/prestera/
H A Dprestera_flower.c196 struct flow_dissector *dissector = f_rule->match.dissector; in prestera_flower_parse() local
204 if (dissector->used_keys & in prestera_flower_parse()
/openbmc/linux/drivers/net/ethernet/mscc/
H A Docelot_flower.c577 struct flow_dissector *dissector = rule->match.dissector; in ocelot_flower_parse_key() local
583 if (dissector->used_keys & in ocelot_flower_parse_key()
643 if ((dissector->used_keys & in ocelot_flower_parse_key()
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/en/tc/
H A Dct_fs_smfs.c254 if (!mlx5_tc_ct_valid_used_dissector_keys(flow_rule->match.dissector->used_keys)) { in mlx5_ct_fs_smfs_ct_validate_flow_rule()
256 flow_rule->match.dissector->used_keys); in mlx5_ct_fs_smfs_ct_validate_flow_rule()
/openbmc/linux/drivers/net/ethernet/marvell/octeontx2/nic/
H A Dotx2_tc.c524 struct flow_dissector *dissector; in otx2_tc_prepare_flow() local
529 dissector = rule->match.dissector; in otx2_tc_prepare_flow()
531 if ((dissector->used_keys & in otx2_tc_prepare_flow()
543 dissector->used_keys); in otx2_tc_prepare_flow()
/openbmc/linux/drivers/net/ethernet/chelsio/cxgb4/
H A Dcxgb4_tc_flower.c311 struct flow_dissector *dissector = rule->match.dissector; in cxgb4_validate_flow_match() local
315 if (dissector->used_keys & in cxgb4_validate_flow_match()
325 dissector->used_keys); in cxgb4_validate_flow_match()
/openbmc/linux/include/net/
H A Dflow_offload.h10 struct flow_dissector *dissector; member
449 return dissector_uses_key(rule->match.dissector, key); in flow_rule_match_key()
/openbmc/linux/drivers/net/ethernet/mellanox/mlxsw/
H A Dspectrum_flower.c563 struct flow_dissector *dissector = rule->match.dissector; in mlxsw_sp_flower_parse() local
570 if (dissector->used_keys & in mlxsw_sp_flower_parse()
/openbmc/linux/drivers/net/ethernet/ti/
H A Dam65-cpsw-qos.c620 struct flow_dissector *dissector = rule->match.dissector; in am65_cpsw_qos_clsflower_add_policer() local
626 if (dissector->used_keys & in am65_cpsw_qos_clsflower_add_policer()
/openbmc/openbmc-tools/dbus-pcap/
H A DREADME.md56 dissector.
/openbmc/linux/drivers/net/ethernet/intel/ice/
H A Dice_tc_lib.c1414 struct flow_dissector *dissector; in ice_parse_cls_flower() local
1417 dissector = rule->match.dissector; in ice_parse_cls_flower()
1419 if (dissector->used_keys & in ice_parse_cls_flower()
1458 } else if (dissector->used_keys & in ice_parse_cls_flower()

12