[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lwip-devel] [task #14369] Define ways to work with a netif having multi

From: Simon Goldschmidt
Subject: [lwip-devel] [task #14369] Define ways to work with a netif having multiple ports
Date: Wed, 15 Feb 2017 04:18:00 -0500 (EST)
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36

Follow-up Comment #1, task #14369 (project lwip):

OK, here's my proposal:
- for RX, make pbuf->ref an u8_t (255 references should be enough) and add
'u8_t netif_idx;' that is set to the receiving netif's idx
- for TX, use netif_get_by_index(idx) with the pbufs index to transmit on a
specific port

For this, all port netifs would be added to the netif_list but kept 'down'
(link state wouldn't matter). And the actual bridge implementation would keep
all port netifs as sub-netifs so that:
- port netifs would call into the bridge for netif->input
- the bridge would select one or more ports on TX and call into their

An RX would have to be PBUF_REF though when the bridge passes it into lwIP
*and* to a port at the same time (to prevent lwIP modifying it while
transmission on a port is underway).


Reply to this item at:


  Message sent via/by Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]