| 2066 | } |
| 2067 | |
| 2068 | static void |
| 2069 | tcp_log_free_queue(struct tcp_log_dev_queue *param) |
| 2070 | { |
| 2071 | struct tcp_log_dev_log_queue *entry; |
| 2072 | |
| 2073 | KASSERT(param != NULL, ("%s: called with NULL param", __func__)); |
| 2074 | if (param == NULL) |
| 2075 | return; |
| 2076 | |
| 2077 | entry = (struct tcp_log_dev_log_queue *)param; |
| 2078 | |
| 2079 | /* Free the entries. */ |
| 2080 | tcp_log_free_entries(&entry->tldl_entries, &entry->tldl_count); |
| 2081 | |
| 2082 | /* Free the buffer, if it is allocated. */ |
| 2083 | if (entry->tldl_common.tldq_buf != NULL) |
| 2084 | free(entry->tldl_common.tldq_buf, M_TCPLOGDEV); |
| 2085 | |
| 2086 | /* Free the queue entry. */ |
| 2087 | free(entry, M_TCPLOGDEV); |
| 2088 | } |
| 2089 | |
| 2090 | static struct tcp_log_common_header * |
| 2091 | tcp_log_expandlogbuf(struct tcp_log_dev_queue *param) |
no test coverage detected