]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
qed: Correct TM ILT lines in presence of VFs
authorMintz, Yuval <Yuval.Mintz@cavium.com>
Mon, 3 Apr 2017 09:21:11 +0000 (12:21 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 4 Apr 2017 02:16:37 +0000 (19:16 -0700)
As of today there's no protocol supported that requires
support from the TM hardware block and enables SRIOV,
but we should still correct the calculation to reflect
the lines required for such future VFs instead of changing
the PF's own lines.

Signed-off-by: Yuval Mintz <Yuval.Mintz@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qlogic/qed/qed_cxt.c

index 259dafa39e108a8de86ab697278a87a680e043c1..f7b1a3732b04f31b90329420d010612a3bbf5c0a 100644 (file)
@@ -783,8 +783,8 @@ int qed_cxt_cfg_ilt_compute(struct qed_hwfn *p_hwfn)
 
                qed_ilt_cli_adv_line(p_hwfn, p_cli, p_blk, &curr_line,
                                     ILT_CLI_TM);
-               p_cli->pf_total_lines = curr_line - p_blk->start_line;
 
+               p_cli->vf_total_lines = curr_line - p_blk->start_line;
                for (i = 1; i < p_mngr->vf_count; i++)
                        qed_ilt_cli_adv_line(p_hwfn, p_cli, p_blk, &curr_line,
                                             ILT_CLI_TM);