1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /****************************************************************************
3  * Driver for Solarflare network controllers and boards
4  * Copyright 2022 Xilinx Inc.
5  *
6  * This program is free software; you can redistribute it and/or modify it
7  * under the terms of the GNU General Public License version 2 as published
8  * by the Free Software Foundation, incorporated herein by reference.
9  */
10 
11 #ifndef EFX_TC_BINDINGS_H
12 #define EFX_TC_BINDINGS_H
13 #include "net_driver.h"
14 
15 #include <net/sch_generic.h>
16 
17 struct efx_rep;
18 
19 void efx_tc_block_unbind(void *cb_priv);
20 int efx_tc_setup_block(struct net_device *net_dev, struct efx_nic *efx,
21 		       struct flow_block_offload *tcb, struct efx_rep *efv);
22 int efx_tc_setup(struct net_device *net_dev, enum tc_setup_type type,
23 		 void *type_data);
24 
25 int efx_tc_indr_setup_cb(struct net_device *net_dev, struct Qdisc *sch,
26 			 void *cb_priv, enum tc_setup_type type,
27 			 void *type_data, void *data,
28 			 void (*cleanup)(struct flow_block_cb *block_cb));
29 int efx_tc_netdev_event(struct efx_nic *efx, unsigned long event,
30 			struct net_device *net_dev);
31 #endif /* EFX_TC_BINDINGS_H */
32