diff mbox series

[iproute2,1/5] bpf: replace slave with sub

Message ID 20200623235307.9216-2-stephen@networkplumber.org
State New
Headers show
Series [iproute2,1/5] bpf: replace slave with sub | expand

Commit Message

Stephen Hemminger June 23, 2020, 11:53 p.m. UTC
The term sub interface is more appropriate for bpf devices.

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
---
 lib/bpf.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
diff mbox series

Patch

diff --git a/lib/bpf.c b/lib/bpf.c
index c7d45077c14e..9271e169a992 100644
--- a/lib/bpf.c
+++ b/lib/bpf.c
@@ -666,7 +666,7 @@  static int bpf_gen_master(const char *base, const char *name)
 	return bpf_gen_global(bpf_sub_dir);
 }
 
-static int bpf_slave_via_bind_mnt(const char *full_name,
+static int bpf_sub_via_bind_mnt(const char *full_name,
 				  const char *full_link)
 {
 	int ret;
@@ -689,7 +689,7 @@  static int bpf_slave_via_bind_mnt(const char *full_name,
 	return ret;
 }
 
-static int bpf_gen_slave(const char *base, const char *name,
+static int bpf_gen_sub(const char *base, const char *name,
 			 const char *link)
 {
 	char bpf_lnk_dir[PATH_MAX + NAME_MAX + 1];
@@ -709,7 +709,7 @@  static int bpf_gen_slave(const char *base, const char *name,
 				return ret;
 			}
 
-			return bpf_slave_via_bind_mnt(bpf_sub_dir,
+			return bpf_sub_via_bind_mnt(bpf_sub_dir,
 						      bpf_lnk_dir);
 		}
 
@@ -733,7 +733,7 @@  static int bpf_gen_hierarchy(const char *base)
 
 	ret = bpf_gen_master(base, bpf_prog_to_subdir(__bpf_types[0]));
 	for (i = 1; i < ARRAY_SIZE(__bpf_types) && !ret; i++)
-		ret = bpf_gen_slave(base,
+		ret = bpf_gen_sub(base,
 				    bpf_prog_to_subdir(__bpf_types[i]),
 				    bpf_prog_to_subdir(__bpf_types[0]));
 	return ret;