summaryrefslogtreecommitdiff
path: root/tools/lib/python/kdoc/python_version.py
diff options
context:
space:
mode:
authorYuyang Huang <sigefriedhyy@gmail.com>2026-10-12 10:17:03 +0900
committerPaolo Abeni <pabeni@redhat.com>2026-10-21 10:51:26 +0200
commit778a262a6c690621a5c37d2a1cebc88e4585a870 (patch)
tree11e957171db87f8ca5a9b9910143b79d96d13608 /tools/lib/python/kdoc/python_version.py
parentbc67283744788ad4ee7266ce64b0e420a46d2983 (diff)
net: change netdev_hw_addr_list count through helpers
The count of a netdev_hw_addr_list is changed in several places of dev_addr_lists.c and a few drivers read it directly. The next patch needs to account every change of the count of dev->mc. Add __hw_addr_count_add(), __hw_addr_count_inc(), __hw_addr_count_dec() and __hw_addr_count_reset(), use them for every change of the count and rename the field to _count so that a direct write stands out. Readers keep using netdev_hw_addr_list_count() and the netdev_uc_count() and netdev_mc_count() helpers, the few that read the field directly are converted. No functional change. Signed-off-by: Yuyang Huang <sigefriedhyy@gmail.com> Reviewed-by: Nicolas Dichtel <nicolas.dichtel@6wind.com> Link: https://patch.msgid.link/20261012011707.3378-3-sigefriedhyy@gmail.com Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'tools/lib/python/kdoc/python_version.py')
0 files changed, 0 insertions, 0 deletions