dp_txrx_me.h 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. /*
  2. * Copyright (c) 2016-2020 The Linux Foundation. All rights reserved.
  3. *
  4. * Permission to use, copy, modify, and/or distribute this software for
  5. * any purpose with or without fee is hereby granted, provided that the
  6. * above copyright notice and this permission notice appear in all
  7. * copies.
  8. *
  9. * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
  10. * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
  11. * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
  12. * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
  13. * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
  14. * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
  15. * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  16. * PERFORMANCE OF THIS SOFTWARE.
  17. */
  18. #ifndef _DP_TXRX_ME_H_
  19. #define _DP_TXRX_ME_H_
  20. #ifndef QCA_HOST_MODE_WIFI_DISABLED
  21. uint16_t
  22. dp_tx_me_send_convert_ucast(struct cdp_soc_t *soc, uint8_t vdev_id,
  23. qdf_nbuf_t nbuf,
  24. uint8_t newmac[][QDF_MAC_ADDR_SIZE],
  25. uint8_t new_mac_cnt, uint8_t tid,
  26. bool is_igmp);
  27. void dp_tx_me_alloc_descriptor(struct cdp_soc_t *soc, uint8_t pdev_id);
  28. void dp_tx_me_free_descriptor(struct cdp_soc_t *soc, uint8_t pdev_id);
  29. void dp_tx_me_exit(struct dp_pdev *pdev);
  30. #endif /* QCA_HOST_MODE_WIFI_DISABLED */
  31. QDF_STATUS
  32. dp_tx_prepare_send_me(struct dp_vdev *vdev, qdf_nbuf_t nbuf);
  33. QDF_STATUS
  34. dp_tx_prepare_send_igmp_me(struct dp_vdev *vdev, qdf_nbuf_t nbuf);
  35. extern int
  36. dp_me_mcast_convert(struct cdp_soc_t *soc,
  37. uint8_t vdev_id,
  38. uint8_t pdev_id,
  39. qdf_nbuf_t wbuf);
  40. extern int
  41. dp_igmp_me_mcast_convert(struct cdp_soc_t *soc,
  42. uint8_t vdev_id,
  43. uint8_t pdev_id,
  44. qdf_nbuf_t wbuf);
  45. #endif