summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorBen Pfaff <blp@ovn.org>2018-02-16 12:42:03 -0800
committerBen Pfaff <blp@ovn.org>2018-03-14 11:39:33 -0700
commit11b1e59f3af06a3ab02496abbb65564a077744a7 (patch)
tree1e2785279708238875b3e1dc4a02b3ebfd5cc1ae /lib
parent0960a98b7720c74e0ae873933ca9d5d4d089c6f5 (diff)
downloadopenvswitch-11b1e59f3af06a3ab02496abbb65564a077744a7.tar.gz
ofp-match: Make some public functions static.
These were only used inside ofp-match itself. Signed-off-by: Ben Pfaff <blp@ovn.org> Acked-by: Justin Pettit <jpettit@ovn.org>
Diffstat (limited to 'lib')
-rw-r--r--lib/ofp-match.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ofp-match.c b/lib/ofp-match.c
index d1031f6aa..c907f2908 100644
--- a/lib/ofp-match.c
+++ b/lib/ofp-match.c
@@ -39,7 +39,7 @@ static struct vlog_rate_limit rl = VLOG_RATE_LIMIT_INIT(1, 5);
* ..., 32 and higher wildcard the entire field. This is the *opposite* of the
* usual convention where e.g. /24 indicates that 8 bits (not 24 bits) are
* wildcarded. */
-ovs_be32
+static ovs_be32
ofputil_wcbits_to_netmask(int wcbits)
{
wcbits &= 0x3f;
@@ -52,7 +52,7 @@ ofputil_wcbits_to_netmask(int wcbits)
*
* If 'netmask' is not a CIDR netmask (see ip_is_cidr()), the return value will
* still be in the valid range but isn't otherwise meaningful. */
-int
+static int
ofputil_netmask_to_wcbits(ovs_be32 netmask)
{
return 32 - ip_count_cidr_bits(netmask);