net: bridge: add support for raw sysfs port options
authorNikolay Aleksandrov <nikolay@cumulusnetworks.com>
Mon, 23 Jul 2018 08:16:58 +0000 (11:16 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 23 Jul 2018 16:32:15 +0000 (09:32 -0700)
commita5f3ea54f3ccd881562d47f34b4a83441796bf19
tree2af1e3ca1a922ea9f4c8ff03266313b1d7d25c12
parent0a78c3803d1924845ded22a379b66f897ba647a3
net: bridge: add support for raw sysfs port options

This patch adds a new alternative store callback for port sysfs options
which takes a raw value (buf) and can use it directly. It is needed for the
backup port sysfs support since we have to pass the device by its name.

Signed-off-by: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/bridge/br_sysfs_if.c