diff options
| author | Jason Gunthorpe <[email protected]> | 2025-01-10 16:35:04 +0000 |
|---|---|---|
| committer | Joerg Roedel <[email protected]> | 2025-01-17 07:59:31 +0000 |
| commit | 5a081f7f428cc68c2df8eb281bfbaedf65b749c1 (patch) | |
| tree | 7a90b8d013aa3243288d699c5162f36c7c48baef /net/switchdev/switchdev.c | |
| parent | iommu/amd: Change amd_iommu_pgtable to use enum protection_domain_mode (diff) | |
| download | kernel-5a081f7f428cc68c2df8eb281bfbaedf65b749c1.tar.gz kernel-5a081f7f428cc68c2df8eb281bfbaedf65b749c1.zip | |
iommu/amd: Move the nid to pdom_setup_pgtable()
The only thing that uses the nid is the io_pgtable code, and it should be
set before calling alloc_io_pgtable_ops() to ensure that the top levels
are allocated on the correct nid.
Since dev is never NULL now we can just do this trivially and remove the
other uses of nid. SVA and identity code paths never use it since they
don't use io_pgtable.
Reviewed-by: Vasant Hegde <[email protected]>
Signed-off-by: Jason Gunthorpe <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Joerg Roedel <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions
