pktgen: Remove brute-force printing of flags
authorDmitry Safonov <dima@arista.com>
Thu, 18 Jan 2018 18:31:36 +0000 (18:31 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 24 Jan 2018 20:03:36 +0000 (15:03 -0500)
commit99c6d3d20d6287d7dd6e65686dba9e696de91f90
tree825f9b2660a05c00ef73bffd580840dcc9c05c35
parent6f107c741212ca5fbfb0724571395716420017d6
pktgen: Remove brute-force printing of flags

Add macro generated pkt_flag_names array, with a little help of which
the flags can be printed by using an index.

Signed-off-by: Dmitry Safonov <dima@arista.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/pktgen.c