summaryrefslogtreecommitdiffstats
path: root/drivers/net/bonding/bond_main.c
diff options
context:
space:
mode:
authorVeaceslav Falico2014-05-15 21:39:56 +0200
committerDavid S. Miller2014-05-16 22:34:32 +0200
commit2807a9feb2393648f4db114fdf3fa99860ff6a36 (patch)
tree90a3995c88e73f5fc82ccf339d25676e3aa5def9 /drivers/net/bonding/bond_main.c
parentbonding: create a macro for bond mode and use it (diff)
downloadkernel-qcow2-linux-2807a9feb2393648f4db114fdf3fa99860ff6a36.tar.gz
kernel-qcow2-linux-2807a9feb2393648f4db114fdf3fa99860ff6a36.tar.xz
kernel-qcow2-linux-2807a9feb2393648f4db114fdf3fa99860ff6a36.zip
bonding: make IS_IP_TARGET_UNUSABLE_ADDRESS an inline function
Also, use standard IP primitives to check the address. CC: Jay Vosburgh <j.vosburgh@gmail.com> CC: Andy Gospodarek <andy@greyhouse.net> Signed-off-by: Veaceslav Falico <vfalico@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/bonding/bond_main.c')
-rw-r--r--drivers/net/bonding/bond_main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/bonding/bond_main.c b/drivers/net/bonding/bond_main.c
index 744c47111045..1af2be53ebb5 100644
--- a/drivers/net/bonding/bond_main.c
+++ b/drivers/net/bonding/bond_main.c
@@ -4195,7 +4195,7 @@ static int bond_check_params(struct bond_params *params)
catch mistakes */
__be32 ip;
if (!in4_pton(arp_ip_target[i], -1, (u8 *)&ip, -1, NULL) ||
- IS_IP_TARGET_UNUSABLE_ADDRESS(ip)) {
+ !bond_is_ip_target_ok(ip)) {
pr_warn("Warning: bad arp_ip_target module parameter (%s), ARP monitoring will not be performed\n",
arp_ip_target[i]);
arp_interval = 0;