trafgen: lexer/parser: fix cpu() selection and whitespacing

It looks unintuitive when once needs to write cpu(0:3), so also allow
cpu(0-3). Then it's quite stupid to enforce whitespace after the double
colon before the curley braces open. So make this rather optional here.

Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
trafgen: parser: add possibility for negative numbers

The previous commit reduced it, so now we allow it within cX() containers
in order to negate a result, if someone needs that.

Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
trafgen: update help description

After commit f9591eebe40c (trafgen: lexer/parser: fix cpu() selection
and whitespacing), we also need to fixup the help description, so that
users start using the cpu(X-Y) notation instead. Also, reintroduce the
alias csum16 for csumip.

Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
trafgen: lexer: return if no needle found

Also return if no needle has been found in the shell code haystack.

Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
trafgen: parser: do not enforce whitesapce

Do not enforce whitespace at the beginning or end of a packet
configuration, there's no reason to do so.

Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
ring: purge timer before we unmap tx ring buffers

If we unmap TX ring buffers and still have timer shots that trigger
the kernel to traverse the TX_RING, it can send out random crap in
some situations. Prevent this by destroying the timer and flush the
TX_RING first in wait mode.

Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
make: when mrproper, also remove Git tree unrelated files

When we really clean up everything, also remove crap files that do
not belong to the Git tree.

Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
make: also credit involved people in mail message

Still untested, since we did not yet tag a release, but for now,
also credit all involved people in a particular release.

Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
Merge remote-tracking branch 'upstream/master'