vmxnet3: prepare for version 7 changes
vmxnet3 is currently at version 6 and this patch initiates the preparation to accommodate changes for upto version 7. Introduced utility macros for vmxnet3 version 7 comparison and update Copyright information. Signed-off-by: Ronak Doshi <doshir@vmware.com> Acked-by: Guolin Yang <gyang@vmware.com> Signed-off-by: Paolo Abeni <pabeni@redhat.com>
This commit is contained in:
parent
5834e72eda
commit
55f0395fca
drivers/net/vmxnet3
|
@ -2,7 +2,7 @@
|
||||||
#
|
#
|
||||||
# Linux driver for VMware's vmxnet3 ethernet NIC.
|
# Linux driver for VMware's vmxnet3 ethernet NIC.
|
||||||
#
|
#
|
||||||
# Copyright (C) 2007-2021, VMware, Inc. All Rights Reserved.
|
# Copyright (C) 2007-2022, VMware, Inc. All Rights Reserved.
|
||||||
#
|
#
|
||||||
# This program is free software; you can redistribute it and/or modify it
|
# This program is free software; you can redistribute it and/or modify it
|
||||||
# under the terms of the GNU General Public License as published by the
|
# under the terms of the GNU General Public License as published by the
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
/*
|
/*
|
||||||
* Linux driver for VMware's vmxnet3 ethernet NIC.
|
* Linux driver for VMware's vmxnet3 ethernet NIC.
|
||||||
*
|
*
|
||||||
* Copyright (C) 2008-2021, VMware, Inc. All Rights Reserved.
|
* Copyright (C) 2008-2022, VMware, Inc. All Rights Reserved.
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify it
|
* This program is free software; you can redistribute it and/or modify it
|
||||||
* under the terms of the GNU General Public License as published by the
|
* under the terms of the GNU General Public License as published by the
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
/*
|
/*
|
||||||
* Linux driver for VMware's vmxnet3 ethernet NIC.
|
* Linux driver for VMware's vmxnet3 ethernet NIC.
|
||||||
*
|
*
|
||||||
* Copyright (C) 2008-2021, VMware, Inc. All Rights Reserved.
|
* Copyright (C) 2008-2022, VMware, Inc. All Rights Reserved.
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify it
|
* This program is free software; you can redistribute it and/or modify it
|
||||||
* under the terms of the GNU General Public License as published by the
|
* under the terms of the GNU General Public License as published by the
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
/*
|
/*
|
||||||
* Linux driver for VMware's vmxnet3 ethernet NIC.
|
* Linux driver for VMware's vmxnet3 ethernet NIC.
|
||||||
*
|
*
|
||||||
* Copyright (C) 2008-2021, VMware, Inc. All Rights Reserved.
|
* Copyright (C) 2008-2022, VMware, Inc. All Rights Reserved.
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify it
|
* This program is free software; you can redistribute it and/or modify it
|
||||||
* under the terms of the GNU General Public License as published by the
|
* under the terms of the GNU General Public License as published by the
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
/*
|
/*
|
||||||
* Linux driver for VMware's vmxnet3 ethernet NIC.
|
* Linux driver for VMware's vmxnet3 ethernet NIC.
|
||||||
*
|
*
|
||||||
* Copyright (C) 2008-2021, VMware, Inc. All Rights Reserved.
|
* Copyright (C) 2008-2022, VMware, Inc. All Rights Reserved.
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify it
|
* This program is free software; you can redistribute it and/or modify it
|
||||||
* under the terms of the GNU General Public License as published by the
|
* under the terms of the GNU General Public License as published by the
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
/*
|
/*
|
||||||
* Linux driver for VMware's vmxnet3 ethernet NIC.
|
* Linux driver for VMware's vmxnet3 ethernet NIC.
|
||||||
*
|
*
|
||||||
* Copyright (C) 2008-2021, VMware, Inc. All Rights Reserved.
|
* Copyright (C) 2008-2022, VMware, Inc. All Rights Reserved.
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify it
|
* This program is free software; you can redistribute it and/or modify it
|
||||||
* under the terms of the GNU General Public License as published by the
|
* under the terms of the GNU General Public License as published by the
|
||||||
|
@ -81,6 +81,7 @@
|
||||||
#define VMXNET3_RSS
|
#define VMXNET3_RSS
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#define VMXNET3_REV_7 6 /* Vmxnet3 Rev. 7 */
|
||||||
#define VMXNET3_REV_6 5 /* Vmxnet3 Rev. 6 */
|
#define VMXNET3_REV_6 5 /* Vmxnet3 Rev. 6 */
|
||||||
#define VMXNET3_REV_5 4 /* Vmxnet3 Rev. 5 */
|
#define VMXNET3_REV_5 4 /* Vmxnet3 Rev. 5 */
|
||||||
#define VMXNET3_REV_4 3 /* Vmxnet3 Rev. 4 */
|
#define VMXNET3_REV_4 3 /* Vmxnet3 Rev. 4 */
|
||||||
|
@ -431,6 +432,8 @@ struct vmxnet3_adapter {
|
||||||
(adapter->version >= VMXNET3_REV_5 + 1)
|
(adapter->version >= VMXNET3_REV_5 + 1)
|
||||||
#define VMXNET3_VERSION_GE_6(adapter) \
|
#define VMXNET3_VERSION_GE_6(adapter) \
|
||||||
(adapter->version >= VMXNET3_REV_6 + 1)
|
(adapter->version >= VMXNET3_REV_6 + 1)
|
||||||
|
#define VMXNET3_VERSION_GE_7(adapter) \
|
||||||
|
(adapter->version >= VMXNET3_REV_7 + 1)
|
||||||
|
|
||||||
/* must be a multiple of VMXNET3_RING_SIZE_ALIGN */
|
/* must be a multiple of VMXNET3_RING_SIZE_ALIGN */
|
||||||
#define VMXNET3_DEF_TX_RING_SIZE 512
|
#define VMXNET3_DEF_TX_RING_SIZE 512
|
||||||
|
|
Loading…
Reference in New Issue