Loading include/net/red.h +1 −1 Original line number Diff line number Diff line Loading @@ -212,7 +212,7 @@ static inline unsigned long red_calc_qavg_from_idle_time(struct red_parms *p) * Seems, it is the best solution to * problem of too coarse exponent tabulation. */ us_idle = (p->qavg * us_idle) >> p->Scell_log; us_idle = (p->qavg * (u64)us_idle) >> p->Scell_log; if (us_idle < (p->qavg >> 1)) return p->qavg - us_idle; Loading net/bridge/br_netlink.c +1 −1 Original line number Diff line number Diff line Loading @@ -85,7 +85,7 @@ void br_ifinfo_notify(int event, struct net_bridge_port *port) goto err_out; err = br_fill_ifinfo(skb, port, current->pid, 0, event, 0); if (err) if (err < 0) goto err_kfree; NETLINK_CB(skb).dst_group = RTNLGRP_LINK; Loading net/ipv4/tcp_input.c +2 −1 Original line number Diff line number Diff line Loading @@ -3541,7 +3541,8 @@ void tcp_cwnd_application_limited(struct sock *sk) if (inet_csk(sk)->icsk_ca_state == TCP_CA_Open && sk->sk_socket && !test_bit(SOCK_NOSPACE, &sk->sk_socket->flags)) { /* Limited by application or receiver window. */ u32 win_used = max(tp->snd_cwnd_used, 2U); u32 init_win = tcp_init_cwnd(tp, __sk_dst_get(sk)); u32 win_used = max(tp->snd_cwnd_used, init_win); if (win_used < tp->snd_cwnd) { tp->snd_ssthresh = tcp_current_ssthresh(sk); tp->snd_cwnd = (tp->snd_cwnd + win_used) >> 1; Loading net/lapb/lapb_iface.c +7 −5 Original line number Diff line number Diff line Loading @@ -238,11 +238,13 @@ int lapb_setparms(struct net_device *dev, struct lapb_parms_struct *parms) goto out_put; if (lapb->state == LAPB_STATE_0) { if (((parms->mode & LAPB_EXTENDED) && (parms->window < 1 || parms->window > 127)) || (parms->window < 1 || parms->window > 7)) if (parms->mode & LAPB_EXTENDED) { if (parms->window < 1 || parms->window > 127) goto out_put; } else { if (parms->window < 1 || parms->window > 7) goto out_put; } lapb->mode = parms->mode; lapb->window = parms->window; } Loading net/llc/af_llc.c +8 −12 Original line number Diff line number Diff line Loading @@ -784,24 +784,20 @@ static int llc_ui_recvmsg(struct kiocb *iocb, struct socket *sock, copied += used; len -= used; if (used + offset < skb->len) continue; if (!(flags & MSG_PEEK)) { sk_eat_skb(sk, skb, 0); *seq = 0; } } while (len > 0); /* * According to UNIX98, msg_name/msg_namelen are ignored * on connected socket. -ANK * But... af_llc still doesn't have separate sets of methods for * SOCK_DGRAM and SOCK_STREAM :-( So we have to do this test, will * eventually fix this tho :-) -acme */ if (sk->sk_type == SOCK_DGRAM) /* For non stream protcols we get one packet per recvmsg call */ if (sk->sk_type != SOCK_STREAM) goto copy_uaddr; /* Partial read */ if (used + offset < skb->len) continue; } while (len > 0); out: release_sock(sk); return copied; Loading Loading
include/net/red.h +1 −1 Original line number Diff line number Diff line Loading @@ -212,7 +212,7 @@ static inline unsigned long red_calc_qavg_from_idle_time(struct red_parms *p) * Seems, it is the best solution to * problem of too coarse exponent tabulation. */ us_idle = (p->qavg * us_idle) >> p->Scell_log; us_idle = (p->qavg * (u64)us_idle) >> p->Scell_log; if (us_idle < (p->qavg >> 1)) return p->qavg - us_idle; Loading
net/bridge/br_netlink.c +1 −1 Original line number Diff line number Diff line Loading @@ -85,7 +85,7 @@ void br_ifinfo_notify(int event, struct net_bridge_port *port) goto err_out; err = br_fill_ifinfo(skb, port, current->pid, 0, event, 0); if (err) if (err < 0) goto err_kfree; NETLINK_CB(skb).dst_group = RTNLGRP_LINK; Loading
net/ipv4/tcp_input.c +2 −1 Original line number Diff line number Diff line Loading @@ -3541,7 +3541,8 @@ void tcp_cwnd_application_limited(struct sock *sk) if (inet_csk(sk)->icsk_ca_state == TCP_CA_Open && sk->sk_socket && !test_bit(SOCK_NOSPACE, &sk->sk_socket->flags)) { /* Limited by application or receiver window. */ u32 win_used = max(tp->snd_cwnd_used, 2U); u32 init_win = tcp_init_cwnd(tp, __sk_dst_get(sk)); u32 win_used = max(tp->snd_cwnd_used, init_win); if (win_used < tp->snd_cwnd) { tp->snd_ssthresh = tcp_current_ssthresh(sk); tp->snd_cwnd = (tp->snd_cwnd + win_used) >> 1; Loading
net/lapb/lapb_iface.c +7 −5 Original line number Diff line number Diff line Loading @@ -238,11 +238,13 @@ int lapb_setparms(struct net_device *dev, struct lapb_parms_struct *parms) goto out_put; if (lapb->state == LAPB_STATE_0) { if (((parms->mode & LAPB_EXTENDED) && (parms->window < 1 || parms->window > 127)) || (parms->window < 1 || parms->window > 7)) if (parms->mode & LAPB_EXTENDED) { if (parms->window < 1 || parms->window > 127) goto out_put; } else { if (parms->window < 1 || parms->window > 7) goto out_put; } lapb->mode = parms->mode; lapb->window = parms->window; } Loading
net/llc/af_llc.c +8 −12 Original line number Diff line number Diff line Loading @@ -784,24 +784,20 @@ static int llc_ui_recvmsg(struct kiocb *iocb, struct socket *sock, copied += used; len -= used; if (used + offset < skb->len) continue; if (!(flags & MSG_PEEK)) { sk_eat_skb(sk, skb, 0); *seq = 0; } } while (len > 0); /* * According to UNIX98, msg_name/msg_namelen are ignored * on connected socket. -ANK * But... af_llc still doesn't have separate sets of methods for * SOCK_DGRAM and SOCK_STREAM :-( So we have to do this test, will * eventually fix this tho :-) -acme */ if (sk->sk_type == SOCK_DGRAM) /* For non stream protcols we get one packet per recvmsg call */ if (sk->sk_type != SOCK_STREAM) goto copy_uaddr; /* Partial read */ if (used + offset < skb->len) continue; } while (len > 0); out: release_sock(sk); return copied; Loading