Home
last modified time | relevance | path

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

12

/linux-6.6.21/drivers/net/ethernet/microchip/sparx5/
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 …]
Dsparx5_tc_flower.c36 u16 l3_proto; /* protocol specified in the template */ member
73 st->l3_proto = be16_to_cpu(mt.key->n_proto); in sparx5_tc_flower_handler_basic_usage()
74 if (!sparx5_vcap_is_known_etype(st->admin, st->l3_proto)) { in sparx5_tc_flower_handler_basic_usage()
76 st->l3_proto, ~0); in sparx5_tc_flower_handler_basic_usage()
79 } else if (st->l3_proto == ETH_P_IP) { in sparx5_tc_flower_handler_basic_usage()
84 } else if (st->l3_proto == ETH_P_IPV6) { in sparx5_tc_flower_handler_basic_usage()
375 u16 l3_proto, in sparx5_tc_select_protocol_keyset() argument
401 l3_proto, in sparx5_tc_select_protocol_keyset()
434 if (l3_proto == ETH_P_ALL && count < portkeysetlist.cnt) in sparx5_tc_select_protocol_keyset()
1010 u16 l3_proto) in sparx5_tc_flower_simplify_rule() argument
[all …]
Dsparx5_vcap_impl.h195 u16 l3_proto,
201 u16 l3_proto, enum vcap_keyfield_set keyset,
/linux-6.6.21/drivers/net/ethernet/microchip/lan966x/
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 …]
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 …]
/linux-6.6.21/drivers/net/ethernet/mellanox/mlx5/core/en_accel/
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()
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()
/linux-6.6.21/include/uapi/linux/
Datmsap.h114 unsigned char l3_proto; /* layer 3 protocol */ member
160 return blli.l2_proto || blli.l3_proto; in blli_in_use()
/linux-6.6.21/drivers/net/ethernet/intel/ice/
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()
Dice_ethtool_fdir.c782 enum ice_flow_seg_hdr l3_proto, in ice_set_init_fdir_seg() argument
790 if (l3_proto == ICE_FLOW_SEG_HDR_IPV4) { in ice_set_init_fdir_seg()
793 } else if (l3_proto == ICE_FLOW_SEG_HDR_IPV6) { in ice_set_init_fdir_seg()
810 ICE_FLOW_SET_HDRS(seg, l3_proto | l4_proto); in ice_set_init_fdir_seg()
/linux-6.6.21/tools/testing/selftests/bpf/progs/
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()
/linux-6.6.21/drivers/net/ethernet/microchip/vcap/
Dvcap_tc.h14 u16 l3_proto; member
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()
Dvcap_api.h227 u16 l3_proto);
Dvcap_api_client.h167 int vcap_val_rule(struct vcap_rule *rule, u16 l3_proto);
Dvcap_api_debugfs_kunit.c39 u16 l3_proto) in test_val_keyset() argument
/linux-6.6.21/drivers/net/ethernet/amazon/ena/
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
Dena_eth_com.c351 ena_rx_ctx->l3_proto = cdesc->status & in ena_com_rx_set_flags()
372 ena_rx_ctx->l3_proto, ena_rx_ctx->l4_proto, in ena_com_rx_set_flags()
474 desc->meta_ctrl |= ena_tx_ctx->l3_proto & in ena_com_prepare_tx()
Dena_netdev.c1601 if (unlikely((ena_rx_ctx->l3_proto == ENA_ETH_IO_L3_PROTO_IPV4) && in ena_rx_checksum()
1746 rx_ring->qid, ena_rx_ctx.descs, ena_rx_ctx.l3_proto, in ena_clean_rx_irq()
2975 ena_tx_ctx->l3_proto = ENA_ETH_IO_L3_PROTO_IPV4; in ena_tx_csum()
2983 ena_tx_ctx->l3_proto = ENA_ETH_IO_L3_PROTO_IPV6; in ena_tx_csum()
/linux-6.6.21/drivers/net/ethernet/mellanox/mlx5/core/en/
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()
/linux-6.6.21/drivers/net/ethernet/qlogic/qede/
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()
/linux-6.6.21/drivers/net/ethernet/marvell/octeontx2/nic/
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()
/linux-6.6.21/drivers/net/ethernet/marvell/
Dmvneta.c1784 static u32 mvneta_txq_desc_csum(int l3_offs, int l3_proto, in mvneta_txq_desc_csum() argument
1796 if (l3_proto == htons(ETH_P_IP)) in mvneta_txq_desc_csum()
1959 __be16 l3_proto = vlan_get_protocol(skb); in mvneta_skb_tx_csum() local
1962 if (l3_proto == htons(ETH_P_IP)) { in mvneta_skb_tx_csum()
1968 } else if (l3_proto == htons(ETH_P_IPV6)) { in mvneta_skb_tx_csum()
1979 l3_proto, ip_hdr_len, l4_proto); in mvneta_skb_tx_csum()
/linux-6.6.21/drivers/net/ethernet/marvell/mvpp2/
Dmvpp2_main.c2583 static u32 mvpp2_txq_desc_csum(int l3_offs, __be16 l3_proto, in mvpp2_txq_desc_csum() argument
2595 if (l3_proto == htons(ETH_P_IP)) { in mvpp2_txq_desc_csum()
3613 __be16 l3_proto = vlan_get_protocol(skb); in mvpp2_skb_tx_csum() local
3615 if (l3_proto == htons(ETH_P_IP)) { in mvpp2_skb_tx_csum()
3621 } else if (l3_proto == htons(ETH_P_IPV6)) { in mvpp2_skb_tx_csum()
3633 l3_proto, ip_hdr_len, l4_proto); in mvpp2_skb_tx_csum()
/linux-6.6.21/drivers/staging/qlge/
Dqlge_main.c2454 __be16 l3_proto = vlan_get_protocol(skb); in qlge_tso() local
2471 if (likely(l3_proto == htons(ETH_P_IP))) { in qlge_tso()
2480 } else if (l3_proto == htons(ETH_P_IPV6)) { in qlge_tso()

12