Skip to content

Commit 123db31

Browse files
Ronak Doshidavem330
authored andcommitted
vmxnet3: prepare for version 4 changes
vmxnet3 is currently at version 3 and this patch initiates the preparation to accommodate changes for version 4. Introduced utility macros for vmxnet3 version 4 comparison and update Copyright information. Signed-off-by: Ronak Doshi <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent b113cab commit 123db31

File tree

6 files changed

+9
-6
lines changed

6 files changed

+9
-6
lines changed

drivers/net/vmxnet3/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#
33
# Linux driver for VMware's vmxnet3 ethernet NIC.
44
#
5-
# Copyright (C) 2007-2016, VMware, Inc. All Rights Reserved.
5+
# Copyright (C) 2007-2020, VMware, Inc. All Rights Reserved.
66
#
77
# This program is free software; you can redistribute it and/or modify it
88
# under the terms of the GNU General Public License as published by the

drivers/net/vmxnet3/upt1_defs.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* Linux driver for VMware's vmxnet3 ethernet NIC.
33
*
4-
* Copyright (C) 2008-2016, VMware, Inc. All Rights Reserved.
4+
* Copyright (C) 2008-2020, VMware, Inc. All Rights Reserved.
55
*
66
* This program is free software; you can redistribute it and/or modify it
77
* under the terms of the GNU General Public License as published by the

drivers/net/vmxnet3/vmxnet3_defs.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* Linux driver for VMware's vmxnet3 ethernet NIC.
33
*
4-
* Copyright (C) 2008-2016, VMware, Inc. All Rights Reserved.
4+
* Copyright (C) 2008-2020, VMware, Inc. All Rights Reserved.
55
*
66
* This program is free software; you can redistribute it and/or modify it
77
* under the terms of the GNU General Public License as published by the

drivers/net/vmxnet3/vmxnet3_drv.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* Linux driver for VMware's vmxnet3 ethernet NIC.
33
*
4-
* Copyright (C) 2008-2016, VMware, Inc. All Rights Reserved.
4+
* Copyright (C) 2008-2020, VMware, Inc. All Rights Reserved.
55
*
66
* This program is free software; you can redistribute it and/or modify it
77
* under the terms of the GNU General Public License as published by the

drivers/net/vmxnet3/vmxnet3_ethtool.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* Linux driver for VMware's vmxnet3 ethernet NIC.
33
*
4-
* Copyright (C) 2008-2016, VMware, Inc. All Rights Reserved.
4+
* Copyright (C) 2008-2020, VMware, Inc. All Rights Reserved.
55
*
66
* This program is free software; you can redistribute it and/or modify it
77
* under the terms of the GNU General Public License as published by the

drivers/net/vmxnet3/vmxnet3_int.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* Linux driver for VMware's vmxnet3 ethernet NIC.
33
*
4-
* Copyright (C) 2008-2016, VMware, Inc. All Rights Reserved.
4+
* Copyright (C) 2008-2020, VMware, Inc. All Rights Reserved.
55
*
66
* This program is free software; you can redistribute it and/or modify it
77
* under the terms of the GNU General Public License as published by the
@@ -81,6 +81,7 @@
8181
#define VMXNET3_RSS
8282
#endif
8383

84+
#define VMXNET3_REV_4 3 /* Vmxnet3 Rev. 4 */
8485
#define VMXNET3_REV_3 2 /* Vmxnet3 Rev. 3 */
8586
#define VMXNET3_REV_2 1 /* Vmxnet3 Rev. 2 */
8687
#define VMXNET3_REV_1 0 /* Vmxnet3 Rev. 1 */
@@ -412,6 +413,8 @@ struct vmxnet3_adapter {
412413
(adapter->version >= VMXNET3_REV_2 + 1)
413414
#define VMXNET3_VERSION_GE_3(adapter) \
414415
(adapter->version >= VMXNET3_REV_3 + 1)
416+
#define VMXNET3_VERSION_GE_4(adapter) \
417+
(adapter->version >= VMXNET3_REV_4 + 1)
415418

416419
/* must be a multiple of VMXNET3_RING_SIZE_ALIGN */
417420
#define VMXNET3_DEF_TX_RING_SIZE 512

0 commit comments

Comments
 (0)