Fix vector raw inintialization logic
authorAnton Ivanov <anton.ivanov@cambridgegreys.com>
Mon, 5 Mar 2018 13:29:05 +0000 (13:29 +0000)
committerRichard Weinberger <richard@nod.at>
Thu, 29 Mar 2018 20:18:02 +0000 (22:18 +0200)
commite40238dedb484c8a19f8257e4ef5d77d038f9ad8
tree8bef9aea1db074cf8406f0c6da1d627da35e9449
parentce471fdbc6173eed5af52df3dca179a509f483d9
Fix vector raw inintialization logic

Vector RAW in UML needs to BPF filter its own MAC only
if QDISC_BYPASS has failed. If QDISC_BYPASS is successful, the
frames originated locally are not visible to readers on the
raw socket.

Signed-off-by: Anton Ivanov <anton.ivanov@cambridgegreys.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
arch/um/drivers/vector_kern.c
arch/um/drivers/vector_kern.h
arch/um/drivers/vector_user.c
arch/um/drivers/vector_user.h