liquidio: stop using huge static buffer, save 4096k in .data
authorDenys Vlasenko <dvlasenk@redhat.com>
Mon, 19 Jun 2017 19:50:52 +0000 (21:50 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 22 Jun 2017 15:03:00 +0000 (11:03 -0400)
commitb381f783baa5b755f065df347f738f303b62e948
tree275757e905e256e4257fa60eca97cb39aa8616ff
parent3d09198243b89457649241fb63f809a96a22a8ce
liquidio: stop using huge static buffer, save 4096k in .data

Only compile-tested - I don't have the hardware.

>From code inspection, octeon_pci_write_core_mem() appears to be safe wrt
unaligned source. In any case, u8 fbuf[] was not guaranteed to be aligned
anyway.

Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
CC: Felix Manlunas <felix.manlunas@cavium.com>
CC: Prasad Kanneganti <prasad.kanneganti@cavium.com>
CC: Derek Chickles <derek.chickles@cavium.com>
CC: David Miller <davem@davemloft.net>
CC: netdev@vger.kernel.org
CC: linux-kernel@vger.kernel.org
Acked-by: Felix Manlunas <felix.manlunas@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cavium/liquidio/octeon_console.c
drivers/net/ethernet/cavium/liquidio/octeon_mem_ops.c
drivers/net/ethernet/cavium/liquidio/octeon_mem_ops.h