Skip to content

Commit

Permalink
ice: switch: use convenience macros to declare dummy pkt templates
Browse files Browse the repository at this point in the history
Declarations of dummy/template packet headers and offsets can be
minified to improve readability and simplify adding new templates.
Move all the repetitive constructions into two macros and let them
do the name and type expansions.
Linewrap removal is yet another positive side effect.

Signed-off-by: Alexander Lobakin <alexandr.lobakin@intel.com>
Reviewed-by: Michal Swiatkowski <michal.swiatkowski@linux.intel.com>
Tested-by: Marcin Szycik <marcin.szycik@linux.intel.com>
Tested-by: Sandeep Penigalapati <sandeep.penigalapati@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
  • Loading branch information
Alexander Lobakin authored and Tony Nguyen committed Apr 7, 2022
1 parent 1b699f8 commit 07a2884
Showing 1 changed file with 62 additions and 71 deletions.
Loading

0 comments on commit 07a2884

Please sign in to comment.