summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2016-06-17 16:42:02 +0200
committerChris Luke <chris_luke@cable.comcast.com>2016-06-18 02:52:24 +0000
commit98897e26ceb10f46b890db24a949145d52353087 (patch)
tree9ee21e7b579ca2897559d63aeb6c5b440e3456d2
parenta18e413085b1986889b06a2ecc4c618c3f788c0c (diff)
Fix node registration in ixge driver
Change-Id: Ia98ed873954feaa7bf1f13d8eb4054d0afba495e Signed-off-by: Damjan Marion <damarion@cisco.com>
-rw-r--r--vnet/vnet/devices/nic/ixge.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/vnet/vnet/devices/nic/ixge.c b/vnet/vnet/devices/nic/ixge.c
index 8d2144142c6..cd08379ef78 100644
--- a/vnet/vnet/devices/nic/ixge.c
+++ b/vnet/vnet/devices/nic/ixge.c
@@ -2128,7 +2128,7 @@ static char * ixge_error_strings[] = {
#undef _
};
-static vlib_node_registration_t ixge_input_node = {
+VLIB_REGISTER_NODE (ixge_input_node, static) = {
.function = ixge_input,
.type = VLIB_NODE_TYPE_INPUT,
.name = "ixge-input",
@@ -2753,7 +2753,6 @@ ixge_pci_init (vlib_main_t * vm, vlib_pci_device_t * dev)
if (vec_len (xm->devices) == 1)
{
ixge_input_node.function = ixge_input_multiarch_select();
- vlib_register_node (vm, &ixge_input_node);
}
xd->pci_device = dev[0];