[PATCH] xen: netfront: ethtool stats fields should be unsigned long

Subsystems: networking drivers, the rest, xen hypervisor interface

STALE5659d

5 messages, 4 authors, 2011-03-15 · open the first message on its own page

[PATCH] xen: netfront: ethtool stats fields should be unsigned long

From: Ian Campbell <hidden>
Date: 2011-03-10 17:04:23

Fixup the rx_gso_checksum_fixup field added in e0ce4af920eb to be
unsigned long as suggested by Ben Hutchings in
<1298919198.2569.14.camel@bwh-desktop>

Signed-off-by: Ian Campbell <redacted>
Cc: Ben Hutchings <redacted>
---
 drivers/net/xen-netfront.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/net/xen-netfront.c b/drivers/net/xen-netfront.c
index a6ab973..df45323 100644
--- a/drivers/net/xen-netfront.c
+++ b/drivers/net/xen-netfront.c
@@ -122,7 +122,7 @@ struct netfront_info {
 	struct mmu_update rx_mmu[NET_RX_RING_SIZE];
 
 	/* Statistics */
-	int rx_gso_checksum_fixup;
+	unsigned long rx_gso_checksum_fixup;
 };
 
 struct netfront_rx_info {
-- 
1.5.6.5

Re: [PATCH] xen: netfront: ethtool stats fields should be unsigned long

From: David Miller <davem@davemloft.net>
Date: 2011-03-14 22:09:51

From: Ian Campbell <redacted>
Date: Thu, 10 Mar 2011 17:04:18 +0000
Fixup the rx_gso_checksum_fixup field added in e0ce4af920eb to be
unsigned long as suggested by Ben Hutchings in
<1298919198.2569.14.camel@bwh-desktop>

Signed-off-by: Ian Campbell <redacted>
Applied, thanks Ian.

Re: [PATCH] xen: netfront: ethtool stats fields should be unsigned long

From: Eric Dumazet <hidden>
Date: 2011-03-15 03:50:47

Le lundi 14 mars 2011 à 15:10 -0700, David Miller a écrit :
From: Ian Campbell <redacted>
Date: Thu, 10 Mar 2011 17:04:18 +0000
quoted
Fixup the rx_gso_checksum_fixup field added in e0ce4af920eb to be
unsigned long as suggested by Ben Hutchings in
<1298919198.2569.14.camel@bwh-desktop>

Signed-off-by: Ian Campbell <redacted>
Applied, thanks Ian.
Hmm, this needs this followup patch then.

Thanks

[PATCH] xen: netfront: fix xennet_get_ethtool_stats()

commit e9a799ea4a5551d2 (xen: netfront: ethtool stats fields should be
unsigned long) made rx_gso_checksum_fixup an unsigned long.

Signed-off-by: Eric Dumazet <redacted>
Cc: Ian Campbell <redacted>
Cc: Ben Hutchings <redacted>
---
 drivers/net/xen-netfront.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/xen-netfront.c b/drivers/net/xen-netfront.c
index 27cf72f..5b399b5 100644
--- a/drivers/net/xen-netfront.c
+++ b/drivers/net/xen-netfront.c
@@ -1692,7 +1692,7 @@ static void xennet_get_ethtool_stats(struct net_device *dev,
 	int i;
 
 	for (i = 0; i < ARRAY_SIZE(xennet_stats); i++)
-		data[i] = *(int *)(np + xennet_stats[i].offset);
+		data[i] = *(unsigned long *)(np + xennet_stats[i].offset);
 }
 
 static void xennet_get_strings(struct net_device *dev, u32 stringset, u8 * data)

Re: [PATCH] xen: netfront: ethtool stats fields should be unsigned long

From: David Miller <davem@davemloft.net>
Date: 2011-03-15 04:05:37

From: Eric Dumazet <redacted>
Date: Tue, 15 Mar 2011 04:50:43 +0100
Le lundi 14 mars 2011 à 15:10 -0700, David Miller a écrit :
quoted
From: Ian Campbell <redacted>
Date: Thu, 10 Mar 2011 17:04:18 +0000
quoted
Fixup the rx_gso_checksum_fixup field added in e0ce4af920eb to be
unsigned long as suggested by Ben Hutchings in
<1298919198.2569.14.camel@bwh-desktop>

Signed-off-by: Ian Campbell <redacted>
Applied, thanks Ian.
Hmm, this needs this followup patch then.

Thanks

[PATCH] xen: netfront: fix xennet_get_ethtool_stats()

commit e9a799ea4a5551d2 (xen: netfront: ethtool stats fields should be
unsigned long) made rx_gso_checksum_fixup an unsigned long.

Signed-off-by: Eric Dumazet <redacted>
I even saw your feedback but for some reason I still applied
his patch, sorry about that :-)

Applied, thanks.

Re: [PATCH] xen: netfront: ethtool stats fields should be unsigned long

From: Ian Campbell <hidden>
Date: 2011-03-15 07:12:14

On Tue, 2011-03-15 at 04:06 +0000, David Miller wrote:
From: Eric Dumazet <redacted>
Date: Tue, 15 Mar 2011 04:50:43 +0100
quoted
Le lundi 14 mars 2011 à 15:10 -0700, David Miller a écrit :
quoted
From: Ian Campbell <redacted>
Date: Thu, 10 Mar 2011 17:04:18 +0000
quoted
Fixup the rx_gso_checksum_fixup field added in e0ce4af920eb to be
unsigned long as suggested by Ben Hutchings in
<1298919198.2569.14.camel@bwh-desktop>

Signed-off-by: Ian Campbell <redacted>
Applied, thanks Ian.
Hmm, this needs this followup patch then.

Thanks

[PATCH] xen: netfront: fix xennet_get_ethtool_stats()

commit e9a799ea4a5551d2 (xen: netfront: ethtool stats fields should be
unsigned long) made rx_gso_checksum_fixup an unsigned long.

Signed-off-by: Eric Dumazet <redacted>
I even saw your feedback but for some reason I still applied
his patch, sorry about that :-)

Applied, thanks.
His feed back was for netback and this was a netfront patch, but I
didn't make the link either.

Thanks for picking it up Eric.

Ian.

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help