bnxt_dcb.h 865 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /* Broadcom NetXtreme-C/E network driver.
  2. *
  3. * Copyright (c) 2014-2016 Broadcom Corporation
  4. *
  5. * This program is free software; you can redistribute it and/or modify
  6. * it under the terms of the GNU General Public License as published by
  7. * the Free Software Foundation.
  8. */
  9. #ifndef BNXT_DCB_H
  10. #define BNXT_DCB_H
  11. #include <net/dcbnl.h>
  12. struct bnxt_dcb {
  13. u8 max_tc;
  14. struct ieee_pfc *ieee_pfc;
  15. struct ieee_ets *ieee_ets;
  16. u8 dcbx_cap;
  17. u8 default_pri;
  18. };
  19. struct bnxt_cos2bw_cfg {
  20. u8 pad[3];
  21. u8 queue_id;
  22. __le32 min_bw;
  23. __le32 max_bw;
  24. u8 tsa;
  25. u8 pri_lvl;
  26. u8 bw_weight;
  27. u8 unused;
  28. };
  29. #define BNXT_LLQ(q_profile) \
  30. ((q_profile) == QUEUE_QPORTCFG_RESP_QUEUE_ID0_SERVICE_PROFILE_LOSSLESS)
  31. #define HWRM_STRUCT_DATA_SUBTYPE_HOST_OPERATIONAL 0x0300
  32. void bnxt_dcb_init(struct bnxt *bp);
  33. void bnxt_dcb_free(struct bnxt *bp);
  34. #endif