]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite82717a70baf52b0c02e4af430caf525bd5701c7
tree6a2c2997c6023d62303e10c41bc3953b4b97f320
parent225f181575d76345a3e89699b351f9cc3110679a
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