|
@@ -1720,7 +1720,7 @@ u32 tcp_tso_autosize(const struct sock *sk, unsigned int mss_now,
|
|
|
{
|
|
|
u32 bytes, segs;
|
|
|
|
|
|
- bytes = min(sk->sk_pacing_rate >> 10,
|
|
|
+ bytes = min(sk->sk_pacing_rate >> sk->sk_pacing_shift,
|
|
|
sk->sk_gso_max_size - 1 - MAX_TCP_HEADER);
|
|
|
|
|
|
/* Goal is to send at least one packet per ms,
|
|
@@ -2198,7 +2198,7 @@ static bool tcp_small_queue_check(struct sock *sk, const struct sk_buff *skb,
|
|
|
{
|
|
|
unsigned int limit;
|
|
|
|
|
|
- limit = max(2 * skb->truesize, sk->sk_pacing_rate >> 10);
|
|
|
+ limit = max(2 * skb->truesize, sk->sk_pacing_rate >> sk->sk_pacing_shift);
|
|
|
limit = min_t(u32, limit,
|
|
|
sock_net(sk)->ipv4.sysctl_tcp_limit_output_bytes);
|
|
|
limit <<= factor;
|