aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/xen-netback/interface.c
diff options
context:
space:
mode:
authorYing Xue <[email protected]>2013-01-20 22:30:09 +0000
committerPaul Gortmaker <[email protected]>2013-02-15 22:01:58 +0000
commitaba79f332f46ca8529f3e62a9fc2926c8fe75e44 (patch)
treebd22bd59d69f28e71f075912ec024082adf5a36a /drivers/net/xen-netback/interface.c
parenttipc: eliminate duplicated discard_rx_queue routine (diff)
downloadkernel-aba79f332f46ca8529f3e62a9fc2926c8fe75e44.tar.gz
kernel-aba79f332f46ca8529f3e62a9fc2926c8fe75e44.zip
tipc: byte-based overload control on socket receive queue
Change overload control to be purely byte-based, using sk->sk_rmem_alloc as byte counter, and compare it to a calculated upper limit for the socket receive queue. For all connection messages, irrespective of message importance, the overload limit is set to a constant value (i.e, 67MB). This limit should normally never be reached because of the lower limit used by the flow control algorithm, and is there only as a last resort in case a faulty peer doesn't respect the send window limit. For datagram messages, message importance is taken into account when calculating the overload limit. The calculation is based on sk->sk_rcvbuf, and is hence configurable via the socket option SO_RCVBUF. Cc: Neil Horman <[email protected]> Signed-off-by: Ying Xue <[email protected]> Signed-off-by: Jon Maloy <[email protected]> Signed-off-by: Paul Gortmaker <[email protected]>
Diffstat (limited to 'drivers/net/xen-netback/interface.c')
0 files changed, 0 insertions, 0 deletions