From: Jesper Dangaard Brouer Date: Tue, 13 Feb 2018 13:15:36 +0000 (+0100) Subject: net: avoid including xdp.h in filter.h X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=297dd12cb104151797fd649433a2157b585f1718;p=linux.git net: avoid including xdp.h in filter.h If is sufficient with a forward declaration of struct xdp_rxq_info in linux/filter.h, which avoids including net/xdp.h. This was originally suggested by John Fastabend during the review phase, but wasn't included in the final patchset revision. Thus, this followup. Suggested-by: John Fastabend Signed-off-by: Jesper Dangaard Brouer Signed-off-by: Alexei Starovoitov --- diff --git a/include/linux/filter.h b/include/linux/filter.h index 276932d759750..fdb691b520c07 100644 --- a/include/linux/filter.h +++ b/include/linux/filter.h @@ -20,7 +20,6 @@ #include #include -#include #include #include @@ -30,6 +29,7 @@ struct sk_buff; struct sock; struct seccomp_data; struct bpf_prog_aux; +struct xdp_rxq_info; /* ArgX, context and stack frame pointer register positions. Note, * Arg1, Arg2, Arg3, etc are used as argument mappings of function