OpenCloudOS-Kernel/drivers/net/ethernet/chelsio/cxgb4vf
Christophe JAILLET 030f9ce8c7 cxgb4vf: 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, 'pci_using_dac' is known to be
1.

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/b14986ea39cea2ca9a6cd0476a3fc167c853ee67.1641736772.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2022-01-09 16:52:20 -08:00
..
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
adapter.h ethernet: chelsio: use eth_hw_addr_set() 2021-10-02 14:18:25 +01:00
cxgb4vf_main.c cxgb4vf: Remove useless DMA-32 fallback configuration 2022-01-09 16:52:20 -08:00
sge.c cxgb4: Use struct_group() for memcpy() region 2021-11-19 11:17:09 +00:00
t4vf_common.h cxgb4vf: configure ports accessible by the VF 2020-06-30 15:54:25 -07:00
t4vf_defs.h
t4vf_hw.c net: don't include ethtool.h from netdevice.h 2020-11-23 17:27:04 -08:00