summaryrefslogtreecommitdiffstats
path: root/sys/net/flowtable.c
diff options
context:
space:
mode:
authorglebius <glebius@FreeBSD.org>2012-08-02 13:20:44 +0000
committerglebius <glebius@FreeBSD.org>2012-08-02 13:20:44 +0000
commit34fe3f296a23dcd2b2315ab9b7cbe217a7e36c17 (patch)
tree51861ac00bbe53eb774230ad7cd58bb5b39aa9ff /sys/net/flowtable.c
parent55897c521e10c657445e8cc5242b180b8557ffb0 (diff)
downloadFreeBSD-src-34fe3f296a23dcd2b2315ab9b7cbe217a7e36c17.zip
FreeBSD-src-34fe3f296a23dcd2b2315ab9b7cbe217a7e36c17.tar.gz
The llentry_update() is used only by flowtable and the latter
always passes NULL pointer to it. Thus, code can be simplified and function renamed to llentry_alloc() to match rtalloc().
Diffstat (limited to 'sys/net/flowtable.c')
-rw-r--r--sys/net/flowtable.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/flowtable.c b/sys/net/flowtable.c
index 0e50377..2e209ef 100644
--- a/sys/net/flowtable.c
+++ b/sys/net/flowtable.c
@@ -1258,7 +1258,7 @@ uncached:
else
l3addr = (struct sockaddr_storage *)&ro->ro_dst;
- llentry_update(&lle, LLTABLE6(ifp), l3addr, ifp);
+ lle = llentry_alloc(ifp, LLTABLE6(ifp), l3addr);
}
#endif
#ifdef INET
@@ -1267,7 +1267,7 @@ uncached:
l3addr = (struct sockaddr_storage *)rt->rt_gateway;
else
l3addr = (struct sockaddr_storage *)&ro->ro_dst;
- llentry_update(&lle, LLTABLE(ifp), l3addr, ifp);
+ lle = llentry_alloc(ifp, LLTABLE(ifp), l3addr);
}
#endif
OpenPOWER on IntegriCloud