]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: Add support for devlink device parameters
authorAndrew Lunn <andrew@lunn.ch>
Thu, 24 Oct 2019 23:03:51 +0000 (01:03 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Oct 2019 23:21:02 +0000 (16:21 -0700)
commit880c0117f5414bfe1329fed3f4bd6c3170be5bc5
treedcce1a7f6db75e20d32723a21b09ee380f2b58c1
parent076cdd3c6ea8dabbdb44ac2bab7c5cae5c8a1def
net: dsa: Add support for devlink device parameters

Add plumbing to allow DSA drivers to register parameters with devlink.

To keep with the abstraction, the DSA drivers pass the ds structure to
these helpers, and the DSA core then translates that to the devlink
structure associated to the device.

Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/dsa.h
net/dsa/dsa.c
net/dsa/dsa2.c