From 92206a78c27de6442f1428ccf8cd622fa3364a5a Mon Sep 17 00:00:00 2001 From: Daniel Borkmann Date: Tue, 4 Jun 2013 10:27:52 +0200 Subject: irq: rename device_bind_irq_to_cpu to device_set_irq_affinity This is more appropriate and consistent with other device irq functions. Signed-off-by: Daniel Borkmann --- irq.c | 2 +- irq.h | 2 +- netsniff-ng.c | 4 ++-- 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", -- cgit v1.2.3-54-g00ecf