Home
last modified time | relevance | path

Searched refs:l3_proto (Results 1 – 25 of 31) sorted by relevance

12

/openbmc/linux/drivers/net/ethernet/microchip/sparx5/
H A Dsparx5_vcap_impl.c424 u16 l3_proto) in sparx5_vcap_is0_get_port_keysets() argument
434 if (l3_proto == ETH_P_ALL) in sparx5_vcap_is0_get_port_keysets()
437 if (l3_proto == ETH_P_ALL || l3_proto == ETH_P_IP) in sparx5_vcap_is0_get_port_keysets()
453 if (l3_proto == ETH_P_ALL || l3_proto == ETH_P_IPV6) in sparx5_vcap_is0_get_port_keysets()
469 if (l3_proto != ETH_P_IP && l3_proto != ETH_P_IPV6) in sparx5_vcap_is0_get_port_keysets()
478 u16 l3_proto) in sparx5_vcap_is2_get_port_keysets() argument
488 if (l3_proto == ETH_P_ALL || l3_proto == ETH_P_ARP) { in sparx5_vcap_is2_get_port_keysets()
499 if (l3_proto == ETH_P_ALL || l3_proto == ETH_P_IP) { in sparx5_vcap_is2_get_port_keysets()
527 if (l3_proto == ETH_P_ALL || l3_proto == ETH_P_IPV6) { in sparx5_vcap_is2_get_port_keysets()
564 if (l3_proto != ETH_P_ARP && l3_proto != ETH_P_IP && in sparx5_vcap_is2_get_port_keysets()
[all …]
H A Dsparx5_tc_flower.c36 u16 l3_proto; /* protocol specified in the template */ member
94 st->l3_proto = be16_to_cpu(mt.key->n_proto); in sparx5_tc_flower_handler_basic_usage()
95 if (!sparx5_vcap_is_known_etype(st->admin, st->l3_proto)) { in sparx5_tc_flower_handler_basic_usage()
97 st->l3_proto, ~0); in sparx5_tc_flower_handler_basic_usage()
100 } else if (st->l3_proto == ETH_P_IP) { in sparx5_tc_flower_handler_basic_usage()
105 } else if (st->l3_proto == ETH_P_IPV6) { in sparx5_tc_flower_handler_basic_usage()
394 u16 l3_proto, in sparx5_tc_select_protocol_keyset() argument
420 l3_proto, in sparx5_tc_select_protocol_keyset()
453 if (l3_proto == ETH_P_ALL && count < portkeysetlist.cnt) in sparx5_tc_select_protocol_keyset()
1029 u16 l3_proto) in sparx5_tc_flower_simplify_rule() argument
[all …]
H A Dsparx5_vcap_impl.h195 u16 l3_proto,
201 u16 l3_proto, enum vcap_keyfield_set keyset,
/openbmc/linux/drivers/net/ethernet/microchip/lan966x/
H A Dlan966x_tc_flower.c95 st->l3_proto = be16_to_cpu(match.key->n_proto); in lan966x_tc_flower_handler_basic_usage()
96 if (!lan966x_tc_is_known_etype(st, st->l3_proto)) { in lan966x_tc_flower_handler_basic_usage()
98 st->l3_proto, ~0); in lan966x_tc_flower_handler_basic_usage()
101 } else if (st->l3_proto == ETH_P_IP) { in lan966x_tc_flower_handler_basic_usage()
106 } else if (st->l3_proto == ETH_P_IPV6 && in lan966x_tc_flower_handler_basic_usage()
109 } else if (st->l3_proto == ETH_P_SNAP && in lan966x_tc_flower_handler_basic_usage()
130 st->l3_proto, ~0); in lan966x_tc_flower_handler_basic_usage()
226 u16 *l3_proto) in lan966x_tc_flower_use_dissectors() argument
231 .l3_proto = ETH_P_ALL, in lan966x_tc_flower_use_dissectors()
247 if (l3_proto) in lan966x_tc_flower_use_dissectors()
[all …]
H A Dlan966x_vcap_impl.c126 u16 l3_proto) in lan966x_vcap_is1_get_port_keysets() argument
135 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()
186 u16 l3_proto) in lan966x_vcap_is2_get_port_keysets() argument
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()
[all …]
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/en_accel/
H A Den_accel.h59 __be16 l3_proto; in mlx5e_tx_tunnel_accel() local
62 l3_proto = vlan_get_protocol(skb); in mlx5e_tx_tunnel_accel()
63 switch (l3_proto) { in mlx5e_tx_tunnel_accel()
77 swp_spec.l3_proto = l3_proto; in mlx5e_tx_tunnel_accel()
H A Dipsec_rxtx.c226 u8 l3_proto; in mlx5e_ipsec_tx_build_eseg() local
243 l3_proto = (x->props.family == AF_INET) ? in mlx5e_ipsec_tx_build_eseg()
251 eseg->trailer |= (l3_proto == IPPROTO_ESP) ? in mlx5e_ipsec_tx_build_eseg()
255 eseg->trailer |= (l3_proto == IPPROTO_ESP) ? in mlx5e_ipsec_tx_build_eseg()
/openbmc/linux/include/uapi/linux/
H A Datmsap.h114 unsigned char l3_proto; /* layer 3 protocol */ member
160 return blli.l2_proto || blli.l3_proto; in blli_in_use()
/openbmc/qemu/hw/net/
H A Dnet_tx_pkt.c171 uint16_t l3_proto; in net_tx_pkt_parse_headers() local
206 l3_proto = eth_get_l3_proto(l2_hdr, 1, l2_hdr->iov_len); in net_tx_pkt_parse_headers()
208 switch (l3_proto) { in net_tx_pkt_parse_headers()
308 uint16_t l3_proto; in net_tx_pkt_get_gso_type() local
310 l3_proto = eth_get_l3_proto(&pkt->vec[NET_TX_PKT_L2HDR_FRAG], 1, in net_tx_pkt_get_gso_type()
317 rc = eth_get_gso_type(l3_proto, pkt->vec[NET_TX_PKT_L3HDR_FRAG].iov_base, in net_tx_pkt_get_gso_type()
511 uint16_t l3_proto = eth_get_l3_proto(iov, 1, iov->iov_len); in net_tx_pkt_do_sw_csum() local
520 if (l3_proto == ETH_P_IP) { in net_tx_pkt_do_sw_csum()
524 } else if (l3_proto == ETH_P_IPV6) { in net_tx_pkt_do_sw_csum()
/openbmc/qemu/net/
H A Dcolo.c48 uint16_t l3_proto; in parse_packet_early() local
84 l3_proto = eth_get_l3_proto(&l2vec, 1, l2hdr_len); in parse_packet_early()
86 if (l3_proto != ETH_P_IP) { in parse_packet_early()
H A Deth.c37 eth_get_gso_type(uint16_t l3_proto, uint8_t *l3_hdr, uint8_t l4proto) in eth_get_gso_type() argument
41 if (l3_proto == ETH_P_IP) { in eth_get_gso_type()
54 } else if (l3_proto == ETH_P_IPV6) { in eth_get_gso_type()
66 "unknown L3 protocol: 0x%04"PRIx16"\n", __func__, l3_proto); in eth_get_gso_type()
/openbmc/linux/drivers/net/ethernet/intel/ice/
H A Dice_arfs.c359 ice_arfs_is_perfect_flow_set(struct ice_hw *hw, __be16 l3_proto, u8 l4_proto) in ice_arfs_is_perfect_flow_set() argument
367 if (l3_proto == htons(ETH_P_IP) && l4_proto == IPPROTO_UDP) in ice_arfs_is_perfect_flow_set()
369 else if (l3_proto == htons(ETH_P_IP) && l4_proto == IPPROTO_TCP) in ice_arfs_is_perfect_flow_set()
371 else if (l3_proto == htons(ETH_P_IPV6) && l4_proto == IPPROTO_UDP) in ice_arfs_is_perfect_flow_set()
373 else if (l3_proto == htons(ETH_P_IPV6) && l4_proto == IPPROTO_TCP) in ice_arfs_is_perfect_flow_set()
H A Dice_ethtool_fdir.c790 enum ice_flow_seg_hdr l3_proto, in ice_set_init_fdir_seg() argument
798 if (l3_proto == ICE_FLOW_SEG_HDR_IPV4) { in ice_set_init_fdir_seg()
801 } else if (l3_proto == ICE_FLOW_SEG_HDR_IPV6) { in ice_set_init_fdir_seg()
818 ICE_FLOW_SET_HDRS(seg, l3_proto | l4_proto); in ice_set_init_fdir_seg()
/openbmc/linux/tools/testing/selftests/bpf/progs/
H A Dtest_xdp_vlan.c46 __u16 l3_proto; member
95 pkt->l3_proto = bpf_ntohs(eth_type); /* Convert to host-byte-order */ in parse_eth_frame()
/openbmc/linux/drivers/net/ethernet/microchip/vcap/
H A Dvcap_tc.h14 u16 l3_proto; member
H A Dvcap_tc.c67 if (st->l3_proto == ETH_P_IP) { in vcap_tc_flower_handler_ipv4_usage()
103 if (st->l3_proto == ETH_P_IPV6) { in vcap_tc_flower_handler_ipv6_usage()
337 if (st->l3_proto == ETH_P_ARP) { in vcap_tc_flower_handler_arp_usage()
H A Dvcap_api.h227 u16 l3_proto);
H A Dvcap_api_client.h167 int vcap_val_rule(struct vcap_rule *rule, u16 l3_proto);
H A Dvcap_api_debugfs_kunit.c39 u16 l3_proto) in test_val_keyset() argument
/openbmc/linux/drivers/net/ethernet/amazon/ena/
H A Dena_eth_com.h24 enum ena_eth_io_l3_proto_index l3_proto; member
43 enum ena_eth_io_l3_proto_index l3_proto; member
H A Dena_eth_com.c346 ena_rx_ctx->l3_proto = cdesc->status & in ena_com_rx_set_flags()
367 ena_rx_ctx->l3_proto, ena_rx_ctx->l4_proto, ena_rx_ctx->l3_csum_err, in ena_com_rx_set_flags()
467 desc->meta_ctrl |= ena_tx_ctx->l3_proto & in ena_com_prepare_tx()
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/en/
H A Dtxrx.h414 __be16 l3_proto; member
436 if (swp_spec->l3_proto == htons(ETH_P_IPV6)) in mlx5e_set_eseg_swp()
450 if (swp_spec->l3_proto == htons(ETH_P_IPV6)) in mlx5e_set_eseg_swp()
/openbmc/qemu/include/net/
H A Deth.h361 uint8_t eth_get_gso_type(uint16_t l3_proto, uint8_t *l3_hdr, uint8_t l4proto);
/openbmc/linux/drivers/net/ethernet/qlogic/qede/
H A Dqede_fp.c179 __be16 l3_proto; in qede_xmit_type() local
184 l3_proto = vlan_get_protocol(skb); in qede_xmit_type()
185 if (l3_proto == htons(ETH_P_IPV6) && in qede_xmit_type()
/openbmc/linux/drivers/net/ethernet/marvell/octeontx2/nic/
H A Dotx2_txrx.c685 __be16 l3_proto = vlan_get_protocol(skb); in otx2_sqe_add_ext() local
697 if (l3_proto == htons(ETH_P_IP)) { in otx2_sqe_add_ext()

12