diff options
| author | Gregory CLEMENT <[email protected]> | 2016-12-01 17:03:06 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2016-12-02 18:52:00 +0000 |
| commit | f88bee1c4bfa4faad8aeab75502cc76244a06291 (patch) | |
| tree | 85155be58ad75558c9ab24caf1b8de012931517b /lib/debugobjects.c | |
| parent | net: mvneta: Do not allocate buffer in rxq init with HWBM (diff) | |
| download | kernel-f88bee1c4bfa4faad8aeab75502cc76244a06291.tar.gz kernel-f88bee1c4bfa4faad8aeab75502cc76244a06291.zip | |
net: mvneta: Use cacheable memory to store the rx buffer virtual address
Until now the virtual address of the received buffer were stored in the
cookie field of the rx descriptor. However, this field is 32-bits only
which prevents to use the driver on a 64-bits architecture.
With this patch the virtual address is stored in an array not shared with
the hardware (no more need to use the DMA API). Thanks to this, it is
possible to use cache contrary to the access of the rx descriptor member.
The change is done in the swbm path only because the hwbm uses the cookie
field, this also means that currently the hwbm is not usable in 64-bits.
Signed-off-by: Gregory CLEMENT <[email protected]>
Reviewed-by: Jisheng Zhang <[email protected]>
Tested-by: Marcin Wojtas <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'lib/debugobjects.c')
0 files changed, 0 insertions, 0 deletions
