Lines Matching refs:soflow_db_so
399 db->soflow_db_so = so; in soflow_db_init()
417 …struct socket *so = (hash_entry && hash_entry->soflow_db) ? hash_entry->soflow_db->soflow_db_so : … in soflow_entry_free()
439 …SOFLOW_LOG(LOG_INFO, db->soflow_db_so, hash_entry->soflow_debug, "<Close nstat> - context %lX", (u… in soflow_db_remove_entry()
454 soflow_feat_detach_entry_func_ptr(db->soflow_db_so, hash_entry); in soflow_db_remove_entry()
482 …SOFLOW_LOG(LOG_INFO, db->soflow_db_so, db->soflow_db_debug, "<db %p> freeing db (count == %d)", db… in soflow_db_free()
487 SOFLOW_ENTRY_LOG(LOG_INFO, db->soflow_db_so, entry, entry->soflow_debug, "Remove entry"); in soflow_db_free()
493 soflow_feat_detach_db_func_ptr(db->soflow_db_so, db); in soflow_db_free()
551 struct inpcb *inp = sotoinpcb(db->soflow_db_so); in soflow_db_lookup_entry_internal()
571 matchentry.soflow_debug = SOFLOW_ENABLE_DEBUG(db->soflow_db_so, (&matchentry)); in soflow_db_lookup_entry_internal()
572 SOFLOW_ENTRY_LOG(LOG_DEBUG, db->soflow_db_so, &matchentry, true, "Looking for entry"); in soflow_db_lookup_entry_internal()
592 …SOFLOW_ENTRY_LOG(LOG_DEBUG, db->soflow_db_so, nextentry, nextentry->soflow_debug, "Found entry v6"… in soflow_db_lookup_entry_internal()
597 …SOFLOW_ENTRY_LOG(LOG_DEBUG, db->soflow_db_so, nextentry, nextentry->soflow_debug, "Found entry v4"… in soflow_db_lookup_entry_internal()
604 …SOFLOW_ENTRY_LOG(LOG_DEBUG, db->soflow_db_so, &matchentry, matchentry.soflow_debug, "Entry not fou… in soflow_db_lookup_entry_internal()
630 …SOFLOW_ENTRY_LOG(LOG_DEBUG, db->soflow_db_so, nextentry, nextentry->soflow_debug, "Looking at entr… in soflow_db_lookup_by_feature_context_id()
633 …SOFLOW_ENTRY_LOG(LOG_DEBUG, db->soflow_db_so, nextentry, nextentry->soflow_debug, "Found entry by … in soflow_db_lookup_by_feature_context_id()
639 …SOFLOW_LOG(LOG_DEBUG, db->soflow_db_so, db->soflow_db_debug, "No entry found for featureID %llu <c… in soflow_db_lookup_by_feature_context_id()
651 if (db == NULL || db->soflow_db_so == NULL || feature_context_id == 0) { in soflow_db_get_feature_context()
655 socket_lock_assert_owned(db->soflow_db_so); in soflow_db_get_feature_context()
667 …SOFLOW_ENTRY_LOG(LOG_DEBUG, db->soflow_db_so, db->soflow_db_only_entry, db->soflow_db_only_entry->… in soflow_db_get_feature_context()
670 …SOFLOW_LOG(LOG_DEBUG, db->soflow_db_so, db->soflow_db_debug, "MISMATCHED only entry for featureID … in soflow_db_get_feature_context()
691 if (db == NULL || db->soflow_db_so == NULL) { in soflow_db_get_feature_context_id()
695 socket_lock_assert_owned(db->soflow_db_so); in soflow_db_get_feature_context_id()
721 struct inpcb *inp = db ? sotoinpcb(db->soflow_db_so) : NULL; in soflow_db_add_entry()
745 entry->soflow_debug = SOFLOW_ENABLE_DEBUG(db->soflow_db_so, entry); in soflow_db_add_entry()
758 socket_lock_assert_owned(db->soflow_db_so); in soflow_db_add_entry()
771 SOFLOW_LOG(LOG_INFO, db->soflow_db_so, db->soflow_db_debug, "total count %d", db->soflow_db_count); in soflow_db_add_entry()
852 struct inpcb *inp = sotoinpcb(db->soflow_db_so); in soflow_entry_update_local()
861 SOFLOW_ENTRY_LOG(LOG_INFO, db->soflow_db_so, entry, entry->soflow_debug, "Updated outifp"); in soflow_entry_update_local()
903 SOFLOW_ENTRY_LOG(LOG_INFO, db->soflow_db_so, entry, entry->soflow_debug, "Updated address"); in soflow_entry_update_local()
907 if (soflow_entry_local_port_needs_update(db->soflow_db_so, entry)) { in soflow_entry_update_local()
910 SOFLOW_ENTRY_LOG(LOG_INFO, db->soflow_db_so, entry, entry->soflow_debug, "Updated port"); in soflow_entry_update_local()
945 …struct socket *so = (hash_entry && hash_entry->soflow_db) ? hash_entry->soflow_db->soflow_db_so : … in soflow_nstat_provider_request_vals()
1066 …struct socket *so = (hash_entry && hash_entry->soflow_db) ? hash_entry->soflow_db->soflow_db_so : … in soflow_nstat_provider_request_extensions()
1119 …struct socket *so = (hash_entry && hash_entry->soflow_db) ? hash_entry->soflow_db->soflow_db_so : … in soflow_update_flow_stats()
1352 …struct socket *so = (hash_entry && hash_entry->soflow_db) ? hash_entry->soflow_db->soflow_db_so : … in soflow_gc_idle_timed_out()
1435 so = hash_entry->soflow_db ? hash_entry->soflow_db->soflow_db_so : NULL; in soflow_gc_expire()
1505 if (db == NULL || db->soflow_db_so == NULL || entry_apply_fn == NULL) { in soflow_db_apply()
1509 socket_lock_assert_owned(db->soflow_db_so); in soflow_db_apply()
1520 if (entry_apply_fn(db->soflow_db_so, entry, context) == false) { in soflow_db_apply()