[XFRM]: Fix aevent timer.
Send aevent immediately if we have sent nothing since last timer and this is the first packet. Fixes a corner case when packet threshold is very high, the timer low and a very low packet rate input which is bursty. Signed-off-by: Jamal Hadi Salim <hadi@cyberus.ca> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
6c97e72a16
commit
2717096ab4
@@ -143,6 +143,11 @@ struct xfrm_state
|
||||
/* Replay detection state at the time we sent the last notification */
|
||||
struct xfrm_replay_state preplay;
|
||||
|
||||
/* internal flag that only holds state for delayed aevent at the
|
||||
* moment
|
||||
*/
|
||||
u32 xflags;
|
||||
|
||||
/* Replay detection notification settings */
|
||||
u32 replay_maxage;
|
||||
u32 replay_maxdiff;
|
||||
@@ -168,6 +173,9 @@ struct xfrm_state
|
||||
void *data;
|
||||
};
|
||||
|
||||
/* xflags - make enum if more show up */
|
||||
#define XFRM_TIME_DEFER 1
|
||||
|
||||
enum {
|
||||
XFRM_STATE_VOID,
|
||||
XFRM_STATE_ACQ,
|
||||
|
Reference in New Issue
Block a user