linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next] Driver: Vmxnet3: Fix use of mfTableLen for big endian architectures
@ 2015-11-13 23:42 Shrikrishna Khare
  2015-11-16 20:06 ` David Miller
  0 siblings, 1 reply; 3+ messages in thread
From: Shrikrishna Khare @ 2015-11-13 23:42 UTC (permalink / raw)
  To: netdev, linux-kernel
  Cc: pv-drivers, uebayasi, Shrikrishna Khare, Bhavesh Davda

Signed-off-by: Shrikrishna Khare <skhare@vmware.com>
Reported-by: Masao Uebayashi <uebayasi@gmail.com>
Signed-off-by: Bhavesh Davda <bhavesh@vmware.com>
---
 drivers/net/vmxnet3/vmxnet3_drv.c | 7 ++++---
 drivers/net/vmxnet3/vmxnet3_int.h | 4 ++--
 2 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/drivers/net/vmxnet3/vmxnet3_drv.c b/drivers/net/vmxnet3/vmxnet3_drv.c
index 46f4cad..899ea42 100644
--- a/drivers/net/vmxnet3/vmxnet3_drv.c
+++ b/drivers/net/vmxnet3/vmxnet3_drv.c
@@ -2157,12 +2157,13 @@ vmxnet3_set_mc(struct net_device *netdev)
 		if (!netdev_mc_empty(netdev)) {
 			new_table = vmxnet3_copy_mc(netdev);
 			if (new_table) {
-				rxConf->mfTableLen = cpu_to_le16(
-					netdev_mc_count(netdev) * ETH_ALEN);
+				size_t sz = netdev_mc_count(netdev) * ETH_ALEN;
+
+				rxConf->mfTableLen = cpu_to_le16(sz);
 				new_table_pa = dma_map_single(
 							&adapter->pdev->dev,
 							new_table,
-							rxConf->mfTableLen,
+							sz,
 							PCI_DMA_TODEVICE);
 			}
 
diff --git a/drivers/net/vmxnet3/vmxnet3_int.h b/drivers/net/vmxnet3/vmxnet3_int.h
index 3f859a5..4c58c83 100644
--- a/drivers/net/vmxnet3/vmxnet3_int.h
+++ b/drivers/net/vmxnet3/vmxnet3_int.h
@@ -69,10 +69,10 @@
 /*
  * Version numbers
  */
-#define VMXNET3_DRIVER_VERSION_STRING   "1.4.3.0-k"
+#define VMXNET3_DRIVER_VERSION_STRING   "1.4.4.0-k"
 
 /* a 32-bit int, each byte encode a verion number in VMXNET3_DRIVER_VERSION */
-#define VMXNET3_DRIVER_VERSION_NUM      0x01040300
+#define VMXNET3_DRIVER_VERSION_NUM      0x01040400
 
 #if defined(CONFIG_PCI_MSI)
 	/* RSS only makes sense if MSI-X is supported. */
-- 
1.8.5.6


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

* Re: [PATCH net-next] Driver: Vmxnet3: Fix use of mfTableLen for big endian architectures
  2015-11-13 23:42 [PATCH net-next] Driver: Vmxnet3: Fix use of mfTableLen for big endian architectures Shrikrishna Khare
@ 2015-11-16 20:06 ` David Miller
  2015-11-16 21:20   ` Shrikrishna Khare
  0 siblings, 1 reply; 3+ messages in thread
From: David Miller @ 2015-11-16 20:06 UTC (permalink / raw)
  To: skhare; +Cc: netdev, linux-kernel, pv-drivers, uebayasi, bhavesh

From: Shrikrishna Khare <skhare@vmware.com>
Date: Fri, 13 Nov 2015 15:42:10 -0800

> Signed-off-by: Shrikrishna Khare <skhare@vmware.com>
> Reported-by: Masao Uebayashi <uebayasi@gmail.com>
> Signed-off-by: Bhavesh Davda <bhavesh@vmware.com>

You guys really have to stop targetting simple, straightforward,
bug fixes at net-next.  That is not appropriate.

Bug fixes should target 'net'.

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

* Re: [PATCH net-next] Driver: Vmxnet3: Fix use of mfTableLen for big endian architectures
  2015-11-16 20:06 ` David Miller
@ 2015-11-16 21:20   ` Shrikrishna Khare
  0 siblings, 0 replies; 3+ messages in thread
From: Shrikrishna Khare @ 2015-11-16 21:20 UTC (permalink / raw)
  To: David Miller; +Cc: netdev, linux-kernel, pv-drivers, uebayasi, bhavesh


On Mon, 16 Nov 2015, David Miller wrote:

> From: Shrikrishna Khare <skhare@vmware.com>
> Date: Fri, 13 Nov 2015 15:42:10 -0800
> 
> > Signed-off-by: Shrikrishna Khare <skhare@vmware.com>
> > Reported-by: Masao Uebayashi <uebayasi@gmail.com>
> > Signed-off-by: Bhavesh Davda <bhavesh@vmware.com>
> 
> You guys really have to stop targetting simple, straightforward,
> bug fixes at net-next.  That is not appropriate.
> 
> Bug fixes should target 'net'.

Thanks for applying this patch to net.

Will send similar patches to net in future.

Thanks,
Shri 

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

end of thread, other threads:[~2015-11-16 21:20 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-11-13 23:42 [PATCH net-next] Driver: Vmxnet3: Fix use of mfTableLen for big endian architectures Shrikrishna Khare
2015-11-16 20:06 ` David Miller
2015-11-16 21:20   ` Shrikrishna Khare

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