diff options
author | Marcin Wojtas <mw@semihalf.com> | 2018-12-11 13:56:49 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-12-16 12:39:59 -0800 |
commit | e735fd55b94bb48363737db3b1d57627c1a16b47 (patch) | |
tree | a5631e301c1cdc3dc22338cdb5e1513a56eaeab0 /net/ipv4 | |
parent | 369a094d500fb4962071f2a91793f66cdfef00aa (diff) | |
download | linux-stable-e735fd55b94bb48363737db3b1d57627c1a16b47.tar.gz linux-stable-e735fd55b94bb48363737db3b1d57627c1a16b47.tar.bz2 linux-stable-e735fd55b94bb48363737db3b1d57627c1a16b47.zip |
net: mvneta: fix operation for 64K PAGE_SIZE
Recent changes in the mvneta driver reworked allocation
and handling of the ingress buffers to use entire pages.
Apart from that in SW BM scenario the HW must be informed
via PRXDQS about the biggest possible incoming buffer
that can be propagated by RX descriptors.
The BufferSize field was filled according to the MTU-dependent
pkt_size value. Later change to PAGE_SIZE broke RX operation
when usin 64K pages, as the field is simply too small.
This patch conditionally limits the value passed to the BufferSize
of the PRXDQS register, depending on the PAGE_SIZE used.
On the occasion remove now unused frag_size field of the mvneta_port
structure.
Fixes: 562e2f467e71 ("net: mvneta: Improve the buffer allocation method for SWBM")
Signed-off-by: Marcin Wojtas <mw@semihalf.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4')
0 files changed, 0 insertions, 0 deletions