Comment 23 for bug 1728010

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/47334
Committed: http://github.com/Juniper/contrail-vrouter/commit/f77a5b28036fd66a70598e19c870c27eb2c647ec
Submitter: Vinay Vithal Mahuli (<email address hidden>)
Branch: master

commit f77a5b28036fd66a70598e19c870c27eb2c647ec
Author: hajim <email address hidden>
Date: Wed Dec 5 14:11:18 2018 +0530

vrouter pkt drop log buffer infra. This feature
is used to log additional information when a packet is dropped in
vrouter module.
To run pkt drop log : dropstats -log <core number>
If core number specified as 0, it will log for all cores.
Currently below features are enabled.
- Log pkt drops info for all cores
- provided support to enable/disable pkt drop log during load time
by providing "options vrouter vr_pkt_droplog_buf_en=1" in
/etc/modprobe.d/vrouter.conf file.
- Provided support to configure MAX.number of records during load
time providing "options vrouter vr_pkt_droplog_bufsz=<value> in
/etc/modprobe.d/vrouter.conf file.
- Pkt Drop log support can be enabled/disabled during runtime using
sysctl by doing "echo 1
>/proc/sys/net/vrouter/pkt_drop_log_enable"
- We can also enable Minimum logging(drop reason,timestamp, src/dst
IP and file location) by doing "echo 1 >
/proc/sys/net/vrouter/pkt_drop_log_min_enable"
Change-Id:I9b19c22b86a6f604e1bebf5d2e59e173ee5d88cf
Partial-Bug: 1728010