aboutsummaryrefslogtreecommitdiff
path: root/sys/kern/subr_gtaskqueue.c
diff options
context:
space:
mode:
authorStephen Hurd <shurd@FreeBSD.org>2017-10-05 14:43:30 +0000
committerStephen Hurd <shurd@FreeBSD.org>2017-10-05 14:43:30 +0000
commit1c0054d261c267f6e4c4a0b42b7c16022370c8c4 (patch)
treed0cd16ba1acf52e595b6f2e6628cb282b2e8ef66 /sys/kern/subr_gtaskqueue.c
parentff76c8c9fd10e49d4a3daae79f763f81960db752 (diff)
Fix "taskqgroup_attach: setaffinity failed: 3" with iflib drivers
Improved logging added in r323879 exposed an error during attach. We need the irq, not the rid to work correctly. em uses shared irqs, so it will use the same irq for TX as RX. bnxt does not use shared irqs, or TX irqs at all, so there's no need to set the TX irq affinity. Reviewed by: sbruno Approved by: sbruno (mentor) Sponsored by: Limelight Networks Differential Revision: https://reviews.freebsd.org/D12496
Notes
Notes: svn path=/head/; revision=324318
Diffstat (limited to 'sys/kern/subr_gtaskqueue.c')
-rw-r--r--sys/kern/subr_gtaskqueue.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/subr_gtaskqueue.c b/sys/kern/subr_gtaskqueue.c
index 2a3ca8100557..27463d93445d 100644
--- a/sys/kern/subr_gtaskqueue.c
+++ b/sys/kern/subr_gtaskqueue.c
@@ -681,7 +681,7 @@ taskqgroup_attach(struct taskqgroup *qgroup, struct grouptask *gtask,
mtx_unlock(&qgroup->tqg_lock);
error = intr_setaffinity(irq, CPU_WHICH_IRQ, &mask);
if (error)
- printf("%s: setaffinity failed: %d\n", __func__, error);
+ printf("%s: setaffinity failed for %s: %d\n", __func__, gtask->gt_name, error);
} else
mtx_unlock(&qgroup->tqg_lock);
}