]> xenbits.xensource.com Git - unikraft/libs/lwip.git/commit
uknetdev: Per device `lwip_data` to callbacks
authorSimon Kuenzer <simon.kuenzer@neclab.eu>
Mon, 9 Nov 2020 16:06:22 +0000 (17:06 +0100)
committerSimon Kuenzer <simon.kuenzer@neclab.eu>
Thu, 12 Nov 2020 22:31:47 +0000 (23:31 +0100)
commit7fa66b6801159de472378fc78832b47e5db9f4b5
tree257af272e273dd5438df8d530a95c59e8517e9a4
parent283e2c7fe1be2ad9e6df5bcb7ceee069ab23d564
uknetdev: Per device `lwip_data` to callbacks

In order to hand-over per device `lwip_data` to the rx/tx packet allocation
function (`netif_alloc_rxpkts()`), we move storing the reference to the
allocator that used for packet allocations to `lwip_data`. In the future,
this can be used to enable per device buffer pools (e.g.,
with `ukallocpool`) for faster allocation and freeing requests.

Signed-off-by: Simon Kuenzer <simon.kuenzer@neclab.eu>
Reviewed-by: Sharan Santhanam <sharan.santhanam@neclab.eu>
Config.uk
uknetdev.c