aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/ip-neighbor/ip6_neighbor.c
diff options
context:
space:
mode:
authorSteven Luong <sluong@cisco.com>2021-03-23 11:55:33 -0700
committerBeno�t Ganne <bganne@cisco.com>2021-04-02 08:42:10 +0000
commit19be32876f0587067e72c92b4d1faf5d4c26b3cd (patch)
treed78961ced1dbf23dae785599b266b7c2ce717c06 /src/vnet/ip-neighbor/ip6_neighbor.c
parentcd63ac2de2c65163279bcbfbca0678a3df1d12a1 (diff)
ip-neighbor: suppress unsolicited clib_warning when sending garp
Replace clib_warning with vlog_log_debug when sending garp. There is nothing to alert/warn the operator about sending garp. vlib_log is more appropriate. Type: fix Signed-off-by: Steven Luong <sluong@cisco.com> Change-Id: Ib88a2b46d2ab8b3c35162538ead0dd0983fb7093
Diffstat (limited to 'src/vnet/ip-neighbor/ip6_neighbor.c')
-rw-r--r--src/vnet/ip-neighbor/ip6_neighbor.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/vnet/ip-neighbor/ip6_neighbor.c b/src/vnet/ip-neighbor/ip6_neighbor.c
index 478eca7fa27..ec323543e32 100644
--- a/src/vnet/ip-neighbor/ip6_neighbor.c
+++ b/src/vnet/ip-neighbor/ip6_neighbor.c
@@ -22,6 +22,13 @@
/** ND throttling */
static throttle_t nd_throttle;
+VLIB_REGISTER_LOG_CLASS (ip6_neighbor_log, static) = {
+ .class_name = "ip6",
+ .subclass_name = "neighbor",
+};
+
+#define log_debug(fmt, ...) \
+ vlib_log_debug (ip6_neighbor_log.class, fmt, __VA_ARGS__)
void
ip6_neighbor_probe_dst (u32 sw_if_index, const ip6_address_t * dst)
{
@@ -47,9 +54,8 @@ ip6_neighbor_advertise (vlib_main_t * vm,
if (addr)
{
- clib_warning
- ("Sending unsolicitated NA IP6 address %U on sw_if_idex %d",
- format_ip6_address, addr, sw_if_index);
+ log_debug ("Sending unsolicitated NA IP6 address %U on sw_if_idex %d",
+ format_ip6_address, addr, sw_if_index);
/* Form unsolicited neighbor advertisement packet from NS pkt template */
int bogus_length;