]> git.baikalelectronics.ru Git - kernel.git/commit
tools: selftests: psock_tpacket: get rid of macro wrappers
authorDaniel Borkmann <dborkman@redhat.com>
Mon, 1 Jul 2013 16:09:50 +0000 (18:09 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 2 Jul 2013 07:23:57 +0000 (00:23 -0700)
commit94d5d30967aed2a1124c149c2c5cfc0e4319de8b
treeca2ce4693f596cdc680a45a010429b7311aac451
parent3f8c4e5190e674966b78be3825dcd7c5a322e389
tools: selftests: psock_tpacket: get rid of macro wrappers

The TPACKET_V3 test code consists of a lot of unecessary macro
wrappers that rather obfuscate what members are accessed in what
way. So get rid of them and make the code more readable. Also
credit Chetan for providing tpacket_v3 example code. Furthermore,
get rid of private offset usage, as we do not need it here.

Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/net/psock_tpacket.c