From 8b457e304186c8512139018fcdebc1c221d22ef0 Mon Sep 17 00:00:00 2001 From: Dimitri Staessens Date: Mon, 15 Oct 2018 12:36:07 +0200 Subject: lib: Remove CRC flag from FRCT The integrity check mechanism was split from FRCT, this flag is not needed anymore. Signed-off-by: Dimitri Staessens Signed-off-by: Sander Vrijders --- src/lib/frct.c | 1 - src/lib/rxmwheel.c | 6 +++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/lib/frct.c b/src/lib/frct.c index 6041279a..ce6cc258 100644 --- a/src/lib/frct.c +++ b/src/lib/frct.c @@ -66,7 +66,6 @@ enum frct_flags { FRCT_FC = 0x08, /* FC window valid */ FRCT_RDVZ = 0x10, /* Rendez-vous */ FRCT_MFGM = 0x20, /* More fragments */ - FRCT_CRC = 0x40, /* CRC present */ }; struct frct_pci { diff --git a/src/lib/rxmwheel.c b/src/lib/rxmwheel.c index 69151801..c75aaab3 100644 --- a/src/lib/rxmwheel.c +++ b/src/lib/rxmwheel.c @@ -88,7 +88,7 @@ static void rxmwheel_clear(int fd) { size_t i; - /* FIXME: Add list element to avoid looping over full rxmwheel */ + /* FIXME: Add list element to avoid looping over full rxmwheel. */ pthread_mutex_lock(&rw.lock); for (i = 0; i < RXMQ_SLOTS; ++i) { @@ -174,11 +174,11 @@ static int rxmwheel_move(void) head = shm_du_buff_head(sdb); memcpy(head, r->head, r->tail - r->head); - /* Release the old copy */ + /* Release the old copy. */ shm_du_buff_ack(r->sdb); ipcp_sdb_release(r->sdb); - /* Update ackno and make sure DRF is not set*/ + /* Update ackno and make sure DRF is not set. */ ((struct frct_pci *) head)->ackno = ntoh32(rcv_cr->lwe); ((struct frct_pci *) head)->flags &= ~FRCT_DRF; -- cgit v1.2.3