]> git.baikalelectronics.ru Git - kernel.git/commit
vmxnet3: add support for large passthrough BAR register
authorRonak Doshi <doshir@vmware.com>
Wed, 8 Jun 2022 03:23:48 +0000 (20:23 -0700)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 9 Jun 2022 10:42:00 +0000 (12:42 +0200)
commite421e3eb7963adf20e084e0598256b6f0639da9b
treee80dada7ead7fffe8948b1d0913096efdcf1e1d9
parentc977aabfcfbe0170a0aad56dc6babb4da8b69b0b
vmxnet3: add support for large passthrough BAR register

For vmxnet3 to work in UPT mode, the BAR sizes have been increased.
The PT page has been extended to 2 pages and also includes OOB pages
as a part of PT BAR. This patch enhances vmxnet3 to use appropriate
BAR offsets based on the capability registered. To use new offsets,
VMXNET3_CAP_LARGE_BAR needs to be set by the device. If it is not set
then the device will use legacy PT page layout.

Signed-off-by: Ronak Doshi <doshir@vmware.com>
Acked-by: Guolin Yang <gyang@vmware.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/vmxnet3/vmxnet3_defs.h
drivers/net/vmxnet3/vmxnet3_drv.c
drivers/net/vmxnet3/vmxnet3_ethtool.c
drivers/net/vmxnet3/vmxnet3_int.h