aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>2022-01-02 21:27:39 +0100
committerDavid S. Miller <davem@davemloft.net>2022-01-03 10:42:58 +0000
commit7120075ec41aed3bf377df7924d213f1c43f7462 (patch)
tree1de66c5e3d214e66e1a46605a6c6aad4aad6cb45 /tools/perf/scripts/python
parentnet: vertexcom: default to disabled on kbuild (diff)
downloadwireguard-linux-7120075ec41aed3bf377df7924d213f1c43f7462.tar.xz
wireguard-linux-7120075ec41aed3bf377df7924d213f1c43f7462.zip
ethernet: s2io: Use dma_set_mask_and_coherent() and simplify code
Use dma_set_mask_and_coherent() instead of unrolling it with some dma_set_mask()+dma_set_coherent_mask(). Moreover, as stated in [1], dma_set_mask() with a 64-bit mask will never fail if dev->dma_mask is non-NULL. So, if it fails, the 32 bits case will also fail for the same reason. That said, 'dma_flag' can only be 'true' after a successful dma_set_mask_and_coherent(). Simplify code and remove some dead code accordingly, including the now useless 'high_dma_flag' field in 'struct s2io_nic'. [1]: https://lkml.org/lkml/2021/6/7/398 Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions