diff options
author | Maxim Mikityanskiy <maximmi@nvidia.com> | 2022-01-28 14:13:11 +0300 |
---|---|---|
committer | Saeed Mahameed <saeedm@nvidia.com> | 2022-03-18 23:51:13 +0300 |
commit | ddc87e7d477552084fd185b315a39d5067b01773 (patch) | |
tree | ce5d6d5bd37dda43e09d4d6e17294726b66883d7 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | ea5d49bdae8b4c9dcdac574eef96b1bd47000c2a (diff) | |
download | linux-ddc87e7d477552084fd185b315a39d5067b01773.tar.xz |
net/mlx5e: Store DMA address inside struct page
Use page_pool_set_dma_addr() to store the DMA address of a page inside
struct page, in order to avoid passing struct mlx5e_dma_info to XDP
handlers. Previously, struct mlx5e_dma_info was used to pass both the
DMA address and the page, and it worked well for the single-fragment
case.
When XDP multi buffer is in use, and a fragmented xdp_frame has to be
transmitted, the driver needs to know the DMA addresses of fragments,
however, the array of fragments in struct skb_shared_info doesn't
contain them. In order to pass the DMA addresses, the driver puts them
into struct page itself, which is accessible from the array of fragments
in struct skb_shared_info. The existing XDP handlers are modified to
remove the dependency on struct mlx5e_dma_info.
Signed-off-by: Maxim Mikityanskiy <maximmi@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions