summaryrefslogtreecommitdiffstats
path: root/fs/9p
diff options
context:
space:
mode:
authorPetr Machata <petrm@mellanox.com>2018-05-30 02:56:03 +0200
committerDavid S. Miller <davem@davemloft.net>2018-05-31 20:13:42 +0200
commitd66e4348969de33cccdd2bc3920b49fb0114b306 (patch)
tree2e8a43ebe208fe6cfa5f1a1dd3fc8ec9b8480fed /fs/9p
parentqed*: Add link change count value to ethtool statistics display. (diff)
downloadlinux-d66e4348969de33cccdd2bc3920b49fb0114b306.tar.xz
linux-d66e4348969de33cccdd2bc3920b49fb0114b306.zip
net: bridge: Extract boilerplate around switchdev_port_obj_*()
A call to switchdev_port_obj_add() or switchdev_port_obj_del() involves initializing a struct switchdev_obj_port_vlan, a piece of code that repeats on each call site almost verbatim. While in the current codebase there is just one duplicated add call, the follow-up patches add more of both add and del calls. Thus to remove the duplication, extract the repetition into named functions and reuse. Signed-off-by: Petr Machata <petrm@mellanox.com> Reviewed-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com> Reviewed-by: Nikolay Aleksandrov <nikolay@cumulusnetworks.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'fs/9p')
0 files changed, 0 insertions, 0 deletions