aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCiprian Barbu <ciprian.barbu@linaro.org>2015-02-03 19:09:24 +0000
committerZoltan Kiss <zoltan.kiss@linaro.org>2015-07-09 14:48:32 +0100
commita0fed2f3cd70c0bdaf10e94d1bd1adfafacc7363 (patch)
treed19d4dadf549911d01184f40bc0add79d7f84d39
parent9a40e0c6384cac929b719c07f092ff0a2dfc4706 (diff)
netdev-odp: add get_numa_id
This change was introduced for DPDK, but it applies to the more general case and so ODP netdev got affected. The easiest solution, the same way DPDK netdev does, is to default to numa node 0. Signed-off-by: Ciprian Barbu <ciprian.barbu@linaro.org>
-rw-r--r--lib/netdev-odp.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/netdev-odp.c b/lib/netdev-odp.c
index db85aa063..b6c135b4d 100644
--- a/lib/netdev-odp.c
+++ b/lib/netdev-odp.c
@@ -289,6 +289,12 @@ clone_pkts(struct netdev_odp *dev, struct dpif_packet **pkts,
}
static int
+netdev_odp_get_numa_id(const struct netdev *netdev_ OVS_UNUSED)
+{
+ return 0;
+}
+
+static int
netdev_odp_send(struct netdev *netdev, int qid OVS_UNUSED,
struct dpif_packet **pkts, int cnt, bool may_steal)
{
@@ -574,7 +580,7 @@ static struct netdev_class netdev_odp_class = {
NULL, /* build_header */
NULL, /* push_header */
NULL, /* pop_header */
- NULL, /* get_numa_id */
+ netdev_odp_get_numa_id, /* get_numa_id */
NULL, /* set_multiq */
netdev_odp_send, /* send */