Re: [PATCH net] net: mvpp2: allocate zeroed tx descriptors

2017-11-30 Thread David Miller
From: Antoine Tenart Date: Thu, 30 Nov 2017 10:49:46 +0100 > From: Yan Markman > > Reserved and unused fields in the Tx descriptors should be 0. The PPv2 > driver doesn't clear them at run-time (for performance reasons) but > these descriptors aren't zeroed when allocated, which can lead to > u

[PATCH net] net: mvpp2: allocate zeroed tx descriptors

2017-11-30 Thread Antoine Tenart
From: Yan Markman Reserved and unused fields in the Tx descriptors should be 0. The PPv2 driver doesn't clear them at run-time (for performance reasons) but these descriptors aren't zeroed when allocated, which can lead to unpredictable behaviors. This patch fixes this by using dma_zalloc_coheren