Remove XDP_SETUP_PROG and XDP_QUERY_PROG as they should no longer be
needed.

Signed-off-by: Tom Herbert <t...@herbertland.com>
---
 include/linux/netdevice.h | 17 +----------------
 1 file changed, 1 insertion(+), 16 deletions(-)

diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h
index f2b7d1b..9a545ab 100644
--- a/include/linux/netdevice.h
+++ b/include/linux/netdevice.h
@@ -808,18 +808,6 @@ struct tc_to_netdev {
  * to the netdevice through the xdp op.
  */
 enum xdp_netdev_command {
-       /* Set or clear a bpf program used in the earliest stages of packet
-        * rx. The prog will have been loaded as BPF_PROG_TYPE_XDP. The callee
-        * is responsible for calling bpf_prog_put on any old progs that are
-        * stored. In case of error, the callee need not release the new prog
-        * reference, but on success it takes ownership and must bpf_prog_put
-        * when it is no longer used.
-        */
-       XDP_SETUP_PROG,
-       /* Check if a bpf program is set on the device.  The callee should
-        * return true if a program is currently attached and running.
-        */
-       XDP_QUERY_PROG,
        /* Initialize XDP in the device. Called the first time an XDP hook
         * hook is being set on the device.
         */
@@ -833,10 +821,7 @@ enum xdp_netdev_command {
 struct netdev_xdp {
        enum xdp_netdev_command command;
        union {
-               /* XDP_SETUP_PROG */
-               struct bpf_prog *prog;
-               /* XDP_QUERY_PROG */
-               bool prog_attached;
+               /* Command parameters */
        };
 };
 
-- 
2.8.0.rc2

Reply via email to