From eb8ed5e4ebef1b34bc6dd749fb7210cac618a9fe Mon Sep 17 00:00:00 2001 From: Dimitri Staessens Date: Wed, 28 Feb 2018 14:06:01 +0100 Subject: lib: Add fccntl operation to get queue lengths This adds the FLOWGRXQLEN and FLOWGTXQLEN operations to fccntl to get the number of packets that are in the receive and transmit buffers respectively. The flow statistics are updated to show these queue lengths. Signed-off-by: Dimitri Staessens Signed-off-by: Sander Vrijders --- include/ouroboros/fccntl.h | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'include/ouroboros/fccntl.h') diff --git a/include/ouroboros/fccntl.h b/include/ouroboros/fccntl.h index 55e6a343..8940e6ef 100644 --- a/include/ouroboros/fccntl.h +++ b/include/ouroboros/fccntl.h @@ -50,7 +50,7 @@ #define FRCTFORDERING 00000010 /* Ordered delivery */ #define FRCTFPARTIAL 00000020 /* Allow partial delivery */ -/* Operations */ +/* Flow operations */ #define FLOWSRCVTIMEO 00000001 /* Set read timeout */ #define FLOWGRCVTIMEO 00000002 /* Get read timeout */ #define FLOWSSNDTIMEO 00000003 /* Set send timeout */ @@ -58,8 +58,12 @@ #define FLOWGQOSSPEC 00000005 /* Get qosspec_t */ #define FLOWSFLAGS 00000006 /* Set flags for flow */ #define FLOWGFLAGS 00000007 /* Get flags for flow */ -#define FRCTSFLAGS 00000010 /* Set flags for FRCT */ -#define FRCTGFLAGS 00000011 /* Get flags for FRCT */ +#define FLOWGRXQLEN 00000010 /* Get queue length on rx */ +#define FLOWGTXQLEN 00000011 /* Get queue length on tx */ + +/* FRCT operations */ +#define FRCTSFLAGS 00001000 /* Set flags for FRCT */ +#define FRCTGFLAGS 00001001 /* Get flags for FRCT */ __BEGIN_DECLS -- cgit v1.2.3