i40e: clean up packet type lookup table
authorJesse Brandeburg <jesse.brandeburg@intel.com>
Tue, 23 Feb 2021 23:47:06 +0000 (15:47 -0800)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Fri, 18 Jun 2021 16:04:44 +0000 (09:04 -0700)
commitc6e088bf30dccb9fb7b7df7c394a2fe10eb3a27a
tree539693249dfe42dca422addec0013c7658205bdf
parentdda90cb90a5ced4ebfb75e3f06d59fa1abb58f65
i40e: clean up packet type lookup table

Remove the unused ptype struct value, which makes table init easier for
the zero entries, and use ranged initializer to remove a bunch of code
(works with gcc and clang). There is no significant functional change.

Signed-off-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
Tested-by: Dave Switzer <david.switzer@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/i40e/i40e_common.c
drivers/net/ethernet/intel/i40e/i40e_type.h