]> git.baikalelectronics.ru Git - kernel.git/commit
net: i82596: fix dma_alloc_attr for sni_82596
authorThomas Bogendoerfer <tbogendoerfer@suse.de>
Tue, 15 Oct 2019 14:42:45 +0000 (16:42 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 16 Oct 2019 03:50:05 +0000 (20:50 -0700)
commitd9b0481fc5d636554ec35f1f9771b66981d3feb2
tree2053e0eeb840b5ce9cb5be8056971d6e4566af3c
parentdbe39cd4418c01bb3f2266be293e7b5e43fa36e9
net: i82596: fix dma_alloc_attr for sni_82596

Commit 2c717d666aad ("i825xx: switch to switch to dma_alloc_attrs")
switched dma allocation over to dma_alloc_attr, but didn't convert
the SNI part to request consistent DMA memory. This broke sni_82596
since driver doesn't do dma_cache_sync for performance reasons.
Fix this by using different DMA_ATTRs for lasi_82596 and sni_82596.

Fixes: 2c717d666aad ("i825xx: switch to switch to dma_alloc_attrs")
Signed-off-by: Thomas Bogendoerfer <tbogendoerfer@suse.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/i825xx/lasi_82596.c
drivers/net/ethernet/i825xx/lib82596.c
drivers/net/ethernet/i825xx/sni_82596.c