From: Eduardo Habkost <ehabkost@redhat.com>
To: qemu-devel@nongnu.org, Peter Maydell <peter.maydell@linaro.org>
Cc: "Paolo Bonzini" <pbonzini@redhat.com>,
"Daniel P. Berrangé" <berrange@redhat.com>,
"Zhang Chen" <chen.zhang@intel.com>
Subject: [PULL 21/33] filter-rewriter: Rename FILTER_COLO_REWRITER to FILTER_REWRITER
Date: Thu, 10 Sep 2020 14:21:00 -0400 [thread overview]
Message-ID: <20200910182112.4030917-22-ehabkost@redhat.com> (raw)
In-Reply-To: <20200910182112.4030917-1-ehabkost@redhat.com>
Make the type checking macro name consistent with the TYPE_*
constant.
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Reviewed-by: Zhang Chen <chen.zhang@intel.com>
Message-Id: <20200902224311.1321159-41-ehabkost@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
---
net/filter-rewriter.c | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)
diff --git a/net/filter-rewriter.c b/net/filter-rewriter.c
index 113e293207..44f6021dd8 100644
--- a/net/filter-rewriter.c
+++ b/net/filter-rewriter.c
@@ -25,7 +25,7 @@
#define TYPE_FILTER_REWRITER "filter-rewriter"
typedef struct RewriterState RewriterState;
-DECLARE_INSTANCE_CHECKER(RewriterState, FILTER_COLO_REWRITER,
+DECLARE_INSTANCE_CHECKER(RewriterState, FILTER_REWRITER,
TYPE_FILTER_REWRITER)
#define FAILOVER_MODE_ON true
@@ -47,7 +47,7 @@ static void filter_rewriter_failover_mode(RewriterState *s)
static void filter_rewriter_flush(NetFilterState *nf)
{
- RewriterState *s = FILTER_COLO_REWRITER(nf);
+ RewriterState *s = FILTER_REWRITER(nf);
if (!qemu_net_queue_flush(s->incoming_queue)) {
/* Unable to empty the queue, purge remaining packets */
@@ -252,7 +252,7 @@ static ssize_t colo_rewriter_receive_iov(NetFilterState *nf,
int iovcnt,
NetPacketSent *sent_cb)
{
- RewriterState *s = FILTER_COLO_REWRITER(nf);
+ RewriterState *s = FILTER_REWRITER(nf);
Connection *conn;
ConnectionKey key;
Packet *pkt;
@@ -350,7 +350,7 @@ static gboolean offset_is_nonzero(gpointer key,
static void colo_rewriter_handle_event(NetFilterState *nf, int event,
Error **errp)
{
- RewriterState *rs = FILTER_COLO_REWRITER(nf);
+ RewriterState *rs = FILTER_REWRITER(nf);
switch (event) {
case COLO_EVENT_CHECKPOINT:
@@ -370,7 +370,7 @@ static void colo_rewriter_handle_event(NetFilterState *nf, int event,
static void colo_rewriter_cleanup(NetFilterState *nf)
{
- RewriterState *s = FILTER_COLO_REWRITER(nf);
+ RewriterState *s = FILTER_REWRITER(nf);
/* flush packets */
if (s->incoming_queue) {
@@ -381,7 +381,7 @@ static void colo_rewriter_cleanup(NetFilterState *nf)
static void colo_rewriter_setup(NetFilterState *nf, Error **errp)
{
- RewriterState *s = FILTER_COLO_REWRITER(nf);
+ RewriterState *s = FILTER_REWRITER(nf);
s->connection_track_table = g_hash_table_new_full(connection_key_hash,
connection_key_equal,
@@ -392,7 +392,7 @@ static void colo_rewriter_setup(NetFilterState *nf, Error **errp)
static bool filter_rewriter_get_vnet_hdr(Object *obj, Error **errp)
{
- RewriterState *s = FILTER_COLO_REWRITER(obj);
+ RewriterState *s = FILTER_REWRITER(obj);
return s->vnet_hdr;
}
@@ -401,14 +401,14 @@ static void filter_rewriter_set_vnet_hdr(Object *obj,
bool value,
Error **errp)
{
- RewriterState *s = FILTER_COLO_REWRITER(obj);
+ RewriterState *s = FILTER_REWRITER(obj);
s->vnet_hdr = value;
}
static void filter_rewriter_init(Object *obj)
{
- RewriterState *s = FILTER_COLO_REWRITER(obj);
+ RewriterState *s = FILTER_REWRITER(obj);
s->vnet_hdr = false;
s->failover_mode = FAILOVER_MODE_OFF;
--
2.26.2
next prev parent reply other threads:[~2020-09-10 18:49 UTC|newest]
Thread overview: 35+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-09-10 18:20 [PULL 00/33] QOM boilerplate cleanup (v4) Eduardo Habkost
2020-09-10 18:20 ` [PULL 01/33] memory: Remove kernel-doc comment marker Eduardo Habkost
2020-09-10 18:20 ` [PULL 02/33] qom: make object_ref/unref use a void * instead of Object * Eduardo Habkost
2020-09-10 18:20 ` [PULL 03/33] qom: provide convenient macros for declaring and defining types Eduardo Habkost
2020-09-10 18:20 ` [PULL 04/33] qom: Allow class type name to be specified in OBJECT_DECLARE* Eduardo Habkost
2020-09-10 18:20 ` [PULL 05/33] qom: DECLARE_*_CHECKERS macros Eduardo Habkost
2020-09-10 18:20 ` [PULL 06/33] qom: Make type checker functions accept const pointers Eduardo Habkost
2020-09-10 18:20 ` [PULL 07/33] codeconverter: script for automating QOM code cleanups Eduardo Habkost
2020-09-10 18:20 ` [PULL 08/33] Delete duplicate QOM typedefs Eduardo Habkost
2020-09-10 18:20 ` [PULL 09/33] Move QOM typedefs and add missing includes Eduardo Habkost
2020-09-10 18:20 ` [PULL 10/33] Use DECLARE_*CHECKER* macros Eduardo Habkost
2020-09-10 18:20 ` [PULL 11/33] Use DECLARE_*CHECKER* when possible (--force mode) Eduardo Habkost
2020-09-10 18:20 ` [PULL 12/33] Use OBJECT_DECLARE_TYPE where possible Eduardo Habkost
2020-09-10 18:20 ` [PULL 13/33] Use OBJECT_DECLARE_SIMPLE_TYPE when possible Eduardo Habkost
2020-09-10 18:20 ` [PULL 14/33] gpex: Fix type checking function name Eduardo Habkost
2020-09-10 18:20 ` [PULL 15/33] ap-device: Rename AP_DEVICE_TYPE to TYPE_AP_DEVICE Eduardo Habkost
2020-09-10 18:20 ` [PULL 16/33] dev-smartcard-reader: Rename CCID_DEV_NAME to TYPE_USB_CCID_DEV Eduardo Habkost
2020-09-10 18:20 ` [PULL 17/33] vfio: Rename VFIO_AP_DEVICE_TYPE to TYPE_VFIO_AP_DEVICE Eduardo Habkost
2020-09-10 18:20 ` [PULL 18/33] vmgenid: Rename VMGENID_DEVICE to TYPE_VMGENID Eduardo Habkost
2020-09-10 18:20 ` [PULL 19/33] ahci: Rename ICH_AHCI to ICH9_AHCI Eduardo Habkost
2020-09-10 18:20 ` [PULL 20/33] esp: Rename ESP_STATE to ESP Eduardo Habkost
2020-09-10 18:21 ` Eduardo Habkost [this message]
2020-09-10 18:21 ` [PULL 22/33] rs6000_mc: Rename RS6000MC_DEVICE to RS6000MC Eduardo Habkost
2020-09-10 18:21 ` [PULL 23/33] sabre: Rename SABRE_DEVICE to SABRE Eduardo Habkost
2020-09-10 18:21 ` [PULL 24/33] usb: Rename USB_SERIAL_DEV to USB_SERIAL Eduardo Habkost
2020-09-10 18:21 ` [PULL 25/33] vfio: Rename PCI_VFIO to VFIO_PCI Eduardo Habkost
2020-09-10 18:21 ` [PULL 26/33] pc87312: Rename TYPE_PC87312_SUPERIO to TYPE_PC87312 Eduardo Habkost
2020-09-10 18:21 ` [PULL 27/33] tusb6010: Rename TUSB to TUSB6010 Eduardo Habkost
2020-09-10 18:21 ` [PULL 28/33] xilinx_axidma: Use typedef name for instance_size Eduardo Habkost
2020-09-10 18:21 ` [PULL 29/33] omap_intc: " Eduardo Habkost
2020-09-10 18:21 ` [PULL 30/33] lpc_ich9: " Eduardo Habkost
2020-09-10 18:21 ` [PULL 31/33] xilinx_axienet: " Eduardo Habkost
2020-09-10 18:21 ` [PULL 32/33] vhost-user-vga: " Eduardo Habkost
2020-09-10 18:21 ` [PULL 33/33] virtio-vga: " Eduardo Habkost
2020-09-11 19:50 ` [PULL 00/33] QOM boilerplate cleanup (v4) Peter Maydell
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200910182112.4030917-22-ehabkost@redhat.com \
--to=ehabkost@redhat.com \
--cc=berrange@redhat.com \
--cc=chen.zhang@intel.com \
--cc=pbonzini@redhat.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).