diff options
author | Daniel Borkmann <dborkman@redhat.com> | 2013-06-04 10:27:52 +0200 |
---|---|---|
committer | Daniel Borkmann <dborkman@redhat.com> | 2013-06-04 10:27:52 +0200 |
commit | 92206a78c27de6442f1428ccf8cd622fa3364a5a (patch) | |
tree | 8e9ae33836784b97ba1b44755f3162ba051cf60c | |
parent | 829456efb34ab796f7aa743fa7f37a5ecd8b3455 (diff) |
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 <dborkman@redhat.com>
-rw-r--r-- | irq.c | 2 | ||||
-rw-r--r-- | irq.h | 2 | ||||
-rw-r--r-- | netsniff-ng.c | 4 |
3 files changed, 4 insertions, 4 deletions
@@ -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); } @@ -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", |