Commit 16b46ec3 authored by Alessandro Rubini's avatar Alessandro Rubini Committed by Adam Wujek

lldp: avoid polling while doing abscal

Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
parent 41730831
......@@ -245,6 +245,10 @@ static int lldp_poll(void)
uint8_t new_mac[ETH_ALEN];
static uint8_t old_mac[ETH_ALEN];
/* no extra traffic when abscal is in progress */
if (ptp_mode == WRC_MODE_ABSCAL)
return 0;
/* periodic tasks */
if (ticks > LLDP_TX_TICK_INTERVAL) {
get_mac_addr(new_mac);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment