[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [lwip-users] add 2 netif for 2 ETH MAC´s to have 2 buffer pools
From: |
Thomas Richter (TCD - DE/Dresden) |
Subject: |
Re: [lwip-users] add 2 netif for 2 ETH MAC´s to have 2 buffer pools |
Date: |
Mon, 16 May 2011 11:00:26 +0200 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.2.17) Gecko/20110414 Lightning/1.0b2 Thunderbird/3.1.10 |
Hi Kieran,
I thought so too.
My approach is now to do some changes in the used Ethernet driver
(Altera TSE by Bill) and IP stack.
I will add a second buffer pool (e.g. "PBUF_POOL2" in memp_std.h) with
same pool size (PBUF_POOL_SIZE * PBUF_POOL_BUFSIZE) besides the existing
and will double all handles of "PBUF_POOL" types in the lwIP code.
What do you think, is it a possible way?
Or do you see a better way?
Maybe
- loading lwIP completely twice ??
- defining a "watermark" / limit or something else for data port at 50%
of pool buffer size to provoke that pool is "full" at this "line" ??
- another idea?
Best regards
Thomas
Am 16.05.2011 10:33, schrieb Kieran Mansley:
> On Mon, 2011-05-16 at 09:41 +0200, Thomas Richter (TCD - DE/Dresden)
> wrote:
>
>> Is it possible with the same lwIP ( TCP/IP stack)?
>> If yes, use the two different netif´s (adding with netif_add(&netif1,
>> ..., ethernetif_init1, ethernet_input1) and netif_add(&netif2, ...,
>> ethernetif_init2, ethernet_input2) ) the same pbuf pool
>> (LWIP_PBUF_MEMPOOL in memp_std.h with PBUF_POOL_SIZE) ??
> I think as it is now lwIP will use a single pool for both the netifs.
>
> Kieran
>
>
> _______________________________________________
> lwip-users mailing list
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/lwip-users
- [lwip-users] add 2 netif for 2 ETH MAC´s to have 2 buffer pools, Thomas Richter (TCD - DE/Dresden), 2011/05/16
- Re: [lwip-users] add 2 netif for 2 ETH MAC´s to have 2 buffer pools, Kieran Mansley, 2011/05/16
- Re: [lwip-users] add 2 netif for 2 ETH MAC´s to have 2 buffer pools,
Thomas Richter (TCD - DE/Dresden) <=
- Re: [lwip-users] add 2 netif for 2 ETH MAC´s to have 2 buffer pools, Kieran Mansley, 2011/05/16
- Re: [lwip-users] add 2 netif for 2 ETH MAC´s to have 2 buffer pools, Simon Goldschmidt, 2011/05/16
- Re: [lwip-users] add 2 netif for 2 ETH MAC´s to have 2 buffer pools, Thomas Richter (TCD - DE/Dresden), 2011/05/16
- Re: [lwip-users] add 2 netif for 2 ETH MAC´s to have 2 buffer pools, Kieran Mansley, 2011/05/16
- Re: [lwip-users] add 2 netif for 2 ETH MAC´s to have 2 buffer pools, Thomas Richter (TCD - DE/Dresden), 2011/05/16
- Re: [lwip-users] add 2 netif for 2 ETH MAC´s to have 2 buffer pools, Noam weissman, 2011/05/16