vmxnet3: fix tx data ring copy for variable size
authorShrikrishna Khare <skhare@vmware.com>
Fri, 19 Aug 2016 17:33:42 +0000 (10:33 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 20 Aug 2016 05:44:22 +0000 (22:44 -0700)
commitff2e7d5d51469e98196f7933c83b781e96517e7c
treecceeb771f5f82338537ab67b0d6808e3b3c135f7
parentc10ac75aeed2d8486a73a316ac3a08f85d140894
vmxnet3: fix tx data ring copy for variable size

'Commit 3c8b3efc061a ("vmxnet3: allow variable length transmit data ring
buffer")' changed the size of the buffers in the tx data ring from a
fixed size of 128 bytes to a variable size.

However, while copying data to the data ring, vmxnet3_copy_hdr continues
to carry the old code that assumes fixed buffer size of 128. This patch
fixes it by adding correct offset based on the actual data ring buffer
size.

Signed-off-by: Guolin Yang <gyang@vmware.com>
Signed-off-by: Shrikrishna Khare <skhare@vmware.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/vmxnet3/vmxnet3_drv.c
drivers/net/vmxnet3/vmxnet3_int.h