diff options
author | Ariel Elior <Ariel.Elior@cavium.com> | 2017-04-03 12:21:09 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-04-03 19:16:37 -0700 |
commit | b5a9ee7cf3be118ad9064583c2a0f10195ca422a (patch) | |
tree | 832541c5e932f06dac9c237f0de0bb6390977d45 /drivers/net/ethernet/qlogic/qed/qed_int.c | |
parent | c8b5d129ee293bcf972e7279ac996bb8a138505c (diff) | |
download | linux-stable-b5a9ee7cf3be118ad9064583c2a0f10195ca422a.tar.gz linux-stable-b5a9ee7cf3be118ad9064583c2a0f10195ca422a.tar.bz2 linux-stable-b5a9ee7cf3be118ad9064583c2a0f10195ca422a.zip |
qed: Revise QM cofiguration
Refactor and clean up the queue manager initialization logic.
Also, this adds support for RoC low latency queues, which later
would be used for improving RoCE latency in high throughput scenarios.
Signed-off-by: Ariel Elior <Ariel.Elior@cavium.com>
Signed-off-by: Yuval Mintz <Yuval.Mintz@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/qlogic/qed/qed_int.c')
-rw-r--r-- | drivers/net/ethernet/qlogic/qed/qed_int.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/ethernet/qlogic/qed/qed_int.c b/drivers/net/ethernet/qlogic/qed/qed_int.c index 84310b60849b..0ed24d6e6c65 100644 --- a/drivers/net/ethernet/qlogic/qed/qed_int.c +++ b/drivers/net/ethernet/qlogic/qed/qed_int.c @@ -2500,8 +2500,9 @@ void qed_int_cau_conf_sb(struct qed_hwfn *p_hwfn, /* Configure pi coalescing if set */ if (p_hwfn->cdev->int_coalescing_mode == QED_COAL_MODE_ENABLE) { + u8 num_tc = p_hwfn->hw_info.num_hw_tc; u8 timeset, timer_res; - u8 num_tc = 1, i; + u8 i; /* timeset = (coalesce >> timer-res), timeset is 7bit wide */ if (p_hwfn->cdev->rx_coalesce_usecs <= 0x7F) |