vmxnet3: prepare for version 9 changes
vmxnet3 is currently at version 7 and this patch initiates the preparation to accommodate changes for up to version 9. Introduced utility macros for vmxnet3 version 9 comparison and update Copyright information. Signed-off-by: Ronak Doshi <ronak.doshi@broadcom.com> Acked-by: Guolin Yang <guolin.yang@broadcom.com> Reviewed-by: Simon Horman <horms@kernel.org> Link: https://lore.kernel.org/r/20240531193050.4132-2-ronak.doshi@broadcom.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
1467713eb2
commit
4978478a68
@ -2,7 +2,7 @@
|
||||
#
|
||||
# Linux driver for VMware's vmxnet3 ethernet NIC.
|
||||
#
|
||||
# Copyright (C) 2007-2022, VMware, Inc. All Rights Reserved.
|
||||
# Copyright (C) 2007-2024, VMware, Inc. All Rights Reserved.
|
||||
#
|
||||
# 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
|
||||
|
@ -1,7 +1,7 @@
|
||||
/*
|
||||
* Linux driver for VMware's vmxnet3 ethernet NIC.
|
||||
*
|
||||
* Copyright (C) 2008-2022, VMware, Inc. All Rights Reserved.
|
||||
* Copyright (C) 2008-2024, VMware, Inc. All Rights Reserved.
|
||||
*
|
||||
* 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
|
||||
|
@ -1,7 +1,7 @@
|
||||
/*
|
||||
* Linux driver for VMware's vmxnet3 ethernet NIC.
|
||||
*
|
||||
* Copyright (C) 2008-2022, VMware, Inc. All Rights Reserved.
|
||||
* Copyright (C) 2008-2024, VMware, Inc. All Rights Reserved.
|
||||
*
|
||||
* 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
|
||||
|
@ -1,7 +1,7 @@
|
||||
/*
|
||||
* Linux driver for VMware's vmxnet3 ethernet NIC.
|
||||
*
|
||||
* Copyright (C) 2008-2022, VMware, Inc. All Rights Reserved.
|
||||
* Copyright (C) 2008-2024, VMware, Inc. All Rights Reserved.
|
||||
*
|
||||
* 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
|
||||
|
@ -1,7 +1,7 @@
|
||||
/*
|
||||
* Linux driver for VMware's vmxnet3 ethernet NIC.
|
||||
*
|
||||
* Copyright (C) 2008-2022, VMware, Inc. All Rights Reserved.
|
||||
* Copyright (C) 2008-2024, VMware, Inc. All Rights Reserved.
|
||||
*
|
||||
* 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
|
||||
@ -84,6 +84,8 @@
|
||||
#define VMXNET3_RSS
|
||||
#endif
|
||||
|
||||
#define VMXNET3_REV_9 8 /* Vmxnet3 Rev. 9 */
|
||||
#define VMXNET3_REV_8 7 /* Vmxnet3 Rev. 8 */
|
||||
#define VMXNET3_REV_7 6 /* Vmxnet3 Rev. 7 */
|
||||
#define VMXNET3_REV_6 5 /* Vmxnet3 Rev. 6 */
|
||||
#define VMXNET3_REV_5 4 /* Vmxnet3 Rev. 5 */
|
||||
@ -463,6 +465,10 @@ struct vmxnet3_adapter {
|
||||
(adapter->version >= VMXNET3_REV_6 + 1)
|
||||
#define VMXNET3_VERSION_GE_7(adapter) \
|
||||
(adapter->version >= VMXNET3_REV_7 + 1)
|
||||
#define VMXNET3_VERSION_GE_8(adapter) \
|
||||
(adapter->version >= VMXNET3_REV_8 + 1)
|
||||
#define VMXNET3_VERSION_GE_9(adapter) \
|
||||
(adapter->version >= VMXNET3_REV_9 + 1)
|
||||
|
||||
/* must be a multiple of VMXNET3_RING_SIZE_ALIGN */
|
||||
#define VMXNET3_DEF_TX_RING_SIZE 512
|
||||
|
Loading…
Reference in New Issue
Block a user