tc_bindings.h 1.0 KB

1234567891011121314151617181920212223242526272829
  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. #ifndef EFX_TC_BINDINGS_H
  11. #define EFX_TC_BINDINGS_H
  12. #include "net_driver.h"
  13. #include <net/sch_generic.h>
  14. struct efx_rep;
  15. void efx_tc_block_unbind(void *cb_priv);
  16. int efx_tc_setup_block(struct net_device *net_dev, struct efx_nic *efx,
  17. struct flow_block_offload *tcb, struct efx_rep *efv);
  18. int efx_tc_setup(struct net_device *net_dev, enum tc_setup_type type,
  19. void *type_data);
  20. int efx_tc_indr_setup_cb(struct net_device *net_dev, struct Qdisc *sch,
  21. void *cb_priv, enum tc_setup_type type,
  22. void *type_data, void *data,
  23. void (*cleanup)(struct flow_block_cb *block_cb));
  24. #endif /* EFX_TC_BINDINGS_H */