aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorNikolay Aleksandrov <nikolay@cumulusnetworks.com>2018-09-26 17:01:00 +0300
committerDavid S. Miller <davem@davemloft.net>2018-09-26 10:04:22 -0700
commitae75767ec206c6f445973e5e6c5af8a865016e15 (patch)
tree57826657093c9e7ddbbef377cf6e98fab0d5c5ef /tools
parentnet: bridge: make struct opening bracket consistent (diff)
downloadlinux-dev-ae75767ec206c6f445973e5e6c5af8a865016e15.tar.xz
linux-dev-ae75767ec206c6f445973e5e6c5af8a865016e15.zip
net: bridge: add bitfield for options and convert vlan opts
Bridge options have usually been added as separate fields all over the net_bridge struct taking up space and ending up in different cache lines. Let's move them to a single bitfield to save up space and speedup lookups. This patch adds a simple API for option modifying and retrieving using bitops and converts the first user of the API - the bridge vlan options (vlan_enabled and vlan_stats_enabled). Signed-off-by: Nikolay Aleksandrov <nikolay@cumulusnetworks.com> Reviewed-by: Stephen Hemminger <stephen@networkplumber.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions