]> git.baikalelectronics.ru Git - kernel.git/commit
sctp: add support for RPS and RFS
authorMarcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Tue, 12 Apr 2016 21:11:31 +0000 (18:11 -0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 15 Apr 2016 01:40:24 +0000 (21:40 -0400)
commitbf9cea8be162153c310644f495b3f4d09c85f0e5
treeb22d8924cc7cfdf4126dc5466c844ea69bb60e0e
parenta69179cc43ac604a2fce16ef415e97a8696e4657
sctp: add support for RPS and RFS

This patch adds what's missing to properly support RPS and RFS on SCTP,
as some of it is already implemented in common calls.

Having support for RPS and RFS allows better scaling specially because
not all NICs support hashing SCTP headers.

Save the hash right when we dequeue a skb from inqueue so we do it only
once per skb instead of per chunk. New sockets will then inherit the
hash through sctp_copy_sock().

Signed-off-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sctp/inqueue.c
net/sctp/socket.c