l2tp_nl_cmd_ops
int l2tp_nl_register_ops(enum l2tp_pwtype pw_type, const struct l2tp_nl_cmd_ops *ops);
static const struct l2tp_nl_cmd_ops l2tp_eth_nl_cmd_ops = {
int l2tp_nl_register_ops(enum l2tp_pwtype pw_type, const struct l2tp_nl_cmd_ops *ops)
if (l2tp_nl_cmd_ops[pw_type])
l2tp_nl_cmd_ops[pw_type] = ops;
l2tp_nl_cmd_ops[pw_type] = NULL;
static const struct l2tp_nl_cmd_ops *l2tp_nl_cmd_ops[__L2TP_PWTYPE_MAX];
if (!l2tp_nl_cmd_ops[cfg.pw_type]) {
if (!l2tp_nl_cmd_ops[cfg.pw_type] || !l2tp_nl_cmd_ops[cfg.pw_type]->session_create) {
ret = l2tp_nl_cmd_ops[cfg.pw_type]->session_create(net, tunnel,
if (l2tp_nl_cmd_ops[pw_type] && l2tp_nl_cmd_ops[pw_type]->session_delete)
l2tp_nl_cmd_ops[pw_type]->session_delete(session);
static const struct l2tp_nl_cmd_ops pppol2tp_nl_cmd_ops = {