net: ppp: fix consuming claimed area of ringbuf

Claimed ringbuf bytes were parsed until first frame was detected, but
remaining data in the claimed area was just ignored / lost.

Continue parsing bytes to the end of claimed area after each detected
frame.

Signed-off-by: Marcin Niestroj <m.niestroj@grinn-global.com>
This commit is contained in:
Marcin Niestroj 2020-06-26 22:22:29 +02:00 committed by Maureen Helm
commit a470d9deba

View file

@ -659,7 +659,6 @@ static void ppp_isr_cb_work(struct k_work *work)
/* Ignore empty or too short frames */
if (ppp->pkt && net_pkt_get_len(ppp->pkt) > 3) {
ppp_process_msg(ppp);
break;
}
}
} while (--tmp);