Searched refs:max_len (Results 1 – 14 of 14) sorted by relevance
/net/x25/ |
D | x25_out.c | 56 int max_len = x25_pacsize_to_bytes(x25->facilities.pacsize_out); in x25_output() local 58 if (skb->len - header_len > max_len) { in x25_output() 67 skbn = sock_alloc_send_skb(sk, frontlen + max_len, in x25_output() 83 len = max_len > skb->len ? skb->len : max_len; in x25_output()
|
/net/netfilter/ipvs/ |
D | ip_vs_pe_sip.c | 17 size_t max_len = 64; in ip_vs_dbg_callid() local 18 size_t len = min3(max_len, callid_len, buf_len - *idx - 1); in ip_vs_dbg_callid()
|
/net/core/ |
D | page_pool.c | 87 if (!pool->p.max_len) in page_pool_init() 209 dma_sync_size = min(dma_sync_size, pool->p.max_len); in page_pool_dma_sync_for_device() 233 page_pool_dma_sync_for_device(pool, page, pool->p.max_len); in page_pool_dma_map()
|
D | skbuff.c | 5650 unsigned int max_len) { in skb_gso_size_check() argument 5655 return seg_len <= max_len; in skb_gso_size_check() 5661 if (seg_len + skb_headlen(iter) > max_len) in skb_gso_size_check()
|
D | filter.c | 3689 u32 max_len = BPF_SKB_MAX_LEN; in __bpf_skb_change_tail() local 3693 if (unlikely(flags || new_len > max_len || new_len < min_len)) in __bpf_skb_change_tail() 3762 u32 max_len = BPF_SKB_MAX_LEN; in __bpf_skb_change_head() local 3766 if (unlikely(flags || (!skb_is_gso(skb) && new_len > max_len) || in __bpf_skb_change_head()
|
/net/bluetooth/ |
D | amp.c | 263 cp.max_len = cpu_to_le16(hdev->amp_assoc_size); in amp_read_loc_assoc_frag() 282 cp.max_len = cpu_to_le16(hdev->amp_assoc_size); in amp_read_loc_assoc() 305 cp.max_len = cpu_to_le16(hdev->amp_assoc_size); in amp_read_loc_assoc_final_data()
|
D | mgmt.c | 7582 u8 max_len = HCI_MAX_AD_LENGTH; in tlv_data_max_len() local 7588 max_len -= 3; in tlv_data_max_len() 7591 max_len -= 3; in tlv_data_max_len() 7594 max_len -= calculate_name_len(hdev); in tlv_data_max_len() 7597 max_len -= 4; in tlv_data_max_len() 7600 return max_len; in tlv_data_max_len() 7629 u8 max_len; in tlv_data_is_valid() local 7631 max_len = tlv_data_max_len(hdev, adv_flags, is_adv_data); in tlv_data_is_valid() 7633 if (len > max_len) in tlv_data_is_valid()
|
/net/openvswitch/ |
D | actions.c | 1204 int len, max_len, rem = nla_len(attr); in execute_check_pkt_len() local 1215 max_len = arg->pkt_len; in execute_check_pkt_len() 1217 if ((skb_is_gso(skb) && skb_gso_validate_mac_len(skb, max_len)) || in execute_check_pkt_len() 1218 len <= max_len) { in execute_check_pkt_len() 1317 if (skb->len > trunc->max_len) in do_execute_actions() 1318 OVS_CB(skb)->cutlen = skb->len - trunc->max_len; in do_execute_actions()
|
D | flow_netlink.c | 3199 if (trunc->max_len < ETH_HLEN) in __ovs_nla_copy_actions()
|
/net/ipv4/ |
D | tcp_output.c | 2007 u32 partial, needed, window, max_len; in tcp_mss_split_point() local 2010 max_len = mss_now * max_segs; in tcp_mss_split_point() 2012 if (likely(max_len <= window && skb != tcp_write_queue_tail(sk))) in tcp_mss_split_point() 2013 return max_len; in tcp_mss_split_point() 2017 if (max_len <= needed) in tcp_mss_split_point() 2018 return max_len; in tcp_mss_split_point()
|
/net/can/ |
D | gw.c | 538 int max_len = nskb->len - offsetof(struct canfd_frame, data); in can_can_gw_rcv() local 541 if (cf->len > max_len) { in can_can_gw_rcv()
|
/net/packet/ |
D | af_packet.c | 3461 const size_t max_len = min(sizeof(skb->cb), in packet_recvmsg() local 3485 if (WARN_ON_ONCE(copy_len > max_len)) { in packet_recvmsg() 3486 copy_len = max_len; in packet_recvmsg()
|
/net/sctp/ |
D | socket.c | 3281 int min_len, max_len; in sctp_setsockopt_maxseg() local 3286 max_len = SCTP_MAX_CHUNK_LEN - datasize; in sctp_setsockopt_maxseg() 3288 if (val < min_len || val > max_len) in sctp_setsockopt_maxseg()
|
/net/wireless/ |
D | nl80211.c | 13269 if (tok->len > rdev->wiphy.wowlan->tcp->tok->max_len) in nl80211_parse_wowlan_tcp()
|