Home
last modified time | relevance | path

Searched refs:mss (Results 1 – 25 of 237) sorted by relevance

12345678910

/openbmc/linux/fs/proc/
H A Dtask_mmu.c410 static void smaps_page_accumulate(struct mem_size_stats *mss, in smaps_page_accumulate() argument
414 mss->pss += pss; in smaps_page_accumulate()
417 mss->pss_anon += pss; in smaps_page_accumulate()
419 mss->pss_shmem += pss; in smaps_page_accumulate()
421 mss->pss_file += pss; in smaps_page_accumulate()
424 mss->pss_locked += pss; in smaps_page_accumulate()
427 mss->pss_dirty += pss; in smaps_page_accumulate()
429 mss->private_dirty += size; in smaps_page_accumulate()
431 mss->shared_dirty += size; in smaps_page_accumulate()
434 mss->private_clean += size; in smaps_page_accumulate()
[all …]
/openbmc/linux/net/ipv4/
H A Dtcp_offload.c17 unsigned int seq, unsigned int mss) in tcp_gso_tstamp() argument
20 if (before(ts_seq, seq + mss)) { in tcp_gso_tstamp()
27 seq += mss; in tcp_gso_tstamp()
65 unsigned int mss; in tcp_gso_segment() local
85 mss = skb_shinfo(skb)->gso_size; in tcp_gso_segment()
86 if (unlikely(skb->len <= mss)) in tcp_gso_segment()
92 skb_shinfo(skb)->gso_segs = DIV_ROUND_UP(skb->len, mss); in tcp_gso_segment()
115 mss *= skb_shinfo(segs)->gso_segs; in tcp_gso_segment()
117 delta = (__force __wsum)htonl(oldlen + thlen + mss); in tcp_gso_segment()
124 tcp_gso_tstamp(segs, skb_shinfo(gso_skb)->tskey, seq, mss); in tcp_gso_segment()
[all …]
H A Dtcp_recovery.c225 u32 mss; in tcp_newreno_mark_lost() local
230 mss = tcp_skb_mss(skb); in tcp_newreno_mark_lost()
231 if (tcp_skb_pcount(skb) > 1 && skb->len > mss) in tcp_newreno_mark_lost()
233 mss, mss, GFP_ATOMIC); in tcp_newreno_mark_lost()
H A Dsyncookies.c157 const __u16 mss = *mssp; in __cookie_v4_init_sequence() local
160 if (mss >= msstab[mssind]) in __cookie_v4_init_sequence()
330 int full_space, mss; in cookie_v4_check() local
343 mss = __cookie_v4_check(ip_hdr(skb), th, cookie); in cookie_v4_check()
344 if (mss == 0) { in cookie_v4_check()
377 req->mss = mss; in cookie_v4_check()
435 tcp_select_initial_window(sk, full_space, req->mss, in cookie_v4_check()
H A Dudp_offload.c254 unsigned int mss = skb_shinfo(skb)->gso_size; in __udp_gso_segment_list() local
260 udp_hdr(skb)->len = htons(sizeof(struct udphdr) + mss); in __udp_gso_segment_list()
272 unsigned int mss; in __udp_gso_segment() local
277 mss = skb_shinfo(gso_skb)->gso_size; in __udp_gso_segment()
278 if (gso_skb->len <= sizeof(*uh) + mss) in __udp_gso_segment()
289 mss); in __udp_gso_segment()
333 mss *= skb_shinfo(segs)->gso_segs; in __udp_gso_segment()
344 newlen = htons(sizeof(*uh) + mss); in __udp_gso_segment()
403 unsigned int mss; in udp4_ufo_fragment() local
424 mss = skb_shinfo(skb)->gso_size; in udp4_ufo_fragment()
[all …]
H A Dtcp_timer.c161 int mss; in tcp_mtu_probing() local
171 mss = tcp_mtu_to_mss(sk, icsk->icsk_mtup.search_low) >> 1; in tcp_mtu_probing()
172 mss = min(READ_ONCE(net->ipv4.sysctl_tcp_base_mss), mss); in tcp_mtu_probing()
173 mss = max(mss, READ_ONCE(net->ipv4.sysctl_tcp_mtu_probe_floor)); in tcp_mtu_probing()
174 mss = max(mss, READ_ONCE(net->ipv4.sysctl_tcp_min_snd_mss)); in tcp_mtu_probing()
175 icsk->icsk_mtup.search_low = tcp_mss_to_mtu(sk, mss); in tcp_mtu_probing()
H A Dtcp_output.c125 int mss = tp->advmss; in tcp_advertise_mss() local
130 if (metric < mss) { in tcp_advertise_mss()
131 mss = metric; in tcp_advertise_mss()
132 tp->advmss = mss; in tcp_advertise_mss()
136 return (__u16)mss; in tcp_advertise_mss()
205 void tcp_select_initial_window(const struct sock *sk, int __space, __u32 mss, in tcp_select_initial_window() argument
219 if (space > mss) in tcp_select_initial_window()
220 space = rounddown(space, mss); in tcp_select_initial_window()
236 *rcv_wnd = min(*rcv_wnd, init_rcv_wnd * mss); in tcp_select_initial_window()
445 u16 mss; /* 0 to disable */ member
[all …]
H A Dtcp_metrics.c29 u16 mss; member
134 tm->tcpm_fastopen.mss = 0; in tcpm_suck_dst()
561 void tcp_fastopen_cache_get(struct sock *sk, u16 *mss, in tcp_fastopen_cache_get() argument
574 if (tfom->mss) in tcp_fastopen_cache_get()
575 *mss = tfom->mss; in tcp_fastopen_cache_get()
584 void tcp_fastopen_cache_set(struct sock *sk, u16 mss, in tcp_fastopen_cache_set() argument
599 if (mss) in tcp_fastopen_cache_set()
600 tfom->mss = mss; in tcp_fastopen_cache_set()
717 if (tfom->mss && in tcp_metrics_fill_info()
719 tfom->mss) < 0) in tcp_metrics_fill_info()
/openbmc/linux/tools/testing/selftests/net/
H A Dpsock_snd.sh15 readonly mss="$((${mtu} - ${iphlen} - ${udphlen}))"
16 readonly mss_exceeds="$((${mss} + 1))"
58 ./in_netns.sh ./psock_snd -l "${mss}"
72 ./in_netns.sh ./psock_snd -d -l "${mss}"
H A Dtcp_mmap.c455 int mss = 0; in main() local
486 mss = atoi(optarg); in main()
530 if (mss && in main()
532 &mss, sizeof(mss)) == -1) { in main()
562 if (mss && in main()
563 setsockopt(fd, IPPROTO_TCP, TCP_MAXSEG, &mss, sizeof(mss)) == -1) { in main()
/openbmc/linux/drivers/pmdomain/qcom/
H A Drpmhpd.c154 static struct rpmhpd mss = { variable
258 [SDM670_MSS] = &mss,
276 [SDM845_MSS] = &mss,
289 [SDX55_MSS] = &mss,
302 [SDX65_MSS] = &mss,
317 [RPMHPD_MSS] = &mss,
334 [SM6350_MSS] = &mss,
353 [SM8150_MSS] = &mss,
368 [SA8155P_MSS] = &mss,
407 [RPMHPD_MSS] = &mss,
[all …]
/openbmc/linux/net/ipv6/
H A Dsyncookies.c96 const __u16 mss = *mssp; in __cookie_v6_init_sequence() local
99 if (mss >= msstab[mssind]) in __cookie_v6_init_sequence()
139 int full_space, mss; in cookie_v6_check() local
151 mss = __cookie_v6_check(ipv6_hdr(skb), th, cookie); in cookie_v6_check()
152 if (mss == 0) { in cookie_v6_check()
183 req->mss = mss; in cookie_v6_check()
253 tcp_select_initial_window(sk, full_space, req->mss, in cookie_v6_check()
/openbmc/linux/drivers/scsi/fnic/
H A Dwq_enet_desc.h40 u64 address, u16 length, u16 mss, u16 header_length, in wq_enet_desc_enc() argument
46 desc->mss_loopback = cpu_to_le16((mss & WQ_ENET_MSS_MASK) << in wq_enet_desc_enc()
59 u64 *address, u16 *length, u16 *mss, u16 *header_length, in wq_enet_desc_dec() argument
65 *mss = (le16_to_cpu(desc->mss_loopback) >> WQ_ENET_MSS_SHIFT) & in wq_enet_desc_dec()
/openbmc/linux/drivers/net/ethernet/cisco/enic/
H A Dwq_enet_desc.h41 u64 address, u16 length, u16 mss, u16 header_length, in wq_enet_desc_enc() argument
47 desc->mss_loopback = cpu_to_le16((mss & WQ_ENET_MSS_MASK) << in wq_enet_desc_enc()
60 u64 *address, u16 *length, u16 *mss, u16 *header_length, in wq_enet_desc_dec() argument
66 *mss = (le16_to_cpu(desc->mss_loopback) >> WQ_ENET_MSS_SHIFT) & in wq_enet_desc_dec()
/openbmc/linux/drivers/scsi/snic/
H A Dwq_enet_desc.h38 u64 address, u16 length, u16 mss, u16 header_length, in wq_enet_desc_enc() argument
44 desc->mss_loopback = cpu_to_le16((mss & WQ_ENET_MSS_MASK) << in wq_enet_desc_enc()
57 u64 *address, u16 *length, u16 *mss, u16 *header_length, in wq_enet_desc_dec() argument
63 *mss = (le16_to_cpu(desc->mss_loopback) >> WQ_ENET_MSS_SHIFT) & in wq_enet_desc_dec()
/openbmc/linux/net/netfilter/
H A Dnfnetlink_osf.c73 u16 mss = 0; in nf_osf_match_one() local
106 mss = ctx->optp[3]; in nf_osf_match_one()
107 mss <<= 8; in nf_osf_match_one()
108 mss |= ctx->optp[2]; in nf_osf_match_one()
110 mss = ntohs((__force __be16)mss); in nf_osf_match_one()
141 if (ctx->window == f->wss.val * mss || in nf_osf_match_one()
147 if (ctx->window == f->wss.val * (mss + 40) || in nf_osf_match_one()
H A Dxt_TCPMSS.c102 if (info->mss == XT_TCPMSS_CLAMP_PMTU) { in tcpmss_mangle_packet()
114 newmss = info->mss; in tcpmss_mangle_packet()
269 if (info->mss == XT_TCPMSS_CLAMP_PMTU && in tcpmss_tg4_check()
293 if (info->mss == XT_TCPMSS_CLAMP_PMTU && in tcpmss_tg6_check()
H A Dnf_synproxy_core.c455 u16 mss = opts->mss_encode; in synproxy_send_client_synack() local
472 nth->seq = htonl(__cookie_v4_init_sequence(iph, th, &mss)); in synproxy_send_client_synack()
618 int mss; in synproxy_recv_client_ack() local
620 mss = __cookie_v4_check(ip_hdr(skb), th, ntohl(th->ack_seq) - 1); in synproxy_recv_client_ack()
621 if (mss == 0) { in synproxy_recv_client_ack()
627 opts->mss_option = mss; in synproxy_recv_client_ack()
868 u16 mss = opts->mss_encode; in synproxy_send_client_synack_ipv6() local
885 nth->seq = htonl(nf_ipv6_cookie_init_sequence(iph, th, &mss)); in synproxy_send_client_synack_ipv6()
1035 int mss; in synproxy_recv_client_ack_ipv6() local
1037 mss = nf_cookie_v6_check(ipv6_hdr(skb), th, ntohl(th->ack_seq) - 1); in synproxy_recv_client_ack_ipv6()
[all …]
/openbmc/linux/tools/testing/selftests/bpf/progs/
H A Dxdp_synproxy_kern.c308 static __always_inline void values_get_tcpipopts(__u16 *mss, __u8 *wscale, in values_get_tcpipopts() argument
317 *mss = (*value >> 32) & 0xffff; in values_get_tcpipopts()
319 *mss = *value & 0xffff; in values_get_tcpipopts()
325 *mss = ipv6 ? DEFAULT_MSS6 : DEFAULT_MSS4; in values_get_tcpipopts()
480 static __always_inline __u8 tcp_mkoptions(__be32 *buf, __be32 *tsopt, __u16 mss, in tcp_mkoptions() argument
485 *buf++ = bpf_htonl((TCPOPT_MSS << 24) | (TCPOLEN_MSS << 16) | mss); in tcp_mkoptions()
514 __u16 mss, __u8 wscale) in tcp_gen_synack() argument
530 tcp_header->doff += tcp_mkoptions(tcp_options, tsopt, mss, wscale); in tcp_gen_synack()
537 __u16 mss; in tcpv4_gen_synack() local
540 values_get_tcpipopts(&mss, &wscale, &ttl, false); in tcpv4_gen_synack()
[all …]
/openbmc/linux/net/batman-adv/
H A Dtp_meter.c143 static void batadv_tp_update_cwnd(struct batadv_tp_vars *tp_vars, u32 mss) in batadv_tp_update_cwnd() argument
150 tp_vars->cwnd = batadv_tp_cwnd(tp_vars->cwnd, mss, mss); in batadv_tp_update_cwnd()
157 ((mss * mss) << 6) / (tp_vars->cwnd << 3)); in batadv_tp_update_cwnd()
158 if (tp_vars->dec_cwnd < (mss << 3)) { in batadv_tp_update_cwnd()
163 tp_vars->cwnd = batadv_tp_cwnd(tp_vars->cwnd, mss, mss); in batadv_tp_update_cwnd()
635 size_t packet_len, mss; in batadv_tp_recv_ack() local
639 mss = BATADV_TP_PLEN; in batadv_tp_recv_ack()
704 tp_vars->cwnd = batadv_tp_cwnd(tp_vars->ss_threshold, 3 * mss, in batadv_tp_recv_ack()
705 mss); in batadv_tp_recv_ack()
731 mss, mss); in batadv_tp_recv_ack()
[all …]
/openbmc/linux/drivers/net/ethernet/sfc/
H A Def100_tx.c58 u32 mss; in ef100_tx_can_tso() local
67 mss = skb_shinfo(skb)->gso_size; in ef100_tx_can_tso()
68 if (unlikely(mss < 4)) { in ef100_tx_can_tso()
69 WARN_ONCE(1, "MSS of %u is too small for TSO\n", mss); in ef100_tx_can_tso()
83 if (skb->data_len / mss > nic_data->tso_max_frames) in ef100_tx_can_tso()
195 u32 mss = skb_shinfo(skb)->gso_size; in ef100_make_tso_desc() local
233 ESF_GZ_TX_TSO_MSS, mss, in ef100_make_tso_desc()
/openbmc/linux/ipc/
H A Dmsg.c194 struct msg_sender *mss, size_t msgsz) in ss_add() argument
196 mss->tsk = current; in ss_add()
197 mss->msgsz = msgsz; in ss_add()
203 list_add_tail(&mss->list, &msq->q_senders); in ss_add()
206 static inline void ss_del(struct msg_sender *mss) in ss_del() argument
208 if (mss->list.next) in ss_del()
209 list_del(&mss->list); in ss_del()
215 struct msg_sender *mss, *t; in ss_wakeup() local
219 list_for_each_entry_safe(mss, t, h, list) { in ss_wakeup()
221 mss->list.next = NULL; in ss_wakeup()
[all …]
/openbmc/linux/net/tipc/
H A Dmsg.c206 int mss, struct sk_buff_head *txq) in tipc_msg_append() argument
218 if (!skb || skb->len >= mss) { in tipc_msg_append()
219 skb = tipc_buf_acquire(mss, GFP_KERNEL); in tipc_msg_append()
234 cpy = min_t(size_t, rem, mss - mlen); in tipc_msg_append()
520 bool tipc_msg_try_bundle(struct sk_buff *tskb, struct sk_buff **skb, u32 mss, in tipc_msg_try_bundle() argument
534 if (mss <= INT_H_SIZE + msg_size(msg)) in tipc_msg_try_bundle()
549 if (unlikely(mss < BUF_ALIGN(INT_H_SIZE + tsz) + msg_size(msg))) in tipc_msg_try_bundle()
551 if (unlikely(pskb_expand_head(tskb, INT_H_SIZE, mss - tsz - INT_H_SIZE, in tipc_msg_try_bundle()
565 if (likely(tipc_msg_bundle(tskb, msg, mss))) { in tipc_msg_try_bundle()
/openbmc/linux/drivers/net/ethernet/google/gve/
H A Dgve_desc.h48 __be16 mss; /* TSO MSS */ member
87 __be16 mss; member
/openbmc/linux/include/linux/qed/
H A Dtcp_common.h86 __le16 mss; member
152 __le16 mss; member
217 __le16 mss; member

12345678910