Re: [PATCH] bpf: use 'ctx' instead of 'skb' in debug message

2017-04-04 Thread Johannes Berg
On Tue, 2017-04-04 at 19:26 +0200, Daniel Borkmann wrote: > >    if (regs[BPF_REG_6].type != PTR_TO_CTX) { > > - verbose("at the time of BPF_LD_ABS|IND R6 != > > pointer to skb\n"); > > + verbose("at the time of BPF_LD_ABS|IND R6 != > > pointer to ctx\n"); > >    retu

Re: [PATCH] bpf: use 'ctx' instead of 'skb' in debug message

2017-04-04 Thread Daniel Borkmann
On 04/04/2017 04:46 PM, Johannes Berg wrote: From: Johannes Berg The error message here should mention 'ctx' since the context is now more generic than just an skb. Signed-off-by: Johannes Berg --- kernel/bpf/verifier.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ke

[PATCH] bpf: use 'ctx' instead of 'skb' in debug message

2017-04-04 Thread Johannes Berg
From: Johannes Berg The error message here should mention 'ctx' since the context is now more generic than just an skb. Signed-off-by: Johannes Berg --- kernel/bpf/verifier.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/bpf/verifier.c b/kernel/bpf/verifier.c index