diff options
author | Jakub Kicinski | 2018-05-22 07:12:46 +0200 |
---|---|---|
committer | David S. Miller | 2018-05-23 20:26:18 +0200 |
commit | b586c77b3c657a87e5a754c69b9a40c2301416dc (patch) | |
tree | e1108b1a400ec293164b59016f596086fe3e19ba /drivers/net/ethernet/netronome/nfp/abm | |
parent | nfp: add shared buffer configuration (diff) | |
download | kernel-qcow2-linux-b586c77b3c657a87e5a754c69b9a40c2301416dc.tar.gz kernel-qcow2-linux-b586c77b3c657a87e5a754c69b9a40c2301416dc.tar.xz kernel-qcow2-linux-b586c77b3c657a87e5a754c69b9a40c2301416dc.zip |
nfp: core: allow 4-byte aligned accesses to Memory Units
Current code doesn't enforce length requirements on 32bit accesses
with action NFP_CPP_ACTION_RW to memory units, but if the access
is only aligned to 4 bytes as well we will fall into the explicit
access case and error out. Such accesses are correct, allow them
by lowering the width earlier.
While at it use a switch statement to improve readability.
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>
Diffstat (limited to 'drivers/net/ethernet/netronome/nfp/abm')
0 files changed, 0 insertions, 0 deletions