Searched refs:iplen (Results 1 – 10 of 10) sorted by relevance
| /linux/net/core/ |
| H A D | selftests.c | 28 int iplen, size; in net_test_get_skb() local 89 iplen = sizeof(*ihdr) + sizeof(*shdr) + attr->size; in net_test_get_skb() 91 iplen += sizeof(*thdr); in net_test_get_skb() 93 iplen += sizeof(*uhdr); in net_test_get_skb() 96 iplen = attr->max_size - sizeof(*ehdr); in net_test_get_skb() 98 ihdr->tot_len = htons(iplen); in net_test_get_skb()
|
| H A D | pktgen.c | 2933 int datalen, iplen; in fill_packet_ipv4() local 3021 iplen = 20 + 8 + datalen; in fill_packet_ipv4() 3022 iph->tot_len = htons(iplen); in fill_packet_ipv4()
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/ |
| H A D | en_selftest.c | 87 int iplen; in mlx5e_test_get_udp_skb() local 124 iplen = sizeof(struct iphdr) + sizeof(struct udphdr) + in mlx5e_test_get_udp_skb() 126 iph->tot_len = htons(iplen); in mlx5e_test_get_udp_skb()
|
| /linux/net/xfrm/ |
| H A D | xfrm_iptfs.c | 954 u32 first_iplen, iphlen, iplen, remaining, tail; in __input_process_payload() local 998 iplen = be16_to_cpu(iph->tot_len); in __input_process_payload() 1000 if (iplen < iphlen || iphlen < sizeof(*iph)) { in __input_process_payload() 1017 iplen = be16_to_cpu(((struct ipv6hdr *)hbytes)->payload_len); in __input_process_payload() 1018 iplen += sizeof(struct ipv6hdr); in __input_process_payload() 1046 first_iplen = iplen; in __input_process_payload() 1060 skb_tailroom(skb) + tail - data >= iplen) { in __input_process_payload() 1119 capturelen = min(iplen, remaining); in __input_process_payload() 1123 iplen < IPTFS_PKT_SHARE_MIN || in __input_process_payload() 1130 skb = iptfs_pskb_extract_seq(iplen, skbseq, data, capturelen); in __input_process_payload() [all …]
|
| /linux/drivers/net/ethernet/chelsio/inline_crypto/ch_ktls/ |
| H A D | chcr_ktls.c | 993 u32 ctrl, iplen, maclen; in chcr_ktls_write_tcp_options() local 1005 iplen = skb_network_header_len(skb); in chcr_ktls_write_tcp_options() 1055 ip6->payload_len = htons(pktlen - maclen - iplen); in chcr_ktls_write_tcp_options() 1060 TXPKT_IPHDR_LEN_V(iplen); in chcr_ktls_write_tcp_options() 1070 tcp = (struct tcphdr *)(buf + maclen + iplen); in chcr_ktls_write_tcp_options() 1569 u32 ctrl, iplen, maclen, wr_mid = 0, len16; in chcr_ktls_tunnel_pkt() local 1609 iplen = skb_network_header_len(skb); in chcr_ktls_tunnel_pkt() 1633 TXPKT_IPHDR_LEN_V(iplen); in chcr_ktls_tunnel_pkt()
|
| /linux/drivers/net/ethernet/stmicro/stmmac/ |
| H A D | stmmac_selftests.c | 68 int iplen, size; in stmmac_test_get_udp_skb() local 171 iplen = sizeof(*ihdr) + sizeof(*shdr) + attr->size; in stmmac_test_get_udp_skb() 173 iplen += sizeof(*thdr); in stmmac_test_get_udp_skb() 175 iplen += sizeof(*uhdr); in stmmac_test_get_udp_skb() 178 iplen = attr->max_size - sizeof(*ehdr); in stmmac_test_get_udp_skb() 180 ihdr->tot_len = htons(iplen); in stmmac_test_get_udp_skb()
|
| /linux/drivers/net/ethernet/marvell/octeontx2/nic/ |
| H A D | otx2_txrx.c | 735 __be16 iplen; in otx2_sqe_add_ext() local 744 iplen = htons(ext->lso_sb - skb_network_offset(skb)); in otx2_sqe_add_ext() 746 ip_hdr(skb)->tot_len = iplen; in otx2_sqe_add_ext() 749 ipv6_hdr(skb)->payload_len = iplen; in otx2_sqe_add_ext()
|
| /linux/drivers/infiniband/hw/irdma/ |
| H A D | puda.c | 428 u32 iplen, l4len; in irdma_puda_send() local 437 iplen = 5; in irdma_puda_send() 440 iplen = 10; in irdma_puda_send() 468 FIELD_PREP(IRDMA_UDA_QPSQ_IPLEN, iplen) | in irdma_puda_send()
|
| /linux/drivers/net/ethernet/chelsio/cxgb4/ |
| H A D | t4fw_api.h | 551 __be16 iplen; member 562 __be16 iplen; member
|
| H A D | sge.c | 1466 wr->u.udpseg.iplen = cpu_to_be16(skb_network_header_len(skb)); in write_eo_udp_wr() 2226 wr->u.tcpseg.iplen = cpu_to_be16(skb_network_header_len(skb)); in write_eo_wr()
|