net: add a hardware buffer management helper API
authorGregory CLEMENT <gregory.clement@free-electrons.com>
Mon, 14 Mar 2016 08:39:04 +0000 (09:39 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 14 Mar 2016 16:19:46 +0000 (12:19 -0400)
commit8cb2d8bf57e6e004c37db2fb4ce74f4d032b7cd0
treed70238eede693b7bf8b42d86a4eab534754ce341
parentdc35a10f68d3781c2345d60b22103785985ca849
net: add a hardware buffer management helper API

This basic implementation allows to share code between driver using
hardware buffer management. As the code is hardware agnostic, there is
few helpers, most of the optimization brought by the an HW BM has to be
done at driver level.

Tested-by: Sebastian Careba <nitroshift@yahoo.com>
Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/hwbm.h [new file with mode: 0644]
net/Kconfig
net/core/Makefile
net/core/hwbm.c [new file with mode: 0644]