[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [lwip-users] Control priority processing of the packages
From: |
Jan Menzel |
Subject: |
Re: [lwip-users] Control priority processing of the packages |
Date: |
Mon, 21 Sep 2020 08:07:15 +0200 |
User-agent: |
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:68.0) Gecko/20100101 Thunderbird/68.12.0 |
Hi Mario!
If you say "OS delay" you're probably using an OS. If you're using the
netcon or socket API you could send your "data transfer of application"
to a separate task and assign it a lower priority. That way your
application code can run as fast as mcu permits and "networking
management" always takes precedence. You can get that without modifying
lwip.
Jan
On 18.09.2020 14:41, Mário Luzeiro wrote:
> Hello all,
>
> Not sure if my question makes sense but is possible that I can control the
> priority processing of the packages?
>
> I would like that large packages are delayed or do some OS delay to switch to
> other tasks.
>
> My propose is that if there are multiple packages arriving the smaller are
> processed first.
> I would like to assume (to my case scenario) that a large package (TCP_MSS I
> set it to maximum) is related to "data transfer of application" and that
> small packages are related to "networking management"
>
> Where should I look in LWIP to add this control?
>
> Mario
> _______________________________________________
> lwip-users mailing list
> lwip-users@nongnu.org
> https://lists.nongnu.org/mailman/listinfo/lwip-users
>
signature.asc
Description: OpenPGP digital signature