Re: [PATCH net-next v2 1/3] qed: Add DCBX API - qed_dcbx_get_priority_tc()

2018-08-02 Thread David Miller
From: Denis Bolotin Date: Thu, 2 Aug 2018 11:12:49 +0300 > +int qed_dcbx_get_priority_tc(struct qed_hwfn *p_hwfn, u8 pri, u8 *p_tc) Since the value range of the tc priority is 8-bit unsigned, you don't need to return it by reference. Simply return the value straight to the caller as an integer.

[PATCH net-next v2 1/3] qed: Add DCBX API - qed_dcbx_get_priority_tc()

2018-08-02 Thread Denis Bolotin
The API receives a priority and looks for the TC it is mapped to in the operational DCBX configuration. Signed-off-by: Denis Bolotin Signed-off-by: Ariel Elior --- drivers/net/ethernet/qlogic/qed/qed_dcbx.c | 19 +++ drivers/net/ethernet/qlogic/qed/qed_dcbx.h | 1 + 2 files cha