diff options
author | Denis Bolotin <denis.bolotin@cavium.com> | 2018-08-07 15:48:09 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-08-07 13:22:10 -0700 |
commit | c4259dda171920bf25f92756aa5a5fd17bf7e19e (patch) | |
tree | 199ff18c6f8ee9ef44eb5901d04a75af0d147305 /drivers/net/ethernet/qlogic/qed/qed.h | |
parent | 2a1cb1bf439f6703f82f61d0424b41f42544e3ff (diff) | |
download | lwn-c4259dda171920bf25f92756aa5a5fd17bf7e19e.tar.gz lwn-c4259dda171920bf25f92756aa5a5fd17bf7e19e.zip |
qed: Add a flag which indicates if offload TC is set
Distinguish not set offload_tc from offload_tc 0 and add getters and
setters.
Signed-off-by: Michal Kalderon <michal.kalderon@cavium.com>
Signed-off-by: Ariel Elior <ariel.elior@cavium.com>
Signed-off-by: Denis Bolotin <denis.bolotin@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/qlogic/qed/qed.h')
-rw-r--r-- | drivers/net/ethernet/qlogic/qed/qed.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/ethernet/qlogic/qed/qed.h b/drivers/net/ethernet/qlogic/qed/qed.h index 1dfaccd151f0..f916f139f80e 100644 --- a/drivers/net/ethernet/qlogic/qed/qed.h +++ b/drivers/net/ethernet/qlogic/qed/qed.h @@ -336,6 +336,7 @@ struct qed_hw_info { */ u8 num_active_tc; u8 offload_tc; + bool offload_tc_set; u32 concrete_fid; u16 opaque_fid; @@ -921,4 +922,6 @@ int qed_mfw_tlv_req(struct qed_hwfn *hwfn); int qed_mfw_fill_tlv_data(struct qed_hwfn *hwfn, enum qed_mfw_tlv_type type, union qed_mfw_tlv_data *tlv_data); + +void qed_hw_info_set_offload_tc(struct qed_hw_info *p_info, u8 tc); #endif /* _QED_H */ |