common/sfc_efx/base: provide helper to check Rx prefix
authorAndrew Rybchenko <arybchenko@solarflare.com>
Tue, 13 Oct 2020 13:45:46 +0000 (14:45 +0100)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 16 Oct 2020 17:48:18 +0000 (19:48 +0200)
commit840478c2f8d03060e0ab4ab2ba64339b49fb2cc6
tree2bacc06e7a5aed28d7ffc6586e34272a7cce9a63
parentf784cdc5cbb1ba18c7c7c4085eda8712c036b4cd
common/sfc_efx/base: provide helper to check Rx prefix

A new function allows to check if used Rx prefix layout matches
available Rx prefix layout. Length check is out-of-scope of the
function and caller should ensure length is either checked or
different length with everything required in place is handled
properly.

Signed-off-by: Andrew Rybchenko <arybchenko@solarflare.com>
drivers/common/sfc_efx/base/efx.h
drivers/common/sfc_efx/base/efx_rx.c
drivers/common/sfc_efx/rte_common_sfc_efx_version.map