]> 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)
commitb45467938f6c7ee62b20270e66fbe01b2668776e
treedcce1a7f6db75e20d32723a21b09ee380f2b58c1
parent7a84c726b54a6be85e494eb7500fed5883121132
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