]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
nfp: nsp: use fractional size of the buffer
authorJakub Kicinski <jakub.kicinski@netronome.com>
Wed, 27 Feb 2019 04:19:30 +0000 (20:19 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 1 Mar 2019 19:36:00 +0000 (11:36 -0800)
commit882cdcb5d3abb99926d474d24902636f87b583c1
treecd56644ac760729446ada5330b7fbd8e3f1597bc
parent1e301a140763c75e9123411b3f7243522c2b6578
nfp: nsp: use fractional size of the buffer

NSP expresses the buffer size in MB and 4 kB blocks.  For small
buffers the kB part may make a difference, so count it in.

Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Reviewed-by: Dirk van der Merwe <dirk.vandermerwe@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/netronome/nfp/nfpcore/nfp_nsp.c