diff options
author | glebius <glebius@FreeBSD.org> | 2014-02-08 09:56:26 +0000 |
---|---|---|
committer | glebius <glebius@FreeBSD.org> | 2014-02-08 09:56:26 +0000 |
commit | 02f3acc9c190d345fd542f99cc00783fca4028b0 (patch) | |
tree | e0704318771b0f06e2ebc23ce3e3ceb075f9f878 /sys/net/flowtable.c | |
parent | 5b2777fc372ee810b31874617ea33be1f391e168 (diff) | |
download | FreeBSD-src-02f3acc9c190d345fd542f99cc00783fca4028b0.zip FreeBSD-src-02f3acc9c190d345fd542f99cc00783fca4028b0.tar.gz |
Remove never set flag FL_OVERWRITE. The only place where
it was checked led to lock/critnest leak.
Diffstat (limited to 'sys/net/flowtable.c')
-rw-r--r-- | sys/net/flowtable.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/sys/net/flowtable.c b/sys/net/flowtable.c index 9be23ff..e03c9a0 100644 --- a/sys/net/flowtable.c +++ b/sys/net/flowtable.c @@ -280,7 +280,6 @@ flowtable_pcpu_unlock(struct flowtable *table, uint32_t hash) #define FL_ENTRY_UNLOCK(table, hash) (table)->ft_unlock((table), (hash)) #define FL_STALE (1<<8) -#define FL_OVERWRITE (1<<10) static struct flentry *flowtable_lookup_common(struct flowtable *, struct sockaddr_storage *, struct sockaddr_storage *, struct mbuf *, int); @@ -833,8 +832,6 @@ flowtable_insert(struct flowtable *ft, uint32_t hash, uint32_t *key, FL_ENTRY_UNLOCK(ft, hash); uma_zfree(ft->ft_zone, newfle); - if (flags & FL_OVERWRITE) - goto skip; return (EEXIST); } /* |