]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - include/linux/netdevice.h
net: Introduce netdev_*_once functions
authorGal Pressman <galp@mellanox.com>
Sun, 17 Sep 2017 10:43:58 +0000 (13:43 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Thu, 9 Nov 2017 04:27:01 +0000 (13:27 +0900)
commit375ef2b1f0d0b43b0d36ffdd521637ff59b0c13c
tree6a2c2997c6023d62303e10c41bc3953b4b97f320
parent355368d530460aa19b9d4291e2da2c6fd8929c76
net: Introduce netdev_*_once functions

Extend the net device error logging with netdev_*_once macros.
netdev_*_once are the equivalents of the dev_*_once macros which are
useful for messages that should only be logged once.

Also add netdev_WARN_ONCE, which is the "once" extension for the already
existing netdev_WARN macro.

Signed-off-by: Gal Pressman <galp@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
include/linux/netdevice.h