From e40238dedb484c8a19f8257e4ef5d77d038f9ad8 Mon Sep 17 00:00:00 2001 From: Anton Ivanov Date: Mon, 5 Mar 2018 13:29:05 +0000 Subject: 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 Signed-off-by: Richard Weinberger --- arch/um/drivers/vector_user.h | 1 + 1 file changed, 1 insertion(+) (limited to 'arch/um/drivers/vector_user.h') diff --git a/arch/um/drivers/vector_user.h b/arch/um/drivers/vector_user.h index 421092c57bb7..d7cbff73b7ff 100644 --- a/arch/um/drivers/vector_user.h +++ b/arch/um/drivers/vector_user.h @@ -92,6 +92,7 @@ extern int uml_vector_recvmmsg( ); extern void *uml_vector_default_bpf(int fd, void *mac); extern int uml_vector_attach_bpf(int fd, void *bpf, int bpf_len); +extern bool uml_raw_enable_qdisc_bypass(int fd); extern bool uml_raw_enable_vnet_headers(int fd); extern bool uml_tap_enable_vnet_headers(int fd); -- cgit v1.2.3