]> git.baikalelectronics.ru Git - kernel.git/commit
nfp: prepare print macros for use without netdev
authorJakub Kicinski <jakub.kicinski@netronome.com>
Tue, 6 Jun 2017 00:01:46 +0000 (17:01 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 7 Jun 2017 16:51:38 +0000 (12:51 -0400)
commitd1c9b95bfc4f80fe0c677f62d972ea955c2a6217
treef0c5f54f9ae57e6ec33120839922a40a7813c348
parent9e74ceb1194b23d48f40f697c049ff433ffc2f1a
nfp: prepare print macros for use without netdev

To be able to reuse print macros easily with control vNICs make the
macros check if netdev pointer is populated and use dev_* print
functions otherwise.

Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/netronome/nfp/nfp_net.h