summaryrefslogtreecommitdiff
path: root/net/bridge/br_switchdev.c
diff options
context:
space:
mode:
authorArkadi Sharshevsky <arkadis@mellanox.com>2017-06-08 08:44:10 +0200
committerDavid S. Miller <davem@davemloft.net>2017-06-08 14:16:23 -0400
commitdc0ecabd6231f6cec2493783a4111f7a85175c8a (patch)
treec7ad9187dea4e3fb996f6b9e94ab39a22d99f60f /net/bridge/br_switchdev.c
parent6c8607eb34369092f2f3bf9f99522ed7555b3a04 (diff)
downloadlinux-dc0ecabd6231f6cec2493783a4111f7a85175c8a.tar.gz
net: switchdev: Add support for querying supported bridge flags by hardware
This is done as a preparation stage before setting the bridge port flags from the bridge code. Currently the device can be queried for the bridge flags state, but the querier cannot distinguish if the flag is disabled or if it is not supported at all. Thus, add new attr and a bit-mask which include information regarding the support on a per-flag basis. Drivers that support bridge offload but not support bridge flags should return zeroed bitmask. Signed-off-by: Arkadi Sharshevsky <arkadis@mellanox.com> Reviewed-by: Ido Schimmel <idosch@mellanox.com> Reviewed-by: Ivan Vecera <ivecera@redhat.com> Signed-off-by: Jiri Pirko <jiri@mellanox.com> Reviewed-by: Ivan Vecera <ivecera@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/bridge/br_switchdev.c')
0 files changed, 0 insertions, 0 deletions