From 5f5edf2ddb94bbf7571d511eb6bdbe8d3798408b Mon Sep 17 00:00:00 2001 From: Dimitri Staessens Date: Tue, 20 Nov 2018 18:59:15 +0100 Subject: lib: Add First Fragment (FFGM) bit to FRCT This adds a First Fragment bit to FRCT. This small optimisation avoids losing two packets when there is packet loss without fragmentation, without the need to disable fragmentation at the end points. Signed-off-by: Dimitri Staessens Signed-off-by: Sander Vrijders --- src/lib/frct.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/lib/frct.c') diff --git a/src/lib/frct.c b/src/lib/frct.c index ce6cc258..b56b1e3d 100644 --- a/src/lib/frct.c +++ b/src/lib/frct.c @@ -65,7 +65,8 @@ enum frct_flags { FRCT_ACK = 0x04, /* ACK field valid */ FRCT_FC = 0x08, /* FC window valid */ FRCT_RDVZ = 0x10, /* Rendez-vous */ - FRCT_MFGM = 0x20, /* More fragments */ + FRCT_FFGM = 0x20, /* First Fragment */ + FRCT_MFGM = 0x40, /* More fragments */ }; struct frct_pci { -- cgit v1.2.3