Message ID | 1456108832-24212-37-git-send-email-zhang.zhanghailiang@huawei.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/include/net/filter.h b/include/net/filter.h index faccedd..8ffd53b 100644 --- a/include/net/filter.h +++ b/include/net/filter.h @@ -76,4 +76,6 @@ ssize_t qemu_netfilter_pass_to_next(NetClientState *sender, int iovcnt, void *opaque); +void filter_buffer_flush(NetFilterState *nf); + #endif /* QEMU_NET_FILTER_H */ diff --git a/net/filter-buffer.c b/net/filter-buffer.c index 34dc312..91ddd68 100644 --- a/net/filter-buffer.c +++ b/net/filter-buffer.c @@ -27,7 +27,7 @@ typedef struct FilterBufferState { QEMUTimer release_timer; } FilterBufferState; -static void filter_buffer_flush(NetFilterState *nf) +void filter_buffer_flush(NetFilterState *nf) { FilterBufferState *s = FILTER_BUFFER(nf);
We will use it in COLO to flush the buffered packets. Signed-off-by: zhanghailiang <zhang.zhanghailiang@huawei.com> Cc: Jason Wang <jasowang@redhat.com> Cc: Yang Hongyang <hongyang.yang@easystack.cn> --- v14: - New patch --- include/net/filter.h | 2 ++ net/filter-buffer.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-)