/linux/drivers/net/ethernet/microchip/sparx5/ |
H A D | sparx5_vcap_impl.c | 408 u16 l3_proto) in sparx5_vcap_is0_get_port_keysets() argument 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() 453 if (l3_proto != ETH_P_IP && l3_proto != ETH_P_IPV6) in sparx5_vcap_is0_get_port_keysets() 462 u16 l3_proto) in sparx5_vcap_is2_get_port_keysets() argument 472 if (l3_proto in sparx5_vcap_is2_get_port_keysets() 591 sparx5_vcap_es0_get_port_keysets(struct net_device * ndev,struct vcap_keyset_list * keysetlist,u16 l3_proto) sparx5_vcap_es0_get_port_keysets() argument 616 sparx5_vcap_es2_get_port_keysets(struct net_device * ndev,int lookup,struct vcap_keyset_list * keysetlist,u16 l3_proto) sparx5_vcap_es2_get_port_keysets() argument 679 sparx5_vcap_get_port_keyset(struct net_device * ndev,struct vcap_admin * admin,int cid,u16 l3_proto,struct vcap_keyset_list * kslist) sparx5_vcap_get_port_keyset() argument 748 sparx5_vcap_validate_keyset(struct net_device * ndev,struct vcap_admin * admin,struct vcap_rule * rule,struct vcap_keyset_list * kslist,u16 l3_proto) sparx5_vcap_validate_keyset() argument 1520 sparx5_vcap_is0_set_port_keyset(struct net_device * ndev,int lookup,enum vcap_keyfield_set keyset,int l3_proto) sparx5_vcap_is0_set_port_keyset() argument 1609 sparx5_vcap_is2_set_port_keyset(struct net_device * ndev,int lookup,enum vcap_keyfield_set keyset,int l3_proto) sparx5_vcap_is2_set_port_keyset() argument 1702 sparx5_vcap_es2_set_port_keyset(struct net_device * ndev,int lookup,enum vcap_keyfield_set keyset,int l3_proto) sparx5_vcap_es2_set_port_keyset() argument 1738 sparx5_vcap_set_port_keyset(struct net_device * ndev,struct vcap_admin * admin,int cid,u16 l3_proto,enum vcap_keyfield_set keyset,struct vcap_keyset_list * orig) sparx5_vcap_set_port_keyset() argument [all...] |
H A D | sparx5_tc_flower.c | 36 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() 398 u16 l3_proto, in sparx5_tc_select_protocol_keyset() argument 424 l3_proto, in sparx5_tc_select_protocol_keyset() 457 if (l3_proto == ETH_P_ALL && count < portkeysetlist.cnt) in sparx5_tc_select_protocol_keyset() 1093 u16 l3_proto) in sparx5_tc_flower_simplify_rule() argument [all...] |
H A D | sparx5_vcap_impl.h | 216 u16 l3_proto, 222 u16 l3_proto, enum vcap_keyfield_set keyset,
|
/linux/drivers/net/ethernet/microchip/lan966x/ |
H A D | lan966x_tc_flower.c | 101 st->l3_proto = be16_to_cpu(match.key->n_proto); in lan966x_tc_flower_handler_basic_usage() 102 if (!lan966x_tc_is_known_etype(st, st->l3_proto)) { in lan966x_tc_flower_handler_basic_usage() 104 st->l3_proto, ~0); in lan966x_tc_flower_handler_basic_usage() 107 } else if (st->l3_proto == ETH_P_IP) { in lan966x_tc_flower_handler_basic_usage() 112 } else if (st->l3_proto == ETH_P_IPV6 && in lan966x_tc_flower_handler_basic_usage() 115 } else if (st->l3_proto == ETH_P_SNAP && in lan966x_tc_flower_handler_basic_usage() 136 st->l3_proto, ~0); in lan966x_tc_flower_handler_basic_usage() 232 u16 *l3_proto) in lan966x_tc_flower_use_dissectors() argument 237 .l3_proto = ETH_P_ALL, in lan966x_tc_flower_use_dissectors() 253 if (l3_proto) in lan966x_tc_flower_use_dissectors() 453 u16 l3_proto = ETH_P_ALL; lan966x_tc_flower_add() local [all...] |
H A D | lan966x_vcap_impl.c | 126 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 in lan966x_vcap_is2_get_port_keysets() 272 lan966x_vcap_validate_keyset(struct net_device * dev,struct vcap_admin * admin,struct vcap_rule * rule,struct vcap_keyset_list * kslist,u16 l3_proto) lan966x_vcap_validate_keyset() argument [all...] |
/linux/drivers/net/ethernet/mellanox/mlx5/core/en_accel/ |
H A D | en_accel.h | 59 __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 D | ipsec_rxtx.c | 226 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/include/uapi/linux/ |
H A D | atmsap.h | 114 unsigned char l3_proto; /* layer 3 protocol */ member 124 struct { /* if l3_proto = ATM_L3_H310 */ 131 struct { /* if l3_proto = ATM_L3_TR9577 */ 160 return blli.l2_proto || blli.l3_proto; in blli_in_use()
|
/linux/tools/testing/selftests/bpf/progs/ |
H A D | test_xdp_vlan.c | 46 __u16 l3_proto; member 95 pkt->l3_proto = bpf_ntohs(eth_type); /* Convert to host-byte-order */ in parse_eth_frame()
|
/linux/drivers/net/ethernet/mellanox/mlx5/core/en/ |
H A D | txrx.h | 459 __be16 l3_proto; member 481 if (swp_spec->l3_proto == htons(ETH_P_IPV6)) in mlx5e_set_eseg_swp() 495 if (swp_spec->l3_proto == htons(ETH_P_IPV6)) in mlx5e_set_eseg_swp()
|
/linux/drivers/net/ethernet/microchip/vcap/ |
H A D | vcap_api.h | 227 u16 l3_proto);
|
H A D | vcap_api_client.h | 167 int vcap_val_rule(struct vcap_rule *rule, u16 l3_proto);
|
H A D | vcap_api_debugfs_kunit.c | 39 u16 l3_proto) in test_val_keyset() argument
|
H A D | vcap_api.c | 1987 int vcap_val_rule(struct vcap_rule *rule, u16 l3_proto) in vcap_val_rule() argument 2022 &matches, l3_proto); in vcap_val_rule()
|
H A D | vcap_api_kunit.c | 35 u16 l3_proto) in test_val_keyset() argument
|
/linux/drivers/net/ethernet/intel/ice/ |
H A D | ice_ethtool_fdir.c | 783 * @l3_proto: ICE_FLOW_SEG_HDR_IPV4 or ICE_FLOW_SEG_HDR_IPV6 792 enum ice_flow_seg_hdr l3_proto, in ice_set_init_fdir_seg() argument 800 if (l3_proto == ICE_FLOW_SEG_HDR_IPV4) { in ice_set_init_fdir_seg() 803 } else if (l3_proto == ICE_FLOW_SEG_HDR_IPV6) { in ice_set_init_fdir_seg() 820 ICE_FLOW_SET_HDRS(seg, l3_proto | l4_proto); in ice_set_init_fdir_seg()
|
/linux/drivers/net/ethernet/netronome/nfp/ |
H A D | nfp_net_ethtool.c | 1382 fs->h_u.ether_spec.h_proto = entry->key.l3_proto; in nfp_net_fs_to_ethtool() 1383 fs->m_u.ether_spec.h_proto = entry->msk.l3_proto; in nfp_net_fs_to_ethtool() 1565 entry->msk.l3_proto = fs->m_u.ether_spec.h_proto; in nfp_net_fs_from_ethtool() 1566 entry->key.l3_proto = fs->h_u.ether_spec.h_proto & entry->msk.l3_proto; in nfp_net_fs_from_ethtool()
|
H A D | nfp_net.h | 758 __be16 l3_proto; member
|
H A D | nfp_net_common.c | 1879 nn_writew(nn, addr, be16_to_cpu(entry->key.l3_proto)); in nfp_net_fs_add_hw() 1920 nn_writew(nn, addr, be16_to_cpu(entry->key.l3_proto)); in nfp_net_fs_del_hw()
|
/linux/drivers/net/ethernet/qlogic/qede/ |
H A D | qede_fp.c | 179 __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/drivers/net/ethernet/marvell/octeontx2/nic/ |
H A D | otx2_txrx.c | 733 __be16 l3_proto = vlan_get_protocol(skb); in otx2_sqe_add_ext() local 745 if (l3_proto == htons(ETH_P_IP)) { in otx2_sqe_add_ext()
|
/linux/drivers/net/ethernet/marvell/ |
H A D | mvneta.c | 1784 static u32 mvneta_txq_desc_csum(int l3_offs, __be16 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/drivers/net/ethernet/amazon/ena/ |
H A D | ena_netdev.c | 1086 if (unlikely((ena_rx_ctx->l3_proto == ENA_ETH_IO_L3_PROTO_IPV4) && in ena_rx_checksum() 1232 rx_ring->qid, ena_rx_ctx.descs, ena_rx_ctx.l3_proto, in ena_clean_rx_irq() 2440 ena_tx_ctx->l3_proto = ENA_ETH_IO_L3_PROTO_IPV4; in ena_tx_csum() 2448 ena_tx_ctx->l3_proto = ENA_ETH_IO_L3_PROTO_IPV6; in ena_tx_csum()
|
/linux/drivers/net/ethernet/marvell/mvpp2/ |
H A D | mvpp2_main.c | 2582 static u32 mvpp2_txq_desc_csum(int l3_offs, __be16 l3_proto, in mvpp2_txq_desc_csum() argument 2594 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()
|