Home
last modified time | relevance | path

Searched refs:eth_proto (Results 1 – 10 of 10) sorted by relevance

/drivers/net/ethernet/mellanox/mlx4/
Den_ethtool.c562 u32 eth_proto = be32_to_cpu(ptys_reg->eth_proto_cap); in ptys2ethtool_update_supported_port() local
564 if (eth_proto & (MLX4_PROT_MASK(MLX4_10GBASE_T) in ptys2ethtool_update_supported_port()
568 } else if (eth_proto & (MLX4_PROT_MASK(MLX4_10GBASE_CR) in ptys2ethtool_update_supported_port()
575 } else if (eth_proto & (MLX4_PROT_MASK(MLX4_56GBASE_KR4) in ptys2ethtool_update_supported_port()
587 u32 eth_proto = be32_to_cpu(ptys_reg->eth_proto_oper); in ptys_get_active_port() local
589 if (!eth_proto) /* link down */ in ptys_get_active_port()
590 eth_proto = be32_to_cpu(ptys_reg->eth_proto_cap); in ptys_get_active_port()
592 if (eth_proto & (MLX4_PROT_MASK(MLX4_10GBASE_T) in ptys_get_active_port()
598 if (eth_proto & (MLX4_PROT_MASK(MLX4_10GBASE_SR) in ptys_get_active_port()
605 if (eth_proto & (MLX4_PROT_MASK(MLX4_10GBASE_CR) in ptys_get_active_port()
[all …]
/drivers/net/ethernet/qlogic/qede/
Dqede_filter.c28 __be16 eth_proto; member
395 tpos->tuple.eth_proto == skb->protocol && in qede_arfs_htbl_key_search()
514 n->tuple.eth_proto = skb->protocol; in qede_rx_flow_steer()
1342 if (fltr->tuple.eth_proto == htons(ETH_P_IP)) { in qede_get_cls_rule_entry()
1403 if (t->eth_proto == htons(ETH_P_IP)) in qede_flow_get_min_header_size()
1419 if (a->eth_proto != htons(ETH_P_IP) || in qede_flow_spec_ipv4_cmp()
1420 b->eth_proto != htons(ETH_P_IP)) in qede_flow_spec_ipv4_cmp()
1434 eth->h_proto = t->eth_proto; in qede_flow_build_ipv4_hdr()
1461 if (a->eth_proto != htons(ETH_P_IPV6) || in qede_flow_spec_ipv6_cmp()
1462 b->eth_proto != htons(ETH_P_IPV6)) in qede_flow_spec_ipv6_cmp()
[all …]
/drivers/net/ethernet/sfc/
Dtc_conntrack.h42 __be16 eth_proto; member
Dmae.c359 rc = TABLE_HOOK_KEY(meta_ct, eth_proto, ETHER_TYPE); in efx_mae_table_hook_ct()
679 if (CHECK(ETHER_TYPE, eth_proto) || in efx_mae_match_check_caps()
774 if (CHECK(ENC_ETHER_TYPE, eth_proto) || in efx_mae_match_check_caps_lhs()
1586 match->value.eth_proto); in efx_mae_populate_lhs_match_criteria()
1588 match->mask.eth_proto); in efx_mae_populate_lhs_match_criteria()
1883 bool ipv6 = conn->eth_proto == htons(ETH_P_IPV6); in efx_mae_populate_ct_key()
1886 rc = TABLE_POPULATE_KEY(key, ct, eth_proto, conn->eth_proto); in efx_mae_populate_ct_key()
1915 bool ipv6 = conn->eth_proto == htons(ETH_P_IPV6); in efx_mae_insert_ct()
2079 match->value.eth_proto); in efx_mae_populate_match_criteria()
2081 match->mask.eth_proto); in efx_mae_populate_match_criteria()
Dtc_conntrack.c147 conn->eth_proto = fm.key->n_proto; in efx_tc_ct_parse_match()
148 if (conn->eth_proto != (ipv == 4 ? htons(ETH_P_IP) in efx_tc_ct_parse_match()
152 ipv, ntohs(conn->eth_proto)); in efx_tc_ct_parse_match()
Dtc.h92 __be16 eth_proto; member
Dtc.c305 MAP_KEY_AND_MASK(BASIC, basic, n_proto, eth_proto); in efx_tc_flower_parse_match()
307 if (!IS_ALL_ONES(match->mask.eth_proto) || in efx_tc_flower_parse_match()
308 !(match->value.eth_proto == htons(ETH_P_IP) || in efx_tc_flower_parse_match()
309 match->value.eth_proto == htons(ETH_P_IPV6))) in efx_tc_flower_parse_match()
/drivers/staging/ks7010/
Dks_hostif.c333 unsigned short eth_proto; in hostif_data_indication_wpa() local
344 eth_proto = ntohs(eth_hdr->h_proto); in hostif_data_indication_wpa()
361 eth_proto, priv->rx_size); in hostif_data_indication_wpa()
1056 unsigned short eth_proto; in hostif_data_request() local
1143 eth_proto = ntohs(eth_hdr->h_proto); in hostif_data_request()
1146 if (eth_proto == ETH_P_PAE && in hostif_data_request()
1157 if (eth_proto == ETH_P_PAE && in hostif_data_request()
1185 if (eth_proto == ETH_P_PAE) in hostif_data_request()
1201 if (eth_proto == ETH_P_PAE && in hostif_data_request()
/drivers/net/ethernet/mellanox/mlx5/core/
Den_ethtool.c953 static u8 get_connector_port(struct mlx5_core_dev *mdev, u32 eth_proto, u8 connector_type) in get_connector_port() argument
958 if (eth_proto & in get_connector_port()
966 if (eth_proto & in get_connector_port()
973 if (eth_proto & in get_connector_port()
/drivers/net/ethernet/sun/
Dniu.c6561 u16 eth_proto, eth_proto_inner; in niu_compute_tx_flags() local
6566 eth_proto = be16_to_cpu(ehdr->h_proto); in niu_compute_tx_flags()
6567 eth_proto_inner = eth_proto; in niu_compute_tx_flags()
6568 if (eth_proto == ETH_P_8021Q) { in niu_compute_tx_flags()
6616 ((eth_proto == ETH_P_8021Q) ? TXHDR_VLAN : 0) | in niu_compute_tx_flags()