diff options
author | Ben Pfaff <blp@ovn.org> | 2020-06-17 14:22:47 -0700 |
---|---|---|
committer | Ben Pfaff <blp@ovn.org> | 2020-10-16 19:22:24 -0700 |
commit | 8205fbc8f5e0ae5c85b9d1be2f5f53997ea4ff31 (patch) | |
tree | 670053b7fc93441fe351f3ba1ba2613a3e6b5474 /lib/dpif.c | |
parent | 807152a4ddfb89b65ef75c6b12937ecd68ea8cb3 (diff) | |
download | openvswitch-8205fbc8f5e0ae5c85b9d1be2f5f53997ea4ff31.tar.gz |
Eliminate "whitelist" and "blacklist" terms.
There is one remaining use under datapath. That change should happen
upstream in Linux first according to our usual policy.
Signed-off-by: Ben Pfaff <blp@ovn.org>
Acked-by: Alin Gabriel Serdean <aserdean@ovn.org>
Diffstat (limited to 'lib/dpif.c')
-rw-r--r-- | lib/dpif.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/dpif.c b/lib/dpif.c index 7cac3a629..53d65cf7c 100644 --- a/lib/dpif.c +++ b/lib/dpif.c @@ -79,9 +79,9 @@ struct registered_dpif_class { int refcount; }; static struct shash dpif_classes = SHASH_INITIALIZER(&dpif_classes); -static struct sset dpif_blacklist = SSET_INITIALIZER(&dpif_blacklist); +static struct sset dpif_disallowed = SSET_INITIALIZER(&dpif_disallowed); -/* Protects 'dpif_classes', including the refcount, and 'dpif_blacklist'. */ +/* Protects 'dpif_classes', including the refcount, and 'dpif_disallowed'. */ static struct ovs_mutex dpif_mutex = OVS_MUTEX_INITIALIZER; /* Rate limit for individual messages going to or from the datapath, output at @@ -134,8 +134,8 @@ dp_register_provider__(const struct dpif_class *new_class) struct registered_dpif_class *registered_class; int error; - if (sset_contains(&dpif_blacklist, new_class->type)) { - VLOG_DBG("attempted to register blacklisted provider: %s", + if (sset_contains(&dpif_disallowed, new_class->type)) { + VLOG_DBG("attempted to register disallowed provider: %s", new_class->type); return EINVAL; } @@ -219,13 +219,13 @@ dp_unregister_provider(const char *type) return error; } -/* Blacklists a provider. Causes future calls of dp_register_provider() with +/* Disallows a provider. Causes future calls of dp_register_provider() with * a dpif_class which implements 'type' to fail. */ void -dp_blacklist_provider(const char *type) +dp_disallow_provider(const char *type) { ovs_mutex_lock(&dpif_mutex); - sset_add(&dpif_blacklist, type); + sset_add(&dpif_disallowed, type); ovs_mutex_unlock(&dpif_mutex); } |