diff options
author | Dave Taht <dave.taht@gmail.com> | 2019-09-03 01:29:36 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-09-05 09:38:32 +0200 |
commit | 842841ece540f7d7739bec3e9b79bdf9669d77d7 (patch) | |
tree | 494eb0527c91b8d399aba9f7016a4da5a83b5d7f /drivers/net/geneve.c | |
parent | net/sched: cbs: remove redundant assignment to variable port_rate (diff) | |
download | linux-842841ece540f7d7739bec3e9b79bdf9669d77d7.tar.xz linux-842841ece540f7d7739bec3e9b79bdf9669d77d7.zip |
Convert usage of IN_MULTICAST to ipv4_is_multicast
IN_MULTICAST's primary intent is as a uapi macro.
Elsewhere in the kernel we use ipv4_is_multicast consistently.
This patch unifies linux's multicast checks to use that function
rather than this macro.
Signed-off-by: Dave Taht <dave.taht@gmail.com>
Reviewed-by: Toke Høiland-Jørgensen <toke@toke.dk>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/geneve.c')
-rw-r--r-- | drivers/net/geneve.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/geneve.c b/drivers/net/geneve.c index cb2ea8facd8d..3ab24fdccd3b 100644 --- a/drivers/net/geneve.c +++ b/drivers/net/geneve.c @@ -1345,7 +1345,7 @@ static int geneve_nl2info(struct nlattr *tb[], struct nlattr *data[], info->key.u.ipv4.dst = nla_get_in_addr(data[IFLA_GENEVE_REMOTE]); - if (IN_MULTICAST(ntohl(info->key.u.ipv4.dst))) { + if (ipv4_is_multicast(info->key.u.ipv4.dst)) { NL_SET_ERR_MSG_ATTR(extack, data[IFLA_GENEVE_REMOTE], "Remote IPv4 address cannot be Multicast"); return -EINVAL; |