Messages in this thread | | | From | "Penigalapati, Sandeep" <> | Subject | RE: [Intel-wired-lan] [PATCH v2 net-next 4/4] ice: switch: use convenience macros to declare dummy pkt templates | Date | Fri, 18 Feb 2022 05:20:09 +0000 |
| |
>-----Original Message----- >From: Intel-wired-lan <intel-wired-lan-bounces@osuosl.org> On Behalf Of >Alexander Lobakin >Sent: Thursday, January 27, 2022 9:10 PM >To: intel-wired-lan@lists.osuosl.org >Cc: Szapar-Mudlaw, Martyna <martyna.szapar-mudlaw@intel.com>; >netdev@vger.kernel.org; linux-kernel@vger.kernel.org; Jakub Kicinski ><kuba@kernel.org>; David S. Miller <davem@davemloft.net> >Subject: [Intel-wired-lan] [PATCH v2 net-next 4/4] ice: switch: use convenience >macros to declare dummy pkt templates > >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> >--- > drivers/net/ethernet/intel/ice/ice_switch.c | 83 +++++++++++---------- > 1 file changed, 42 insertions(+), 41 deletions(-) > Tested-by: Sandeep Penigalapati <sandeep.penigalapati@intel.com>
| |