// SPDX-License-Identifier: GPL-2.0-only #include #include #include #include "notifier-error-inject.h" static int priority; module_param(priority, int, 0); MODULE_PARM_DESC(priority, "specify memory notifier priority"); static struct notifier_err_inject memory_notifier_err_inject = { .actions = { { NOTIFIER_ERR_INJECT_ACTION(MEM_GOING_ONLINE) }, { NOTIFIER_ERR_INJECT_ACTION(MEM_GOING_OFFLINE) }, {} } }; static struct dentry *dir; static int err_inject_init(void) { int err; dir = notifier_err_inject_init("memory", notifier_err_inject_dir, &memory_notifier_err_inject, priority); if (IS_ERR(dir)) return PTR_ERR(dir); err = register_memory_notifier(&memory_notifier_err_inject.nb); if (err) debugfs_remove_recursive(dir); return err; } static void err_inject_exit(void) { unregister_memory_notifier(&memory_notifier_err_inject.nb); debugfs_remove_recursive(dir); } module_init(err_inject_init); module_exit(err_inject_exit); MODULE_DESCRIPTION("memory notifier error injection module"); MODULE_LICENSE("GPL"); MODULE_AUTHOR("Akinobu Mita "); t.armlinux.org.uk/linux-net-next.git/'>summaryrefslogtreecommitdiff
AgeCommit message (Expand)Author
2020-02-24net: ethernet: stmmac: demote warnings about missing optional clocksAhmad Fatoum
2020-02-24net: bcmgenet: reduce severity of missing clock warningsJeremy Linton
2020-02-24net: bcmgenet: Fetch MAC address from the adapterJeremy Linton
2020-02-24net: bcmgenet: Initial bcmgenet ACPI supportJeremy Linton
2020-02-24net: bcmgenet: enable automatic phy discoveryJeremy Linton
2020-02-24net: bcmgenet: refactor phy mode configurationJeremy Linton
2020-02-24mdio_bus: Add generic mdio_find_bus()Jeremy Linton
2020-02-24freescale: Replace zero-length array with flexible-array memberGustavo A. R. Silva
2020-02-24intel: Replace zero-length array with flexible-array memberGustavo A. R. Silva
2020-02-24netronome: Replace zero-length array with flexible-array memberGustavo A. R. Silva
2020-02-24toshiba: Replace zero-length array with flexible-array memberGustavo A. R. Silva
2020-02-24chelsio: Replace zero-length array with flexible-array memberGustavo A. R. Silva
2020-02-24net: dsa: felix: Use PHY_INTERFACE_MODE_INTERNAL instead of GMIIVladimir Oltean
2020-02-24bareudp: Fix uninitialized variable warnings.David S. Miller
2020-02-24net: Special handling for IP & MPLS.Martin Varghese
2020-02-24net: UDP tunnel encapsulation module for tunnelling different protocols like ...Martin Varghese
2020-02-24mlxsw: spectrum_trap: Add ACL devlink-trap supportJiri Pirko
2020-02-24mlxsw: spectrum_trap: Introduce dummy group with thin policerJiri Pirko
2020-02-24mlxsw: core: Extend MLXSW_RXL_DIS to register disabled trap groupJiri Pirko
2020-02-24mlxsw: core: Allow to enable/disable rx_listener for trapJiri Pirko
2020-02-24mlxsw: acl_flex_actions: Trap all ACL dropped packets to DISCARD_*_ACL trapsJiri Pirko
2020-02-24mlxsw: spectrum_acl: Pass the ingress indication down to flex actionJiri Pirko
2020-02-24mlxsw: spectrum_flower: Disable mixed bound blocks to contain action dropJiri Pirko
2020-02-24mlxsw: spectrum_acl: Track ingress and egress block bindingsJiri Pirko
2020-02-24mlxsw: spectrum_trap: Prepare mlxsw_core_trap_action_set() to handle not only...Jiri Pirko
2020-02-24mlxsw: spectrum_trap: Use listener->en/dis_action instead of hard-coded valuesJiri Pirko
2020-02-24mlxsw: core: Allow to register disabled traps using MLXSW_RXL_DISJiri Pirko
2020-02-24mlxsw: spectrum_trap: Set unreg_action to be SET_FW_DEFAULTJiri Pirko
2020-02-24net/atheros: Clean atheros code from driver versionLeon Romanovsky