diff options
author | Marcin Wojtas <mw@semihalf.com> | 2015-08-06 20:00:29 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-08-10 20:57:00 +0300 |
commit | 71ce391dfb7843f4d31abcd7287967a00cb1b8a1 (patch) | |
tree | 6208eafcd6ce9eb5577f5564027fa29100cef2bb /tools/perf/scripts/python/export-to-postgresql.py | |
parent | d53793c5d6eb0cfe4175d9c315a30d65adf3478b (diff) | |
download | linux-71ce391dfb7843f4d31abcd7287967a00cb1b8a1.tar.xz |
net: mvpp2: enable proper per-CPU TX buffers unmapping
mvpp2 driver allows usage of per-CPU TX processing. Once the packets are
prepared independetly on each CPU, the hardware enqueues the descriptors in
common TX queue. After they are sent, the buffers and associated sk_buffs
should be released on the corresponding CPU.
This is why a special index is maintained in order to point to the right data to
be released after transmission takes place. Each per-CPU TX queue comprise an
array of sent sk_buffs, freed in mvpp2_txq_bufs_free function. However, the
index was used there also for obtaining a descriptor (and therefore a buffer to
be DMA-unmapped) from common TX queue, which was wrong, because it was not
referring to the current CPU.
This commit enables proper unmapping of sent data buffers by indexing them in
per-CPU queues using a dedicated array for keeping their physical addresses.
Signed-off-by: Marcin Wojtas <mw@semihalf.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions