nfp: abm: add helpers for configuring queue marking levels
authorJakub Kicinski <jakub.kicinski@netronome.com>
Sat, 26 May 2018 04:53:28 +0000 (21:53 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 29 May 2018 13:49:15 +0000 (09:49 -0400)
commit25e0036fcd241fcb4541522e511168871d7c8bed
tree37108f89d88ec14e0a7158a76c7e0caab346c710
parent055ee0d69887af1d511246d745610bdf9d627e75
nfp: abm: add helpers for configuring queue marking levels

Queue levels for simple ECN marking are stored in _abi_nfd_out_q_lvls_X
symbol, where X is the PCIe PF id.  Find out the location of that symbol
and add helpers for modifying it.

Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/netronome/nfp/abm/ctrl.c
drivers/net/ethernet/netronome/nfp/abm/main.h
drivers/net/ethernet/netronome/nfp/nfpcore/nfp_cpp.h