diff mbox

[COLO-Frame,v14,38/40] filter-buffer: make filter_buffer_flush() public

Message ID 1454750932-7556-39-git-send-email-zhang.zhanghailiang@huawei.com (mailing list archive)
State New, archived
Headers show

Commit Message

Zhanghailiang Feb. 6, 2016, 9:28 a.m. UTC
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(-)
diff mbox

Patch

diff --git a/include/net/filter.h b/include/net/filter.h
index 0da0d97..9741aa0 100644
--- a/include/net/filter.h
+++ b/include/net/filter.h
@@ -83,4 +83,6 @@  NetFilterState *netdev_add_filter(const char *netdev_id,
                                   bool enabled,
                                   Error **errp);
 
+void filter_buffer_flush(NetFilterState *nf);
+
 #endif /* QEMU_NET_FILTER_H */
diff --git a/net/filter-buffer.c b/net/filter-buffer.c
index e70d156..f756a07 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);