Skip to content

Commit

Permalink
qed: Apply tunnel configurations after PF start
Browse files Browse the repository at this point in the history
Configure and enable various tunnels on the
adapter after PF start.

This change was missed as a part of
'commit 464f664
("qed: Add infrastructure support for tunneling")'

Signed-off-by: Manish Chopra <manish.chopra@qlogic.com>
Signed-off-by: Yuval Mintz <yuval.mintz@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Manish Chopra authored and David S. Miller committed May 3, 2016
1 parent da7daf5 commit c0f31a0
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion drivers/net/ethernet/qlogic/qed/qed_sp_commands.c
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,15 @@ int qed_sp_pf_start(struct qed_hwfn *p_hwfn,
sb, sb_index,
p_ramrod->outer_tag);

return qed_spq_post(p_hwfn, p_ent, NULL);
rc = qed_spq_post(p_hwfn, p_ent, NULL);

if (p_tunn) {
qed_set_hw_tunn_mode(p_hwfn, p_hwfn->p_main_ptt,
p_tunn->tunn_mode);
p_hwfn->cdev->tunn_mode = p_tunn->tunn_mode;
}

return rc;
}

/* Set pf update ramrod command params */
Expand Down

0 comments on commit c0f31a0

Please sign in to comment.