summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--irq.c2
-rw-r--r--irq.h2
-rw-r--r--netsniff-ng.c4
3 files changed, 4 insertions, 4 deletions
diff --git a/irq.c b/irq.c
index fc2427b..1eed0d5 100644
--- a/irq.c
+++ b/irq.c
@@ -124,7 +124,7 @@ int device_set_irq_affinity_list(int irq, unsigned long from, unsigned long to)
return ret;
}
-int device_bind_irq_to_cpu(int irq, int cpu)
+int device_set_irq_affinity(int irq, unsigned long cpu)
{
return device_set_irq_affinity_list(irq, cpu, cpu);
}
diff --git a/irq.h b/irq.h
index 6c1c850..005e224 100644
--- a/irq.h
+++ b/irq.h
@@ -2,9 +2,9 @@
#define IRQ_H
extern int device_irq_number(const char *ifname);
-extern int device_bind_irq_to_cpu(int irq, int cpu);
extern void device_restore_irq_affinity_list(void);
extern int device_set_irq_affinity_list(int irq, unsigned long from,
unsigned long to);
+extern int device_set_irq_affinity(int irq, unsigned long cpu);
#endif /* IRQ_H */
diff --git a/netsniff-ng.c b/netsniff-ng.c
index 28ebda7..2005f9b 100644
--- a/netsniff-ng.c
+++ b/netsniff-ng.c
@@ -233,7 +233,7 @@ static void pcap_to_xmit(struct ctx *ctx)
if (ctx->cpu >= 0 && ifindex > 0) {
irq = device_irq_number(ctx->device_out);
- device_bind_irq_to_cpu(irq, ctx->cpu);
+ device_set_irq_affinity(irq, ctx->cpu);
if (ctx->verbose)
printf("IRQ: %s:%d > CPU%d\n",
@@ -924,7 +924,7 @@ static void recv_only_or_dump(struct ctx *ctx)
if (ctx->cpu >= 0 && ifindex > 0) {
irq = device_irq_number(ctx->device_in);
- device_bind_irq_to_cpu(irq, ctx->cpu);
+ device_set_irq_affinity(irq, ctx->cpu);
if (ctx->verbose)
printf("IRQ: %s:%d > CPU%d\n",