remarkable-linux/net/l2tp
Guillaume Nault af87ae465a l2tp: remove useless duplicate session detection in l2tp_netlink
There's no point in checking for duplicate sessions at the beginning of
l2tp_nl_cmd_session_create(); the ->session_create() callbacks already
return -EEXIST when the session already exists.

Furthermore, even if l2tp_session_find() returns NULL, a new session
might be created right after the test. So relying on ->session_create()
to avoid duplicate session is the only sane behaviour.

Signed-off-by: Guillaume Nault <g.nault@alphalink.fr>
Signed-off-by: David S. Miller <davem@davemloft.net>
2017-04-11 13:48:09 -04:00
..
Kconfig
l2tp_core.c l2tp: take reference on sessions being dumped 2017-04-04 10:00:56 -07:00
l2tp_core.h l2tp: take reference on sessions being dumped 2017-04-04 10:00:56 -07:00
l2tp_debugfs.c l2tp: take reference on sessions being dumped 2017-04-04 10:00:56 -07:00
l2tp_eth.c L2TP:Adjust intf MTU, add underlay L3, L2 hdrs. 2017-04-06 13:43:31 -07:00
l2tp_ip.c l2tp: fix race in l2tp_recv_common() 2017-04-01 20:16:41 -07:00
l2tp_ip6.c l2tp: fix race in l2tp_recv_common() 2017-04-01 20:16:41 -07:00
l2tp_netlink.c l2tp: remove useless duplicate session detection in l2tp_netlink 2017-04-11 13:48:09 -04:00
l2tp_ppp.c l2tp: fix PPP pseudo-wire auto-loading 2017-04-04 10:08:42 -07:00
Makefile