Home
last modified time | relevance | path

Searched refs:ETH_P_ALL (Results 1 – 25 of 37) sorted by relevance

12

/linux/samples/bpf/
H A Dsock_example.h18 sock = socket(PF_PACKET, SOCK_RAW | SOCK_NONBLOCK | SOCK_CLOEXEC, htons(ETH_P_ALL)); in open_raw_sock()
27 sll.sll_protocol = htons(ETH_P_ALL); in open_raw_sock()
/linux/drivers/net/ethernet/microchip/lan966x/
H A Dlan966x_vcap_impl.c135 if (l3_proto == ETH_P_ALL || l3_proto == ETH_P_IP) { in lan966x_vcap_is1_get_port_keysets()
149 if (l3_proto == ETH_P_ALL || l3_proto == ETH_P_IPV6) { in lan966x_vcap_is1_get_port_keysets()
196 if (l3_proto == ETH_P_ALL) in lan966x_vcap_is2_get_port_keysets()
199 if (l3_proto == ETH_P_ALL || l3_proto == ETH_P_SNAP) { in lan966x_vcap_is2_get_port_keysets()
208 if (l3_proto == ETH_P_ALL || l3_proto == ETH_P_CFM) { in lan966x_vcap_is2_get_port_keysets()
217 if (l3_proto == ETH_P_ALL || l3_proto == ETH_P_ARP) { in lan966x_vcap_is2_get_port_keysets()
226 if (l3_proto == ETH_P_ALL || l3_proto == ETH_P_IP) { in lan966x_vcap_is2_get_port_keysets()
240 if (l3_proto == ETH_P_ALL || l3_proto == ETH_P_IPV6) { in lan966x_vcap_is2_get_port_keysets()
H A Dlan966x_tc_flower.c16 case ETH_P_ALL: in lan966x_tc_is_known_etype()
25 case ETH_P_ALL: in lan966x_tc_is_known_etype()
237 .l3_proto = ETH_P_ALL, in lan966x_tc_flower_use_dissectors()
453 u16 l3_proto = ETH_P_ALL; in lan966x_tc_flower_add()
H A Dlan966x_ptp.c155 LAN966X_VCAP_L2_PTP_TRAP, ETH_P_ALL); in lan966x_ptp_add_l2_rule()
/linux/drivers/net/ethernet/microchip/sparx5/
H A Dsparx5_vcap_impl.c131 ETH_P_ALL,
138 ETH_P_ALL,
146 ETH_P_ALL,
418 if (l3_proto == ETH_P_ALL) in sparx5_vcap_is0_get_port_keysets()
421 if (l3_proto == ETH_P_ALL || l3_proto == ETH_P_IP) in sparx5_vcap_is0_get_port_keysets()
437 if (l3_proto == ETH_P_ALL || l3_proto == ETH_P_IPV6) in sparx5_vcap_is0_get_port_keysets()
472 if (l3_proto == ETH_P_ALL || l3_proto == ETH_P_ARP) { in sparx5_vcap_is2_get_port_keysets()
483 if (l3_proto == ETH_P_ALL || l3_proto == ETH_P_IP) { in sparx5_vcap_is2_get_port_keysets()
511 if (l3_proto == ETH_P_ALL || l3_proto == ETH_P_IPV6) { in sparx5_vcap_is2_get_port_keysets()
626 if (l3_proto == ETH_P_ALL || l3_proto == ETH_P_ARP) { in sparx5_vcap_es2_get_port_keysets()
[all …]
H A Dsparx5_tc_flower.c457 if (l3_proto == ETH_P_ALL && count < portkeysetlist.cnt) in sparx5_tc_select_protocol_keyset()
534 err = vcap_val_rule(vrule, ETH_P_ALL); in sparx5_tc_add_rule_copy()
1167 .l3_proto = ETH_P_ALL, in sparx5_tc_flower_replace()
1319 if (state.l3_proto == ETH_P_ALL) in sparx5_tc_flower_replace()
1444 .l3_proto = ETH_P_ALL, in sparx5_tc_flower_template_create()
/linux/tools/testing/selftests/bpf/prog_tests/
H A Dlsm_cgroup.c197 ASSERT_LT(socket(AF_PACKET, SOCK_RAW, htons(ETH_P_ALL)), 0, in test_lsm_cgroup_functional()
207 .sll_protocol = htons(ETH_P_ALL), in test_lsm_cgroup_functional()
/linux/include/uapi/linux/
H A Dif_ether.h136 #define ETH_P_ALL 0x0003 /* Every packet (be careful!!!) */ macro
/linux/arch/um/drivers/
H A Dvector_user.c291 result->rx_fd = create_raw_fd(iface, ETH_P_ALL, ETH_P_ALL); in user_init_hybrid_fds()
530 rxfd = create_raw_fd(iface, ETH_P_ALL, ETH_P_ALL); in user_init_raw_fds()
/linux/drivers/net/ethernet/marvell/prestera/
H A Dprestera_matchall.c88 if (protocol != htons(ETH_P_ALL)) in prestera_mall_replace()
H A Dprestera_flower.c245 if (ntohs(match.key->n_proto) == ETH_P_ALL) { in prestera_flower_parse()
/linux/tools/lib/bpf/
H A Dnetlink.c765 protocol = ETH_P_ALL; in bpf_tc_attach()
838 protocol = ETH_P_ALL; in __bpf_tc_detach()
909 protocol = ETH_P_ALL; in bpf_tc_query()
/linux/tools/testing/selftests/net/
H A Dpsock_tpacket.c395 rcv_sock = socket(PF_PACKET, SOCK_RAW, htons(ETH_P_ALL)); in walk_tx()
733 ring->ll.sll_protocol = htons(ETH_P_ALL); in bind_ring()
/linux/Documentation/networking/
H A Dpacket_mmap.rst83 int fd = socket(PF_PACKET, mode, htons(ETH_P_ALL));
131 set. Otherwise, htons(ETH_P_ALL) or any other protocol, for example.
163 my_addr.sll_protocol = htons(ETH_P_ALL);
833 fd = socket(AF_PACKET, SOCK_RAW, htons(ETH_P_ALL));
876 ll.sll_protocol = htons(ETH_P_ALL);
/linux/net/core/
H A Dnet-procfs.c306 if (pt->type == htons(ETH_P_ALL)) in ptype_seq_show()
/linux/drivers/net/ethernet/mellanox/mlxsw/
H A Dspectrum_matchall.c241 if (protocol != htons(ETH_P_ALL)) { in mlxsw_sp_mall_replace()
H A Dspectrum_flower.c621 if (n_proto_key == ETH_P_ALL) { in mlxsw_sp_flower_parse()
/linux/drivers/net/ethernet/netronome/nfp/bpf/
H A Dmain.c126 if (cls_bpf->common.protocol != htons(ETH_P_ALL)) { in nfp_bpf_setup_tc_block_cb()
/linux/drivers/net/netdevsim/
H A Dbpf.c135 if (cls_bpf->common.protocol != htons(ETH_P_ALL)) { in nsim_bpf_setup_tc_block_cb()
/linux/net/netfilter/
H A Dnf_tables_offload.c253 __be16 proto = ETH_P_ALL; in nft_flow_cls_offload_setup()
H A Dnf_flow_table_offload.c911 __be16 proto = ETH_P_ALL; in nf_flow_offload_tuple()
/linux/drivers/net/ethernet/mscc/
H A Docelot_flower.c790 if (match_protocol && proto != ETH_P_ALL) { in ocelot_flower_parse_key()
/linux/drivers/net/ethernet/chelsio/cxgb4/
H A Dcxgb4_tc_flower.c176 if (ethtype_key == ETH_P_ALL) { in cxgb4_process_flow_match()
/linux/drivers/net/ethernet/microchip/vcap/
H A Dvcap_api_kunit.c303 ret = vcap_val_rule(rule, ETH_P_ALL); in test_vcap_xn_rule_creator()
1420 ret = vcap_val_rule(rule, ETH_P_ALL); in vcap_api_encode_rule_test()
/linux/drivers/net/ethernet/stmicro/stmmac/
H A Dstmmac_tc.c109 case ETH_P_ALL: in tc_fill_entry()

12