net/bnxt: refactor HW ptype mapping table
authorLance Richardson <lance.richardson@broadcom.com>
Mon, 24 May 2021 18:59:49 +0000 (14:59 -0400)
committerAjit Khaparde <ajit.khaparde@broadcom.com>
Mon, 7 Jun 2021 21:35:39 +0000 (23:35 +0200)
commit1aa8a8c7b98923d0dfe33ab56d85c3bae425e337
tree352a28a3e337332e5b2d7797f8a8113cf6427ce9
parentdc59260fb68960ab4296d974370594f6ea31ab9f
net/bnxt: refactor HW ptype mapping table

Make the definition of the table used to map hardware packet type
information to DPDK packet type more generic.

Add macro definitions for constants used in creating table
indices, use these to eliminate raw constants in code.

Add build-time assertions to validate ptype mapping constants.

Signed-off-by: Lance Richardson <lance.richardson@broadcom.com>
Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
drivers/net/bnxt/bnxt_rxr.c
drivers/net/bnxt/bnxt_rxr.h
drivers/net/bnxt/bnxt_rxtx_vec_neon.c
drivers/net/bnxt/bnxt_rxtx_vec_sse.c