Tonghao Zhang b80350f393 net: sock: simplify tw proto registration
Introduce the new function tw_prot_init (inspired by
req_prot_init) to simplify "proto_register" function.

tw_prot_cleanup will take care of a partially initialized
timewait_sock_ops.

Signed-off-by: Tonghao Zhang <xiangxia.m.yue@gmail.com>
Reviewed-by: Alexander Duyck <alexanderduyck@fb.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2021-03-11 16:05:08 -08:00
..
2021-03-03 16:57:59 -08:00
2021-02-06 11:15:28 -08:00
2021-03-10 15:47:52 -08:00
2021-02-26 09:17:24 -08:00
2021-01-24 14:27:18 +01:00
2021-02-27 08:29:02 -08:00