Home
last modified time | relevance | path

Searched refs:eth_type (Results 1 – 7 of 7) sorted by relevance

/freebsd-12.1/sys/dev/mlx5/mlx5_en/
H A Dmlx5_en_tx.c175 uint16_t eth_type; in mlx5e_get_l2_header_size() local
184 eth_type = ntohs(eh->evl_proto); in mlx5e_get_l2_header_size()
187 eth_type = ntohs(eh->evl_encap_proto); in mlx5e_get_l2_header_size()
191 switch (eth_type) { in mlx5e_get_l2_header_size()
225 uint16_t eth_type; in mlx5e_get_full_header_size() local
234 eth_type = ntohs(eh->evl_proto); in mlx5e_get_full_header_size()
237 eth_type = ntohs(eh->evl_encap_proto); in mlx5e_get_full_header_size()
240 switch (eth_type) { in mlx5e_get_full_header_size()
/freebsd-12.1/sys/dev/netmap/
H A Dif_ptnet.c1395 ptnet_tx_offload_tso(if_t ifp, struct mbuf *m, int eth_type, in ptnet_tx_offload_tso() argument
1410 hdr->gso_type = eth_type == ETHERTYPE_IP ? VIRTIO_NET_HDR_GSO_TCPV4 : in ptnet_tx_offload_tso()
1510 switch (eth_type) { in ptnet_rx_csum_by_offset()
1554 switch (eth_type) { in ptnet_rx_csum_by_parse()
1602 "csum_offset=%d\n", __func__, eth_type, proto, in ptnet_rx_csum_by_parse()
1626 uint16_t eth_type; in ptnet_rx_csum() local
1630 eth_type = ntohs(eh->ether_type); in ptnet_rx_csum()
1631 if (eth_type == ETHERTYPE_VLAN) { in ptnet_rx_csum()
1634 eth_type = ntohs(evh->evl_proto); in ptnet_rx_csum()
1640 error = ptnet_rx_csum_by_offset(m, eth_type, offset, hdr); in ptnet_rx_csum()
[all …]
/freebsd-12.1/sys/dev/virtio/network/
H A Dif_vtnet.c1487 uint16_t eth_type, int ip_start, struct virtio_net_hdr *hdr) in vtnet_rxq_csum_by_offset() argument
1497 switch (eth_type) { in vtnet_rxq_csum_by_offset()
1537 uint16_t eth_type, int ip_start, struct virtio_net_hdr *hdr) in vtnet_rxq_csum_by_parse() argument
1544 switch (eth_type) { in vtnet_rxq_csum_by_parse()
1592 "csum_offset=%d\n", __func__, eth_type, proto, in vtnet_rxq_csum_by_parse()
1617 uint16_t eth_type; in vtnet_rxq_csum() local
1621 eth_type = ntohs(eh->ether_type); in vtnet_rxq_csum()
1622 if (eth_type == ETHERTYPE_VLAN) { in vtnet_rxq_csum()
1625 eth_type = ntohs(evh->evl_proto); in vtnet_rxq_csum()
1631 error = vtnet_rxq_csum_by_offset(rxq, m, eth_type, offset, hdr); in vtnet_rxq_csum()
[all …]
/freebsd-12.1/sys/dev/mlx4/mlx4_en/
H A Dmlx4_en_tx.c506 uint16_t eth_type; in mlx4_en_get_header_size() local
513 eth_type = ntohs(eh->evl_proto); in mlx4_en_get_header_size()
516 eth_type = ntohs(eh->evl_encap_proto); in mlx4_en_get_header_size()
521 switch (eth_type) { in mlx4_en_get_header_size()
/freebsd-12.1/tools/bus_space/examples/
H A Dam79c900_diag.py300 pkt.eth_type = 0x0800
/freebsd-12.1/sys/mips/nlm/dev/net/
H A Dnae.c909 uint32_t l2proto, uint32_t eth_type) in nlm_setup_l3ctable_even() argument
917 (eth_type & 0xffff); in nlm_setup_l3ctable_even()
/freebsd-12.1/sys/dev/cxgb/
H A Dcxgb_sge.c1463 uint16_t eth_type; in t3_encap() local
1492 eth_type = eh->ether_type; in t3_encap()
1493 if (eth_type == htons(ETHERTYPE_VLAN)) { in t3_encap()
1498 eth_type = evh->evl_proto; in t3_encap()
1504 if (eth_type == htons(ETHERTYPE_IP)) { in t3_encap()
1509 } else if (eth_type == htons(ETHERTYPE_IPV6)) { in t3_encap()