]> 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)
commit54f134a2790055a1cf112a503509282a4b49741e
treeb22d8924cc7cfdf4126dc5466c844ea69bb60e0e
parent9467c5e6650aa86ad254afbf7451b6e353f383bf
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