bpf: fix the printing of ifindex
authorWilliam Tu <u9012063@gmail.com>
Wed, 2 Aug 2017 15:43:52 +0000 (08:43 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 3 Aug 2017 16:25:26 +0000 (09:25 -0700)
commiteb48d682814c8b0e44111c45d7c554e1989fd10d
tree986e1de93098b87aec81661563a35531b4d677a8
parentf6c00a3bb85671ccc71650c0f13871f318d7d74c
bpf: fix the printing of ifindex

Save the ifindex before it gets zeroed so the invalid
ifindex can be printed out.

Signed-off-by: William Tu <u9012063@gmail.com>
Acked-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: John Fastabend <john.fastabend@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/filter.c