summaryrefslogtreecommitdiffstats
path: root/isisd/isis_pdu.c
diff options
context:
space:
mode:
authorChristian Franke <chris@opensourcerouting.org>2018-11-16 16:05:54 +0100
committerRodny Molina <rmolina@linkedin.com>2018-12-07 20:45:14 +0100
commit161fa356fbff795fe5945f353af486cf0a628428 (patch)
tree911bf015e7ca658ee8a963401949f706a3a032fe /isisd/isis_pdu.c
parentMerge pull request #3438 from opensourcerouting/bgp-rfapi-default-value (diff)
downloadfrr-161fa356fbff795fe5945f353af486cf0a628428.tar.xz
frr-161fa356fbff795fe5945f353af486cf0a628428.zip
isisd: Add debug output for tx-queues
To allow easier debugging of LSP transmission scheduling, add a debug mode where all tx-queue insertions/deletions are logged. Signed-off-by: Christian Franke <chris@opensourcerouting.org>
Diffstat (limited to 'isisd/isis_pdu.c')
-rw-r--r--isisd/isis_pdu.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/isisd/isis_pdu.c b/isisd/isis_pdu.c
index 900ce9f92..4720b044e 100644
--- a/isisd/isis_pdu.c
+++ b/isisd/isis_pdu.c
@@ -2182,9 +2182,9 @@ int send_l2_psnp(struct thread *thread)
/*
* ISO 10589 - 7.3.14.3
*/
-void send_lsp(void *arg, struct isis_lsp *lsp, enum isis_tx_type tx_type)
+void send_lsp(struct isis_circuit *circuit, struct isis_lsp *lsp,
+ enum isis_tx_type tx_type)
{
- struct isis_circuit *circuit = arg;
int clear_srm = 1;
int retval = ISIS_OK;
@@ -2233,10 +2233,13 @@ void send_lsp(void *arg, struct isis_lsp *lsp, enum isis_tx_type tx_type)
}
if (isis->debugs & DEBUG_UPDATE_PACKETS) {
- zlog_debug("ISIS-Upd (%s): Sending L%d LSP %s, seq 0x%08" PRIx32
+ zlog_debug("ISIS-Upd (%s): Sending %sL%d LSP %s, seq 0x%08" PRIx32
", cksum 0x%04" PRIx16 ", lifetime %" PRIu16
"s on %s",
- circuit->area->area_tag, lsp->level,
+ circuit->area->area_tag,
+ (tx_type == TX_LSP_CIRCUIT_SCOPED)
+ ? "Circuit scoped " : "",
+ lsp->level,
rawlspid_print(lsp->hdr.lsp_id), lsp->hdr.seqno,
lsp->hdr.checksum, lsp->hdr.rem_lifetime,
circuit->interface->name);