Add ioat_get_domain() to ioat(4) KPI.
This allows NUMA-aware consumers to reduce inter-domain traffic. MFC after: 1 week Sponsored by: iXsystems, Inc.
This commit is contained in:
parent
0d08dcc900
commit
ac27055900
@ -1024,6 +1024,15 @@ ioat_get_capabilities(bus_dmaengine_t dmaengine)
|
||||
return (ioat->capabilities);
|
||||
}
|
||||
|
||||
int
|
||||
ioat_get_domain(bus_dmaengine_t dmaengine, int *domain)
|
||||
{
|
||||
struct ioat_softc *ioat;
|
||||
|
||||
ioat = to_ioat_softc(dmaengine);
|
||||
return (bus_get_domain(ioat->device, domain));
|
||||
}
|
||||
|
||||
int
|
||||
ioat_set_interrupt_coalesce(bus_dmaengine_t dmaengine, uint16_t delay)
|
||||
{
|
||||
|
@ -131,6 +131,7 @@ void ioat_put_dmaengine(bus_dmaengine_t dmaengine);
|
||||
int ioat_get_hwversion(bus_dmaengine_t dmaengine);
|
||||
size_t ioat_get_max_io_size(bus_dmaengine_t dmaengine);
|
||||
uint32_t ioat_get_capabilities(bus_dmaengine_t dmaengine);
|
||||
int ioat_get_domain(bus_dmaengine_t dmaengine, int *domain);
|
||||
|
||||
/*
|
||||
* Set interrupt coalescing on a DMA channel.
|
||||
|
Loading…
x
Reference in New Issue
Block a user