Searched refs:iplen (Results 1 – 9 of 9) 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 | 2936 int datalen, iplen; in fill_packet_ipv4() local 3024 iplen = 20 + 8 + datalen; in fill_packet_ipv4() 3025 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 | 963 u32 first_iplen, iphlen, iplen, remaining, tail; in __input_process_payload() local 1008 iplen = be16_to_cpu(iph->tot_len); in __input_process_payload() 1010 if (iplen < iphlen || iphlen < sizeof(*iph)) { in __input_process_payload() 1027 iplen = be16_to_cpu(((struct ipv6hdr *)hbytes)->payload_len); in __input_process_payload() 1028 iplen += sizeof(struct ipv6hdr); in __input_process_payload() 1056 first_iplen = iplen; in __input_process_payload() 1070 skb_tailroom(skb) + tail - data >= iplen) { in __input_process_payload() 1129 capturelen = min(iplen, remaining); in __input_process_payload() 1133 iplen < IPTFS_PKT_SHARE_MIN || in __input_process_payload() 1140 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 | 69 int iplen, size; in stmmac_test_get_udp_skb() local 172 iplen = sizeof(*ihdr) + sizeof(*shdr) + attr->size; in stmmac_test_get_udp_skb() 174 iplen += sizeof(*thdr); in stmmac_test_get_udp_skb() 176 iplen += sizeof(*uhdr); in stmmac_test_get_udp_skb() 179 iplen = attr->max_size - sizeof(*ehdr); in stmmac_test_get_udp_skb() 181 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/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()
|