Home
last modified time | relevance | path

Searched refs:is_ipv4 (Results 1 – 13 of 13) sorted by relevance

/kernel/linux/linux-5.10/drivers/infiniband/core/
Dlag.c21 bool is_ipv4; in rdma_build_skb() local
24 is_ipv4 = ipv6_addr_v4mapped((struct in6_addr *)ah_attr->grh.dgid.raw); in rdma_build_skb()
26 hdr_len += is_ipv4 ? sizeof(struct iphdr) : sizeof(struct ipv6hdr); in rdma_build_skb()
42 if (is_ipv4) { in rdma_build_skb()
73 skb->protocol = eth->h_proto = htons(is_ipv4 ? ETH_P_IP : ETH_P_IPV6); in rdma_build_skb()
/kernel/linux/linux-5.10/tools/testing/selftests/net/
Dudpgso.c319 static void set_pmtu_discover(int fd, bool is_ipv4) in set_pmtu_discover() argument
323 if (is_ipv4) { in set_pmtu_discover()
337 static unsigned int get_path_mtu(int fd, bool is_ipv4) in get_path_mtu() argument
344 if (is_ipv4) in get_path_mtu()
358 static void set_route_mtu(int mtu, bool is_ipv4) in set_route_mtu() argument
371 alen = is_ipv4 ? sizeof(addr4) : sizeof(addr6); in set_route_mtu()
385 rt->rtm_family = is_ipv4 ? AF_INET : AF_INET6; in set_route_mtu()
396 if (is_ipv4) in set_route_mtu()
Dudpgso_bench_tx.c550 static void set_pmtu_discover(int fd, bool is_ipv4) in set_pmtu_discover() argument
554 if (is_ipv4) { in set_pmtu_discover()
Dtxtimestamp.c467 static void fill_header_udp(void *p, bool is_ipv4) in fill_header_udp() argument
476 udph->check = get_udp_csum(udph, is_ipv4 ? sizeof(struct in_addr) : in fill_header_udp()
/kernel/linux/linux-5.10/include/net/
Derspan.h172 bool truncate, bool is_ipv4) in erspan_build_header() argument
185 tos = is_ipv4 ? ip_hdr(skb)->tos : in erspan_build_header()
266 bool truncate, bool is_ipv4) in erspan_build_header_v2() argument
281 tos = is_ipv4 ? ip_hdr(skb)->tos : in erspan_build_header_v2()
/kernel/linux/linux-5.10/drivers/net/wireless/ath/wil6210/
Dtxrx_edma.c1320 int tso_desc_type, bool is_ipv4, in wil_tx_desc_offload_setup_tso_edma() argument
1346 is_ipv4 << DMA_CFG_DESC_TX_OFFLOAD_CFG_L3T_IPV4_POS; in wil_tx_desc_offload_setup_tso_edma()
1352 struct sk_buff *skb, bool is_ipv4, in wil_tx_tso_gen_desc() argument
1380 wil_tx_desc_offload_setup_tso_edma(d, tso_desc_type, is_ipv4, in wil_tx_tso_gen_desc()
1412 bool is_ipv4; in __wil_tx_ring_tso_edma() local
1436 is_ipv4 = true; in __wil_tx_ring_tso_edma()
1439 is_ipv4 = false; in __wil_tx_ring_tso_edma()
1462 is_ipv4, tcp_hdr_len, skb_net_hdr_len, in __wil_tx_ring_tso_edma()
1474 is_ipv4, tcp_hdr_len, skb_net_hdr_len, in __wil_tx_ring_tso_edma()
1491 frag, ring, skb, is_ipv4, in __wil_tx_ring_tso_edma()
Dtxrx.c1635 int tso_desc_type, bool is_ipv4, in wil_tx_desc_offload_setup_tso() argument
1639 d->dma.b11 |= is_ipv4 << DMA_CFG_DESC_TX_OFFLOAD_CFG_L3T_IPV4_POS; in wil_tx_desc_offload_setup_tso()
1648 d->dma.d0 |= (is_ipv4 << DMA_CFG_DESC_TX_0_IPV4_CHECKSUM_EN_POS); in wil_tx_desc_offload_setup_tso()
1760 bool is_ipv4; in __wil_tx_vring_tso() local
1797 is_ipv4 = true; in __wil_tx_vring_tso()
1802 is_ipv4 = false; in __wil_tx_vring_tso()
1830 wil_tx_desc_offload_setup_tso(hdr_desc, skb, wil_tso_type_hdr, is_ipv4, in __wil_tx_vring_tso()
1899 is_ipv4, tcp_hdr_len, in __wil_tx_vring_tso()
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/steering/
Ddr_ste.c1871 bool is_ipv4; in dr_ste_build_flex_parser_1_tag() local
1873 is_ipv4 = DR_MASK_IS_FLEX_PARSER_ICMPV4_SET(misc_3); in dr_ste_build_flex_parser_1_tag()
1874 if (is_ipv4) { in dr_ste_build_flex_parser_1_tag()
1893 if (is_ipv4) in dr_ste_build_flex_parser_1_tag()
1904 if (is_ipv4) in dr_ste_build_flex_parser_1_tag()
1919 if (is_ipv4) in dr_ste_build_flex_parser_1_tag()
/kernel/linux/linux-5.10/tools/hv/
Dhv_kvp_daemon.c1035 static int is_ipv4(char *addr) in is_ipv4() function
1112 if (is_ipv4(addr)) { in process_ip_string()
/kernel/linux/linux-5.10/drivers/net/hyperv/
Dhyperv_net.h1430 u32 is_ipv4:1; member
Dnetvsc_drv.c681 csum_info->transmit.is_ipv4 = 1; in netvsc_xmit()
/kernel/linux/linux-5.10/net/ipv4/
Dip_gre.c113 bool truncate, bool is_ipv4);
/kernel/linux/linux-5.10/drivers/infiniband/hw/bnxt_re/
Dib_verbs.c3051 bool is_ipv6 = false, is_ipv4 = false; in bnxt_re_check_packet_type() local
3065 (is_ipv6 = true) : (is_ipv4 = true); in bnxt_re_check_packet_type()