Home
last modified time | relevance | path

Searched refs:hdrsize (Results 1 – 25 of 46) sorted by relevance

12

/linux/net/rxrpc/
H A Dpeer_object.c164 if (peer->max_data < peer->if_mtu - peer->hdrsize) { in rxrpc_assess_MTU_size()
165 trace_rxrpc_pmtud_reduce(peer, 0, peer->if_mtu - peer->hdrsize, in rxrpc_assess_MTU_size()
167 peer->max_data = peer->if_mtu - peer->hdrsize; in rxrpc_assess_MTU_size()
206 peer->hdrsize += dst->header_len + dst->trailer_len; in rxrpc_assess_MTU_size()
210 peer->max_data = umin(RXRPC_JUMBO(1), peer->if_mtu - peer->hdrsize); in rxrpc_assess_MTU_size()
212 peer->pmtud_bad = peer->if_mtu - peer->hdrsize + 1; in rxrpc_assess_MTU_size()
258 peer->hdrsize = sizeof(struct iphdr); in rxrpc_init_peer()
262 peer->hdrsize = sizeof(struct ipv6hdr); in rxrpc_init_peer()
271 peer->hdrsize += sizeof(struct udphdr); in rxrpc_init_peer()
277 peer->hdrsize += sizeof(struct rxrpc_wire_header); in rxrpc_init_peer()
[all …]
H A Dpeer_event.c120 if (mtu < peer->hdrsize) in rxrpc_adjust_mtu()
121 mtu = peer->hdrsize + 4; in rxrpc_adjust_mtu()
125 max_data = max_t(int, mtu - peer->hdrsize, 500); in rxrpc_adjust_mtu()
H A Dconn_event.c161 if_mtu = conn->peer->if_mtu - conn->peer->hdrsize; in rxrpc_conn_retransmit_call()
/linux/drivers/infiniband/hw/hfi1/
H A Duc.c267 u32 hdrsize = packet->hlen; in hfi1_uc_rcv() local
379 if (unlikely(tlen != (hdrsize + pmtu + extra_bytes))) in hfi1_uc_rcv()
399 if (unlikely(tlen < (hdrsize + extra_bytes))) in hfi1_uc_rcv()
402 tlen -= (hdrsize + extra_bytes); in hfi1_uc_rcv()
475 if (unlikely(tlen != (hdrsize + pmtu + 4))) in hfi1_uc_rcv()
490 if (unlikely(tlen < (hdrsize + pad + 4))) in hfi1_uc_rcv()
493 tlen -= (hdrsize + extra_bytes); in hfi1_uc_rcv()
515 if (unlikely(tlen < (hdrsize + pad + 4))) in hfi1_uc_rcv()
518 tlen -= (hdrsize + extra_bytes); in hfi1_uc_rcv()
H A Drc.c2318 u16 hdrsize = packet->hlen; in rc_rcv_resp() local
2388 if (unlikely(tlen != (hdrsize + pmtu + extra_bytes))) in rc_rcv_resp()
2425 if (unlikely(tlen < (hdrsize + extra_bytes))) in rc_rcv_resp()
2447 if (unlikely(tlen <= (hdrsize + extra_bytes))) in rc_rcv_resp()
2450 tlen -= hdrsize + extra_bytes; in rc_rcv_resp()
2773 u32 hdrsize = packet->hlen; in hfi1_rc_rcv() local
2872 if (unlikely(tlen != (hdrsize + pmtu + extra_bytes))) in hfi1_rc_rcv()
2926 if (unlikely(tlen < (hdrsize + extra_bytes))) in hfi1_rc_rcv()
2929 tlen -= (hdrsize + extra_bytes); in hfi1_rc_rcv()
H A Dud.c810 u32 hdrsize = packet->hlen; in hfi1_ud_rcv() local
861 if (unlikely(tlen < (hdrsize + extra_bytes))) in hfi1_ud_rcv()
864 tlen -= hdrsize + extra_bytes; in hfi1_ud_rcv()
/linux/fs/xfs/scrub/
H A Dattr.c375 unsigned int hdrsize; in xchk_xattr_block() local
399 hdrsize = xfs_attr3_leaf_hdr_size(leaf); in xchk_xattr_block()
416 if (leafhdr.firstused < hdrsize) in xchk_xattr_block()
418 if (!xchk_xattr_set_map(ds->sc, ab->usedmap, 0, hdrsize)) in xchk_xattr_block()
498 int hdrsize; in xchk_xattr_rec() local
519 hdrsize = xfs_attr3_leaf_hdr_size(bp->b_addr); in xchk_xattr_rec()
521 if (nameidx < hdrsize || nameidx >= mp->m_attr_geo->blksize) { in xchk_xattr_rec()
H A Dattr_repair.c404 unsigned int hdrsize; in xrep_xattr_recover_leaf() local
413 hdrsize = xfs_attr3_leaf_hdr_size(leaf); in xrep_xattr_recover_leaf()
414 xchk_xattr_set_map(sc, ab->usedmap, 0, hdrsize); in xrep_xattr_recover_leaf()
/linux/net/netfilter/
H A Dnf_flow_table_ip.c151 u32 hdrsize; member
239 ctx->hdrsize = sizeof(struct tcphdr); in nf_flow_tuple_ip()
242 ctx->hdrsize = sizeof(struct udphdr); in nf_flow_tuple_ip()
246 ctx->hdrsize = sizeof(struct gre_base_hdr); in nf_flow_tuple_ip()
256 if (!pskb_may_pull(skb, thoff + ctx->hdrsize)) in nf_flow_tuple_ip()
510 if (skb_ensure_writable(skb, thoff + ctx->hdrsize)) in nf_flow_offload_forward()
1040 ctx->hdrsize = sizeof(struct tcphdr); in nf_flow_tuple_ipv6()
1043 ctx->hdrsize = sizeof(struct udphdr); in nf_flow_tuple_ipv6()
1047 ctx->hdrsize = sizeof(struct gre_base_hdr); in nf_flow_tuple_ipv6()
1057 if (!pskb_may_pull(skb, thoff + ctx->hdrsize)) in nf_flow_tuple_ipv6()
[all …]
/linux/scripts/dtc/libfdt/
H A Dfdt_sw.c111 const int hdrsize = FDT_ALIGN(sizeof(struct fdt_header), in fdt_create_with_flags() local
115 if (bufsize < hdrsize) in fdt_create_with_flags()
136 fdt_set_off_mem_rsvmap(fdt, hdrsize); in fdt_create_with_flags()
/linux/net/sched/
H A Dact_ct.c524 size_t hdrsize; in tcf_ct_flow_table_fill_tuple_ipv4() local
540 hdrsize = sizeof(struct tcphdr); in tcf_ct_flow_table_fill_tuple_ipv4()
543 hdrsize = sizeof(*ports); in tcf_ct_flow_table_fill_tuple_ipv4()
547 hdrsize = sizeof(struct gre_base_hdr); in tcf_ct_flow_table_fill_tuple_ipv4()
557 if (!pskb_network_may_pull(skb, thoff + hdrsize)) in tcf_ct_flow_table_fill_tuple_ipv4()
597 size_t hdrsize; in tcf_ct_flow_table_fill_tuple_ipv6() local
609 hdrsize = sizeof(struct tcphdr); in tcf_ct_flow_table_fill_tuple_ipv6()
612 hdrsize = sizeof(*ports); in tcf_ct_flow_table_fill_tuple_ipv6()
616 hdrsize = sizeof(struct gre_base_hdr); in tcf_ct_flow_table_fill_tuple_ipv6()
626 if (!pskb_network_may_pull(skb, thoff + hdrsize)) in tcf_ct_flow_table_fill_tuple_ipv6()
/linux/fs/smb/client/
H A Dnetlink.c48 .hdrsize = 0,
/linux/fs/quota/
H A Dnetlink.c18 .hdrsize = 0,
/linux/net/smc/
H A Dsmc_netlink.c137 .hdrsize = 0,
/linux/net/ipv6/ila/
H A Dila_main.c47 .hdrsize = 0,
/linux/drivers/scsi/aacraid/
H A Dcomminit.c370 unsigned long hdrsize = (sizeof(u32) * NUMBER_OF_COMM_QUEUES) * 2; in aac_comm_init() local
389 size = hdrsize + queuesize; in aac_comm_init()
394 queues = (struct aac_entry *)(((ulong)headers) + hdrsize); in aac_comm_init()
/linux/net/ieee802154/
H A Dnetlink.c127 .hdrsize = 0,
/linux/net/tipc/
H A Dnetlink.c290 .hdrsize = 0,
/linux/include/linux/
H A Dpe.h250 uint16_t hdrsize; /* header size in "paragraphs" */ member
/linux/net/netlabel/
H A Dnetlabel_calipso.c364 .hdrsize = 0,
/linux/net/core/
H A Ddrop_monitor.c563 size = nlmsg_msg_size(GENL_HDRLEN + net_drop_monitor_family.hdrsize); in net_dm_packet_report_size()
757 size = nlmsg_msg_size(GENL_HDRLEN + net_drop_monitor_family.hdrsize); in net_dm_hw_packet_report_size()
1657 .hdrsize = 0,
/linux/net/ipv6/
H A Dseg6.c492 .hdrsize = 0,
/linux/net/openvswitch/
H A Ddatapath.c739 .hdrsize = sizeof(struct ovs_header),
1564 .hdrsize = sizeof(struct ovs_header),
2110 .hdrsize = sizeof(struct ovs_header),
2638 .hdrsize = sizeof(struct ovs_header), in dp_unregister_genl()
/linux/net/hsr/
H A Dhsr_netlink.c552 .hdrsize = 0,
/linux/net/netlink/
H A Dgenetlink.c895 family->hdrsize, flags); in genlmsg_put()
1170 hdrlen = GENL_HDRLEN + family->hdrsize; in genl_family_rcv_msg()
1241 nla_put_u32(skb, CTRL_ATTR_HDRSIZE, family->hdrsize) || in ctrl_fill_info()

12