summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/net/if.c4
-rw-r--r--sys/net/if_var.h2
-rw-r--r--sys/net/if_vlan.c2
3 files changed, 4 insertions, 4 deletions
diff --git a/sys/net/if.c b/sys/net/if.c
index 4dbe4eb..dfd30d3 100644
--- a/sys/net/if.c
+++ b/sys/net/if.c
@@ -616,7 +616,7 @@ if_attach_internal(struct ifnet *ifp, int vmove)
}
if (ifp->if_get_counter == NULL)
- ifp->if_get_counter = if_get_counter_compat;
+ ifp->if_get_counter = if_get_counter_default;
if (!vmove) {
#ifdef MAC
@@ -1389,7 +1389,7 @@ if_rtdel(struct radix_node *rn, void *arg)
* Return counter values from old racy non-pcpu counters.
*/
uint64_t
-if_get_counter_compat(struct ifnet *ifp, ifnet_counter cnt)
+if_get_counter_default(struct ifnet *ifp, ifnet_counter cnt)
{
switch (cnt) {
diff --git a/sys/net/if_var.h b/sys/net/if_var.h
index 9490631..0ec1322 100644
--- a/sys/net/if_var.h
+++ b/sys/net/if_var.h
@@ -527,7 +527,7 @@ typedef void if_com_free_t(void *com, u_char type);
void if_register_com_alloc(u_char type, if_com_alloc_t *a, if_com_free_t *f);
void if_deregister_com_alloc(u_char type);
void if_data_copy(struct ifnet *, struct if_data *);
-uint64_t if_get_counter_compat(struct ifnet *, ifnet_counter);
+uint64_t if_get_counter_default(struct ifnet *, ifnet_counter);
void if_inc_counter(struct ifnet *, ifnet_counter, int64_t);
#define IF_LLADDR(ifp) \
diff --git a/sys/net/if_vlan.c b/sys/net/if_vlan.c
index 94a9ce0..3e45c66 100644
--- a/sys/net/if_vlan.c
+++ b/sys/net/if_vlan.c
@@ -1152,7 +1152,7 @@ vlan_get_counter(struct ifnet *ifp, ifnet_counter cnt)
case IFCOUNTER_OERRORS:
return (counter_u64_fetch(ifv->ifv_oerrors));
default:
- return (if_get_counter_compat(ifp, cnt));
+ return (if_get_counter_default(ifp, cnt));
}
/* NOTREACHED */
}
OpenPOWER on IntegriCloud