diff options
author | bz <bz@FreeBSD.org> | 2009-06-12 20:46:36 +0000 |
---|---|---|
committer | bz <bz@FreeBSD.org> | 2009-06-12 20:46:36 +0000 |
commit | 64d1a840734da28ba4d1f2510cb98a5c811446f0 (patch) | |
tree | 5ff1b55ac9b7429ea017f9890d322a9ffbd67ae6 /sys/net/flowtable.h | |
parent | 0e4ff69bbaf0a890087aaa913e3afc146145e5d5 (diff) | |
download | FreeBSD-src-64d1a840734da28ba4d1f2510cb98a5c811446f0.zip FreeBSD-src-64d1a840734da28ba4d1f2510cb98a5c811446f0.tar.gz |
Move the kernel option FLOWTABLE chacking from the header file to the
actual implementation.
Remove the accessor functions for the compiled out case, just returning
"unavail" values. Remove the kernel conditional from the header file as
it is no longer needed, only leaving the externs.
Hide the improperly virtualized SYSCTL/TUNABLE for the flowtable size
under the kernel option as well.
Reviewed by: rwatson
Diffstat (limited to 'sys/net/flowtable.h')
-rw-r--r-- | sys/net/flowtable.h | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/sys/net/flowtable.h b/sys/net/flowtable.h index bc62a04..a47665b 100644 --- a/sys/net/flowtable.h +++ b/sys/net/flowtable.h @@ -41,7 +41,6 @@ struct flowtable; extern struct flowtable *ip_ft; extern struct flowtable *ip_forward_ft; -#ifdef FLOWTABLE struct flowtable *flowtable_alloc(int nentry, int flags); /* @@ -52,22 +51,6 @@ struct flowtable *flowtable_alloc(int nentry, int flags); int flowtable_lookup(struct flowtable *ft, struct mbuf *m, struct route *ro); -#else -static __inline struct flowtable * -flowtable_alloc(int nentry, int flags) -{ - - return (NULL); -} - -static __inline int -flowtable_lookup(struct flowtable *ft, struct mbuf *m, - struct route *ro) -{ - - return (ENOTSUP); -} -#endif #endif #endif |