L3MDEV_TYPE_MAX
static struct l3mdev_handler l3mdev_handlers[L3MDEV_TYPE_MAX + 1];
if (l3type <= L3MDEV_TYPE_UNSPEC || l3type > L3MDEV_TYPE_MAX)