提交 dc5a3d79 编写于 作者: M Manish Chopra 提交者: David S. Miller

bnx2x: Fix PF-VF communication over multi-cos queues.

PF driver doesn't enable tx-switching for all cos queues/clients,
which causes packets drop from PF to VF. Fix this by enabling
tx-switching on all cos queues/clients.
Signed-off-by: NManish Chopra <manishc@marvell.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 069e4782
...@@ -2397,15 +2397,21 @@ static int bnx2x_set_pf_tx_switching(struct bnx2x *bp, bool enable) ...@@ -2397,15 +2397,21 @@ static int bnx2x_set_pf_tx_switching(struct bnx2x *bp, bool enable)
/* send the ramrod on all the queues of the PF */ /* send the ramrod on all the queues of the PF */
for_each_eth_queue(bp, i) { for_each_eth_queue(bp, i) {
struct bnx2x_fastpath *fp = &bp->fp[i]; struct bnx2x_fastpath *fp = &bp->fp[i];
int tx_idx;
/* Set the appropriate Queue object */ /* Set the appropriate Queue object */
q_params.q_obj = &bnx2x_sp_obj(bp, fp).q_obj; q_params.q_obj = &bnx2x_sp_obj(bp, fp).q_obj;
/* Update the Queue state */ for (tx_idx = FIRST_TX_COS_INDEX;
rc = bnx2x_queue_state_change(bp, &q_params); tx_idx < fp->max_cos; tx_idx++) {
if (rc) { q_params.params.update.cid_index = tx_idx;
BNX2X_ERR("Failed to configure Tx switching\n");
return rc; /* Update the Queue state */
rc = bnx2x_queue_state_change(bp, &q_params);
if (rc) {
BNX2X_ERR("Failed to configure Tx switching\n");
return rc;
}
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册