diff options
author | Gregory CLEMENT <gregory.clement@bootlin.com> | 2018-07-18 18:10:55 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-07-28 22:12:55 -0700 |
commit | 7e47fd84b56bb37ff1c3d9ab49c2fff5ee4b3077 (patch) | |
tree | e502e49d29aa66261d75a9ec1be95d3a37b951ff /drivers/net/ethernet/marvell/mvneta_bm.h | |
parent | 17a96da627163d82776e2dc3198deef68cf077e0 (diff) | |
download | lwn-7e47fd84b56bb37ff1c3d9ab49c2fff5ee4b3077.tar.gz lwn-7e47fd84b56bb37ff1c3d9ab49c2fff5ee4b3077.zip |
net: mvneta: Allocate page for the descriptor
Instead of trying to allocate the exact amount of memory for each
descriptor use a page for each of them, it allows to simplify the
allocation management and increase the performance of the driver.
Based on the work of Yelena Krivosheev <yelena@marvell.com>
Signed-off-by: Gregory CLEMENT <gregory.clement@bootlin.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/marvell/mvneta_bm.h')
-rw-r--r-- | drivers/net/ethernet/marvell/mvneta_bm.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/net/ethernet/marvell/mvneta_bm.h b/drivers/net/ethernet/marvell/mvneta_bm.h index 9358626e51ec..c8425d35c049 100644 --- a/drivers/net/ethernet/marvell/mvneta_bm.h +++ b/drivers/net/ethernet/marvell/mvneta_bm.h @@ -130,9 +130,6 @@ struct mvneta_bm_pool { }; /* Declarations and definitions */ -void *mvneta_frag_alloc(unsigned int frag_size); -void mvneta_frag_free(unsigned int frag_size, void *data); - #if IS_ENABLED(CONFIG_MVNETA_BM) struct mvneta_bm *mvneta_bm_get(struct device_node *node); void mvneta_bm_put(struct mvneta_bm *priv); |