Page MenuHomeFreeBSD

D39509.id120265.diff
No OneTemporary

D39509.id120265.diff

diff --git a/sys/dev/dpaa2/dpaa2_ni.h b/sys/dev/dpaa2/dpaa2_ni.h
--- a/sys/dev/dpaa2/dpaa2_ni.h
+++ b/sys/dev/dpaa2/dpaa2_ni.h
@@ -58,7 +58,7 @@
#define DPAA2_NI_MAX_RESOURCES 34
#define DPAA2_NI_MSI_COUNT 1 /* MSIs per DPNI */
-#define DPAA2_NI_MAX_CHANNELS 16 /* to distribute ingress traffic to cores */
+#define DPAA2_NI_MAX_CHANNELS 1 /* to distribute ingress traffic to cores */
#define DPAA2_NI_MAX_TCS 8 /* traffic classes per DPNI */
#define DPAA2_NI_MAX_POOLS 8 /* buffer pools per DPNI */
diff --git a/sys/dev/dpaa2/dpaa2_ni.c b/sys/dev/dpaa2/dpaa2_ni.c
--- a/sys/dev/dpaa2/dpaa2_ni.c
+++ b/sys/dev/dpaa2/dpaa2_ni.c
@@ -1248,13 +1248,13 @@
sc->attr.num.rx_tcs));
/* One queue per Rx traffic class within a channel. */
- for (int i = 0; i < sc->attr.num.rx_tcs; i++) {
+ for (int i = 0; i < DPAA2_NI_MAX_TCS; i++) {
fq = &chan->rx_queues[i];
fq->consume = dpaa2_ni_rx;
fq->chan = chan;
- fq->flowid = chan->flowid;
- fq->tc = (uint8_t) i;
+ fq->flowid = i;
+ fq->tc = 0u;
fq->type = queue_type;
chan->rxq_n++;

File Metadata

Mime Type
text/plain
Expires
Tue, Dec 30, 4:49 PM (3 h, 10 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
27388447
Default Alt Text
D39509.id120265.diff (1 KB)

Event Timeline