Skip to content

Commit

Permalink
bonding: fix a parameter name in error message
Browse files Browse the repository at this point in the history
When parsing module parameters, bond_check_params() erroneously use
'xor_mode' as the name of a module parameter in an error message.

The right name for this parameter is 'xmit_hash_policy'.

Signed-off-by: Nicolas de Pesloüan <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
Nicolas de Pesloüan authored and davem330 committed Oct 7, 2009
1 parent b301e82 commit 3c6aaa2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/net/bonding/bond_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -4706,7 +4706,8 @@ static int bond_check_params(struct bond_params *params)
if ((bond_mode != BOND_MODE_XOR) &&
(bond_mode != BOND_MODE_8023AD)) {
pr_info(DRV_NAME
": xor_mode param is irrelevant in mode %s\n",
": xmit_hash_policy param is irrelevant in"
" mode %s\n",
bond_mode_name(bond_mode));
} else {
xmit_hashtype = bond_parse_parm(xmit_hash_policy,
Expand Down

0 comments on commit 3c6aaa2

Please sign in to comment.