Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Improved tracing for the IP[46] not-enabled case.
[vpp.git]
/
src
/
vnet
/
ip
/
ip4_forward.c
diff --git
a/src/vnet/ip/ip4_forward.c
b/src/vnet/ip/ip4_forward.c
index
c4c54b7
..
3ddf6df
100755
(executable)
--- a/
src/vnet/ip/ip4_forward.c
+++ b/
src/vnet/ip/ip4_forward.c
@@
-883,11
+883,11
@@
ip4_sw_interface_enable_disable (u32 sw_if_index, u32 is_enable)
if (0 != --im->ip_enabled_by_sw_if_index[sw_if_index])
return;
}
if (0 != --im->ip_enabled_by_sw_if_index[sw_if_index])
return;
}
- vnet_feature_enable_disable ("ip4-unicast", "ip4-
drop
", sw_if_index,
+ vnet_feature_enable_disable ("ip4-unicast", "ip4-
not-enabled
", sw_if_index,
!is_enable, 0, 0);
!is_enable, 0, 0);
- vnet_feature_enable_disable ("ip4-multicast", "ip4-
drop
",
+ vnet_feature_enable_disable ("ip4-multicast", "ip4-
not-enabled
",
sw_if_index, !is_enable, 0, 0);
}
sw_if_index, !is_enable, 0, 0);
}
@@
-1066,10
+1066,10
@@
VNET_FEATURE_INIT (ip4_vxlan_bypass, static) =
.runs_before = VNET_FEATURES ("ip4-lookup"),
};
.runs_before = VNET_FEATURES ("ip4-lookup"),
};
-VNET_FEATURE_INIT (ip4_
drop
, static) =
+VNET_FEATURE_INIT (ip4_
not_enabled
, static) =
{
.arc_name = "ip4-unicast",
{
.arc_name = "ip4-unicast",
- .node_name = "ip4-
drop
",
+ .node_name = "ip4-
not-enabled
",
.runs_before = VNET_FEATURES ("ip4-lookup"),
};
.runs_before = VNET_FEATURES ("ip4-lookup"),
};
@@
-1095,10
+1095,10
@@
VNET_FEATURE_INIT (ip4_vpath_mc, static) =
.runs_before = VNET_FEATURES ("ip4-mfib-forward-lookup"),
};
.runs_before = VNET_FEATURES ("ip4-mfib-forward-lookup"),
};
-VNET_FEATURE_INIT (ip4_mc_
drop
, static) =
+VNET_FEATURE_INIT (ip4_mc_
not_enabled
, static) =
{
.arc_name = "ip4-multicast",
{
.arc_name = "ip4-multicast",
- .node_name = "ip4-
drop
",
+ .node_name = "ip4-
not-enabled
",
.runs_before = VNET_FEATURES ("ip4-mfib-forward-lookup"),
};
.runs_before = VNET_FEATURES ("ip4-mfib-forward-lookup"),
};
@@
-1166,11
+1166,11
@@
ip4_sw_interface_add_del (vnet_main_t * vnm, u32 sw_if_index, u32 is_add)
/* *INDENT-ON* */
}
/* *INDENT-ON* */
}
- vnet_feature_enable_disable ("ip4-unicast", "ip4-
drop
", sw_if_index,
+ vnet_feature_enable_disable ("ip4-unicast", "ip4-
not-enabled
", sw_if_index,
is_add, 0, 0);
is_add, 0, 0);
- vnet_feature_enable_disable ("ip4-multicast", "ip4-
drop", sw_if_index
,
- is_add, 0, 0);
+ vnet_feature_enable_disable ("ip4-multicast", "ip4-
not-enabled"
,
+
sw_if_index,
is_add, 0, 0);
return /* no error */ 0;
}
return /* no error */ 0;
}