diff options
author | Daniel Borkmann <dborkman@redhat.com> | 2013-06-11 00:05:56 +0200 |
---|---|---|
committer | Daniel Borkmann <dborkman@redhat.com> | 2013-06-11 00:08:29 +0200 |
commit | 42d1a29e7b7a55f39114115b9cb4814989ad5bf2 (patch) | |
tree | 4d79909ea5a3c2dcfe75da9798a28327555c5595 | |
parent | 242b6c0faa6e521244c6e66745403522c3b707a9 (diff) |
irq: do not process non-existant irq number of lo
Prevent IRQ affinity restore of lo device, since we do not collect it
and since it doesn't have a IRQ number. This fixes a warning on trafgen
and netsniff-ng when exiting.
Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
-rw-r--r-- | irq.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -99,6 +99,8 @@ int device_set_irq_affinity_list(int irq, unsigned long from, unsigned long to) int ret, fd; char file[128], list[64]; + if (unlikely(irq == 0)) + return 0; if (!nic_irq_stored) { nic_irq = irq; device_save_irq_affinity_list(); |