Author: mav
Date: Tue Nov 26 15:24:06 2019
New Revision: 355112
URL: https://svnweb.freebsd.org/changeset/base/355112
Log:
MFC r354841: Add ioat_get_domain() to ioat(4) KPI.
This allows NUMA-aware consumers to reduce inter-domain traffic.
Modified:
stable/11/sys/dev/ioat/ioat.c
stable/11/sys/dev/ioat/ioat.h
Directory Properties:
stable/11/ (props changed)
Modified: stable/11/sys/dev/ioat/ioat.c
==============================================================================
--- stable/11/sys/dev/ioat/ioat.c Tue Nov 26 15:23:24 2019
(r355111)
+++ stable/11/sys/dev/ioat/ioat.c Tue Nov 26 15:24:06 2019
(r355112)
@@ -913,6 +913,15 @@ ioat_get_capabilities(bus_dmaengine_t dmaengine)
}
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)
{
struct ioat_softc *ioat;
Modified: stable/11/sys/dev/ioat/ioat.h
==============================================================================
--- stable/11/sys/dev/ioat/ioat.h Tue Nov 26 15:23:24 2019
(r355111)
+++ stable/11/sys/dev/ioat/ioat.h Tue Nov 26 15:24:06 2019
(r355112)
@@ -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.
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"