OSDN Git Service

sctp: do reuseport_select_sock in __sctp_rcv_lookup_endpoint
authorXin Long <lucien.xin@gmail.com>
Mon, 12 Nov 2018 10:27:15 +0000 (18:27 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 12 Nov 2018 17:09:51 +0000 (09:09 -0800)
commit532ae2f10e6eab2ec66ecad805d57d3d70cea020
tree7feefe4e3e2ee6637388ab49b09727f330f8db2e
parent30beabb3c32122d533ce0e2fc712f9d720a82f9f
sctp: do reuseport_select_sock in __sctp_rcv_lookup_endpoint

This is a part of sk_reuseport support for sctp, and it selects a
sock by the hashkey of lport, paddr and dport by default. It will
work until sk_reuseport support is added in sctp_get_port_local()
in the next patch.

v1->v2:
  - define lport as __be16 instead of __be32 as Marcelo pointed in
    __sctp_rcv_lookup_endpoint().

Acked-by: Neil Horman <nhorman@tuxdriver.com>
Signed-off-by: Xin Long <lucien.xin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sctp/input.c