OpenCloudOS-Kernel/drivers/net/vmxnet3
Christophe JAILLET c38f306839 vmxnet3: Remove useless DMA-32 fallback configuration
As stated in [1], dma_set_mask() with a 64-bit mask never fails if
dev->dma_mask is non-NULL.
So, if it fails, the 32 bits case will also fail for the same reason.

So if dma_set_mask_and_coherent() succeeds, 'dma64' is know to be 'true'.

Simplify code and remove some dead code accordingly.

[1]: https://lkml.org/lkml/2021/6/7/398

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: https://lore.kernel.org/r/43e5dcf1a5e9e9c5d2d86f87810d6e93e3d22e32.1641718188.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2022-01-09 16:52:19 -08:00
..
Makefile vmxnet3: prepare for version 6 changes 2021-07-16 17:32:14 -07:00
upt1_defs.h vmxnet3: prepare for version 6 changes 2021-07-16 17:32:14 -07:00
vmxnet3_defs.h vmxnet3: increase maximum configurable mtu to 9190 2021-07-16 17:32:14 -07:00
vmxnet3_drv.c vmxnet3: Remove useless DMA-32 fallback configuration 2022-01-09 16:52:19 -08:00
vmxnet3_ethtool.c ethtool: extend ringparam setting/getting API with rx_buf_len 2021-11-22 12:31:49 +00:00
vmxnet3_int.h vmxnet3: update to version 6 2021-07-16 17:32:14 -07:00