Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 99009806 authored by Allan Stephens's avatar Allan Stephens Committed by David S. Miller
Browse files

[TIPC]: Skip connection flow control in connectionless sockets



This patch optimizes the receive path for SOCK_DGRAM and SOCK_RDM
messages by skipping over code that handles connection-based flow
control.

Signed-off-by: default avatarAllan Stephens <allan.stephens@windriver.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 2c8dd116
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -919,7 +919,8 @@ restart:
	/* Consume received message (optional) */

	if (likely(!(flags & MSG_PEEK))) {
		if (unlikely(++tsock->p->conn_unacked >= TIPC_FLOW_CONTROL_WIN))
		if ((sock->state != SS_READY) &&
		    (++tsock->p->conn_unacked >= TIPC_FLOW_CONTROL_WIN))
			tipc_acknowledge(tsock->p->ref, tsock->p->conn_unacked);
		advance_queue(tsock);
	}