bonding: options handling cleanup
Make local functions static (ie. only used in bond_options.c) Make bond options parsing tables constant. Signed-off-by: Stephen Hemminger <stephen@networkplumber.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Šī revīzija ir iekļauta:

revīziju iesūtīja
David S. Miller

vecāks
fca28094cd
revīzija
f3253339a4
@@ -220,7 +220,7 @@ static ssize_t bonding_show_mode(struct device *d,
|
||||
struct device_attribute *attr, char *buf)
|
||||
{
|
||||
struct bonding *bond = to_bond(d);
|
||||
struct bond_opt_value *val;
|
||||
const struct bond_opt_value *val;
|
||||
|
||||
val = bond_opt_get_val(BOND_OPT_MODE, bond->params.mode);
|
||||
|
||||
@@ -251,7 +251,7 @@ static ssize_t bonding_show_xmit_hash(struct device *d,
|
||||
char *buf)
|
||||
{
|
||||
struct bonding *bond = to_bond(d);
|
||||
struct bond_opt_value *val;
|
||||
const struct bond_opt_value *val;
|
||||
|
||||
val = bond_opt_get_val(BOND_OPT_XMIT_HASH, bond->params.xmit_policy);
|
||||
|
||||
@@ -282,7 +282,7 @@ static ssize_t bonding_show_arp_validate(struct device *d,
|
||||
char *buf)
|
||||
{
|
||||
struct bonding *bond = to_bond(d);
|
||||
struct bond_opt_value *val;
|
||||
const struct bond_opt_value *val;
|
||||
|
||||
val = bond_opt_get_val(BOND_OPT_ARP_VALIDATE,
|
||||
bond->params.arp_validate);
|
||||
@@ -314,7 +314,7 @@ static ssize_t bonding_show_arp_all_targets(struct device *d,
|
||||
char *buf)
|
||||
{
|
||||
struct bonding *bond = to_bond(d);
|
||||
struct bond_opt_value *val;
|
||||
const struct bond_opt_value *val;
|
||||
|
||||
val = bond_opt_get_val(BOND_OPT_ARP_ALL_TARGETS,
|
||||
bond->params.arp_all_targets);
|
||||
@@ -348,7 +348,7 @@ static ssize_t bonding_show_fail_over_mac(struct device *d,
|
||||
char *buf)
|
||||
{
|
||||
struct bonding *bond = to_bond(d);
|
||||
struct bond_opt_value *val;
|
||||
const struct bond_opt_value *val;
|
||||
|
||||
val = bond_opt_get_val(BOND_OPT_FAIL_OVER_MAC,
|
||||
bond->params.fail_over_mac);
|
||||
@@ -505,7 +505,7 @@ static ssize_t bonding_show_lacp(struct device *d,
|
||||
char *buf)
|
||||
{
|
||||
struct bonding *bond = to_bond(d);
|
||||
struct bond_opt_value *val;
|
||||
const struct bond_opt_value *val;
|
||||
|
||||
val = bond_opt_get_val(BOND_OPT_LACP_RATE, bond->params.lacp_fast);
|
||||
|
||||
@@ -558,7 +558,7 @@ static ssize_t bonding_show_ad_select(struct device *d,
|
||||
char *buf)
|
||||
{
|
||||
struct bonding *bond = to_bond(d);
|
||||
struct bond_opt_value *val;
|
||||
const struct bond_opt_value *val;
|
||||
|
||||
val = bond_opt_get_val(BOND_OPT_AD_SELECT, bond->params.ad_select);
|
||||
|
||||
@@ -686,7 +686,7 @@ static ssize_t bonding_show_primary_reselect(struct device *d,
|
||||
char *buf)
|
||||
{
|
||||
struct bonding *bond = to_bond(d);
|
||||
struct bond_opt_value *val;
|
||||
const struct bond_opt_value *val;
|
||||
|
||||
val = bond_opt_get_val(BOND_OPT_PRIMARY_RESELECT,
|
||||
bond->params.primary_reselect);
|
||||
|
Atsaukties uz šo jaunā problēmā
Block a user