qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] tap_int.h: remove repeating macroinstruction
@ 2014-10-31  2:53 arei.gonglei
  2014-11-01 18:10 ` [Qemu-devel] [Qemu-trivial] " Michael Tokarev
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: arei.gonglei @ 2014-10-31  2:53 UTC (permalink / raw)
  To: qemu-devel; +Cc: qemu-trivial, Gonglei, peter.huangpeng, stefanha

From: Gonglei <arei.gonglei@huawei.com>

DEFAULT_NETWORK_SCRIPT and DEFAULT_NETWORK_DOWN_SCRIPT
have been defined in net/net.h included in
tap.c, which is the only C file that using those two macro.
Let's remove the repeating macroinstruction.

Signed-off-by: Gonglei <arei.gonglei@huawei.com>
---
 net/tap_int.h | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/net/tap_int.h b/net/tap_int.h
index 86bb224..79afdf2 100644
--- a/net/tap_int.h
+++ b/net/tap_int.h
@@ -29,9 +29,6 @@
 #include "qemu-common.h"
 #include "qapi-types.h"
 
-#define DEFAULT_NETWORK_SCRIPT "/etc/qemu-ifup"
-#define DEFAULT_NETWORK_DOWN_SCRIPT "/etc/qemu-ifdown"
-
 int tap_open(char *ifname, int ifname_size, int *vnet_hdr,
              int vnet_hdr_required, int mq_required);
 
-- 
1.7.12.4

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [Qemu-devel] [Qemu-trivial] [PATCH] tap_int.h: remove repeating macroinstruction
  2014-10-31  2:53 [Qemu-devel] [PATCH] tap_int.h: remove repeating macroinstruction arei.gonglei
@ 2014-11-01 18:10 ` Michael Tokarev
  2014-11-01 18:10 ` Michael Tokarev
  2014-11-02  4:56 ` Michael Tokarev
  2 siblings, 0 replies; 5+ messages in thread
From: Michael Tokarev @ 2014-11-01 18:10 UTC (permalink / raw)
  To: arei.gonglei, qemu-devel; +Cc: qemu-trivial, peter.huangpeng, stefanha

31.10.2014 05:53, arei.gonglei@huawei.com wrote:
> From: Gonglei <arei.gonglei@huawei.com>
> 
> DEFAULT_NETWORK_SCRIPT and DEFAULT_NETWORK_DOWN_SCRIPT
> have been defined in net/net.h included in
> tap.c, which is the only C file that using those two macro.
> Let's remove the repeating macroinstruction.
> 
> Signed-off-by: Gonglei <arei.gonglei@huawei.com>
> ---
>  net/tap_int.h | 3 ---
>  1 file changed, 3 deletions(-)
> 
> diff --git a/net/tap_int.h b/net/tap_int.h
> index 86bb224..79afdf2 100644
> --- a/net/tap_int.h
> +++ b/net/tap_int.h
> @@ -29,9 +29,6 @@
>  #include "qemu-common.h"
>  #include "qapi-types.h"
>  
> -#define DEFAULT_NETWORK_SCRIPT "/etc/qemu-ifup"
> -#define DEFAULT_NETWORK_DOWN_SCRIPT "/etc/qemu-ifdown"
> -
>  int tap_open(char *ifname, int ifname_size, int *vnet_hdr,
>               int vnet_hdr_required, int mq_required);


Hmm.  We had this change in debian qemu-kvm for many years
(at least since 2008), here:
http://anonscm.debian.org/cgit/collab-maint/qemu-kvm.git/tree/debian/patches/04_use_etc_kvm_kvm-ifup.patch

I always thought it is some mis-merge of kvm to qemu.

So, ofcourse, applying to -trivial, thank you for getting
rid of it finally, because I really forgot about it...

/mjt

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Qemu-devel] [Qemu-trivial] [PATCH] tap_int.h: remove repeating macroinstruction
  2014-10-31  2:53 [Qemu-devel] [PATCH] tap_int.h: remove repeating macroinstruction arei.gonglei
  2014-11-01 18:10 ` [Qemu-devel] [Qemu-trivial] " Michael Tokarev
@ 2014-11-01 18:10 ` Michael Tokarev
  2014-11-02  4:56 ` Michael Tokarev
  2 siblings, 0 replies; 5+ messages in thread
From: Michael Tokarev @ 2014-11-01 18:10 UTC (permalink / raw)
  To: arei.gonglei, qemu-devel; +Cc: qemu-trivial, peter.huangpeng, stefanha

31.10.2014 05:53, arei.gonglei@huawei.com пишет:
> From: Gonglei <arei.gonglei@huawei.com>
> 
> DEFAULT_NETWORK_SCRIPT and DEFAULT_NETWORK_DOWN_SCRIPT
> have been defined in net/net.h included in
> tap.c, which is the only C file that using those two macro.
> Let's remove the repeating macroinstruction.
> 
> Signed-off-by: Gonglei <arei.gonglei@huawei.com>
> ---
>  net/tap_int.h | 3 ---
>  1 file changed, 3 deletions(-)
> 
> diff --git a/net/tap_int.h b/net/tap_int.h
> index 86bb224..79afdf2 100644
> --- a/net/tap_int.h
> +++ b/net/tap_int.h
> @@ -29,9 +29,6 @@
>  #include "qemu-common.h"
>  #include "qapi-types.h"
>  
> -#define DEFAULT_NETWORK_SCRIPT "/etc/qemu-ifup"
> -#define DEFAULT_NETWORK_DOWN_SCRIPT "/etc/qemu-ifdown"
> -
>  int tap_open(char *ifname, int ifname_size, int *vnet_hdr,
>               int vnet_hdr_required, int mq_required);
>  


Hmm.  We had this change in debian qemu-kvm for many years
(at least since 2008), here:
http://anonscm.debian.org/cgit/collab-maint/qemu-kvm.git/tree/debian/patches/04_use_etc_kvm_kvm-ifup.patch

I always thought it is some mis-merge of kvm to qemu.

So, ofcourse, applying to -trivial, thank you for getting
rid of it finally, because I really forgot about it...

/mjt

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Qemu-devel] [Qemu-trivial] [PATCH] tap_int.h: remove repeating macroinstruction
  2014-10-31  2:53 [Qemu-devel] [PATCH] tap_int.h: remove repeating macroinstruction arei.gonglei
  2014-11-01 18:10 ` [Qemu-devel] [Qemu-trivial] " Michael Tokarev
  2014-11-01 18:10 ` Michael Tokarev
@ 2014-11-02  4:56 ` Michael Tokarev
  2014-11-02  5:01   ` Gonglei
  2 siblings, 1 reply; 5+ messages in thread
From: Michael Tokarev @ 2014-11-02  4:56 UTC (permalink / raw)
  To: arei.gonglei, qemu-devel; +Cc: qemu-trivial, peter.huangpeng, stefanha

31.10.2014 05:53, arei.gonglei@huawei.com wrote:
> From: Gonglei <arei.gonglei@huawei.com>
> 
> DEFAULT_NETWORK_SCRIPT and DEFAULT_NETWORK_DOWN_SCRIPT
> have been defined in net/net.h included in
> tap.c, which is the only C file that using those two macro.
> Let's remove the repeating macroinstruction.

Applied (as I noted yesterday), but with slight rename in
$subject - the new subject reads:

  tap_int.h: remove repeating NETWORK_SCRIPT defines

Is that okay with you?

Thanks,

/mjt

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Qemu-devel] [Qemu-trivial] [PATCH] tap_int.h: remove repeating macroinstruction
  2014-11-02  4:56 ` Michael Tokarev
@ 2014-11-02  5:01   ` Gonglei
  0 siblings, 0 replies; 5+ messages in thread
From: Gonglei @ 2014-11-02  5:01 UTC (permalink / raw)
  To: Michael Tokarev
  Cc: qemu-trivial@nongnu.org, qemu-devel@nongnu.org,
	stefanha@redhat.com, Huangpeng (Peter)

On 2014/11/2 12:56, Michael Tokarev wrote:

> 31.10.2014 05:53, arei.gonglei@huawei.com wrote:
>> From: Gonglei <arei.gonglei@huawei.com>
>>
>> DEFAULT_NETWORK_SCRIPT and DEFAULT_NETWORK_DOWN_SCRIPT
>> have been defined in net/net.h included in
>> tap.c, which is the only C file that using those two macro.
>> Let's remove the repeating macroinstruction.
> 
> Applied (as I noted yesterday), but with slight rename in
> $subject - the new subject reads:
> 
>   tap_int.h: remove repeating NETWORK_SCRIPT defines
> 
> Is that okay with you?
> 

Ack. Thanks.

Best regards,
-Gonglei

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-11-02  5:02 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-31  2:53 [Qemu-devel] [PATCH] tap_int.h: remove repeating macroinstruction arei.gonglei
2014-11-01 18:10 ` [Qemu-devel] [Qemu-trivial] " Michael Tokarev
2014-11-01 18:10 ` Michael Tokarev
2014-11-02  4:56 ` Michael Tokarev
2014-11-02  5:01   ` Gonglei

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).