net/sfc/base: support different event descriptor sizes
authorIgor Romanov <igor.romanov@oktetlabs.ru>
Thu, 7 Feb 2019 16:29:25 +0000 (16:29 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 8 Feb 2019 10:35:41 +0000 (11:35 +0100)
commitd6b55d568278316d5da6bdd66f3f8b39771d8950
tree0cddf94afb1b329972a87ef25a0f0fc8987bbce5
parenteebbd4250d1f6a958820b83d179aa0f23eab273f
net/sfc/base: support different event descriptor sizes

For consistency with the size of Tx descriptors, the size of event
descriptors should be a part of NIC config, not a macro that is
common for all NIC families. Also, add a max number of EvQ buffers
define which is needed to initialize an MCDI buffer at compile time.

Signed-off-by: Igor Romanov <igor.romanov@oktetlabs.ru>
Signed-off-by: Andrew Rybchenko <arybchenko@solarflare.com>
12 files changed:
drivers/net/sfc/base/ef10_ev.c
drivers/net/sfc/base/ef10_impl.h
drivers/net/sfc/base/efx.h
drivers/net/sfc/base/efx_ev.c
drivers/net/sfc/base/hunt_impl.h
drivers/net/sfc/base/hunt_nic.c
drivers/net/sfc/base/medford2_impl.h
drivers/net/sfc/base/medford2_nic.c
drivers/net/sfc/base/medford_impl.h
drivers/net/sfc/base/medford_nic.c
drivers/net/sfc/base/siena_impl.h
drivers/net/sfc/base/siena_nic.c