intel / intel/ethernet-linux-ice

IRQ_Affnity is not assigning the specific CPU as we wanted to specific CPU

Open
#42 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
60
Forks
21
PR merge metrics
No merged PRs in 30d

Description

hi Team,
We would like to specify certain CPU to a specific NIC ports (E810 card). Basically, we would like to set the affinity with the specific IRQ's. As example below, IRQ 1056 has been mapped with CPU core 100. But we would like to map the IRQ (1056 ) to a specific CPU as like( set_irq_affinity -X 0-7,64-71 em3).

Looking for support on this would be really helpful.

```
tuna -Q | grep -i 1056
1056 ice-em3-TxRx-126 100

```

**Debug output**

cat /proc/irq/1056/smp_affinity
00000010,00000000,00000000,00000000

+ '[' '' == 1 ']'
+ set_affinity
+ build_mask
+ VEC=7
+ '[' 7 -ge 32 ']'
+ MASK_TMP=128
++ printf %X 128
+ MASK=80
+ printf %s 80
+ printf '%s %d %s -> /proc/irq/1056/smp_affinity\n' em3 7 80
em3 7 80 -> /proc/irq/1056/smp_affinity
++ sed -E 's/^[0,]*//' /proc/irq/1056/smp_affinity
+ SMP_I=10,00000000,00000000,00000000
+ '[' 10,00000000,00000000,00000000 '!=' 80 ']'
+ printf ' ACTUAL\t%s %d %s <- /proc/irq/1056/smp_affinity\n' em3 7 10,00000000,00000000,00000000
ACTUAL em3 7 10,00000000,00000000,00000000 <- /proc/irq/1056/smp_affinity
+ printf ' WARNING -- SMP_AFFINITY setting failed\n'
WARNING -- SMP_AFFINITY setting failed

NOTE : irqbalance has been disabled.

systemctl disable irqbalance
systemctl stop irqbalance

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.