From 1f2c08b57c6b22fdcc2a0dc06887f75a215e4c84 Mon Sep 17 00:00:00 2001 From: David Gibson Date: Fri, 31 Oct 2025 15:19:23 +1100 Subject: icmp: Remove vestiges of ICMP timer We no longer have a global ICMP timer (timers for individual flows are handled through the flow timer). We still have an ICMP_TIMER_INTERVAL define, though. Remove it. Signed-off-by: David Gibson Signed-off-by: Stefano Brivio --- icmp.h | 2 -- passt.c | 3 +-- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/icmp.h b/icmp.h index d1cecb2..1a0e620 100644 --- a/icmp.h +++ b/icmp.h @@ -6,8 +6,6 @@ #ifndef ICMP_H #define ICMP_H -#define ICMP_TIMER_INTERVAL 10000 /* ms */ - struct ctx; struct icmp_ping_flow; diff --git a/passt.c b/passt.c index dc3e114..5d3ad55 100644 --- a/passt.c +++ b/passt.c @@ -57,8 +57,7 @@ #define NUM_EPOLL_EVENTS 8 -#define TIMER_INTERVAL__ MIN(TCP_TIMER_INTERVAL, UDP_TIMER_INTERVAL) -#define TIMER_INTERVAL_ MIN(TIMER_INTERVAL__, ICMP_TIMER_INTERVAL) +#define TIMER_INTERVAL_ MIN(TCP_TIMER_INTERVAL, UDP_TIMER_INTERVAL) #define TIMER_INTERVAL MIN(TIMER_INTERVAL_, FLOW_TIMER_INTERVAL) char pkt_buf[PKT_BUF_BYTES] __attribute__ ((aligned(PAGE_SIZE))); -- cgit v1.2.3