]> git.baikalelectronics.ru Git - kernel.git/commit
bonding: make a generic sysfs option store and fix comments
authorNikolay Aleksandrov <nikolay@redhat.com>
Thu, 8 May 2014 12:23:54 +0000 (14:23 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 9 May 2014 20:12:51 +0000 (16:12 -0400)
commitd997a00ce9230d3eb8508f6fc29cb748ad101bc5
treebc264e7f8164e1c6ca266d90360a2308e24ea564
parentf34b0a28ac9d3017a5ae628eaeb02361034f1da8
bonding: make a generic sysfs option store and fix comments

Introduce a generic option store function for sysfs and remove the
specific ones. The attribute name is used to match against the option
which is to be set.
Also adjust the "name" of tlb_dynamic_lb option to match the sysfs
entry and fix the comments and comment style in bond_sysfs.c
The comments which showed obvious behaviour (i.e. behaviour that's seen
in the option's entry) are removed, the ones that explained important
points about the setting function have been moved above the respective
set function in bond_options.c

There's only 1 exception: num_unsol_na/num_grat_arp since it has 2 names

CC: Jay Vosburgh <j.vosburgh@gmail.com>
CC: Veaceslav Falico <vfalico@gmail.com>
CC: Andy Gospodarek <andy@greyhouse.net>
CC: David S. Miller <davem@davemloft.net>
Signed-off-by: Nikolay Aleksandrov <nikolay@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bonding/bond_options.c
drivers/net/bonding/bond_options.h
drivers/net/bonding/bond_sysfs.c