]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/blobdiff - drivers/net/ethernet/qlogic/qed/qed_vf.c
qed*: Tx-switching configuration
[mirror_ubuntu-hirsute-kernel.git] / drivers / net / ethernet / qlogic / qed / qed_vf.c
index db14e230c9a496134b414451576392d8e626b99a..72e69c0ec10d0444f9735b99d4753b35df9b8877 100644 (file)
@@ -633,6 +633,18 @@ int qed_vf_pf_vport_update(struct qed_hwfn *p_hwfn,
                }
        }
 
+       if (p_params->update_tx_switching_flg) {
+               struct vfpf_vport_update_tx_switch_tlv *p_tx_switch_tlv;
+
+               size = sizeof(struct vfpf_vport_update_tx_switch_tlv);
+               tlv = CHANNEL_TLV_VPORT_UPDATE_TX_SWITCH;
+               p_tx_switch_tlv = qed_add_tlv(p_hwfn, &p_iov->offset,
+                                             tlv, size);
+               resp_size += sizeof(struct pfvf_def_resp_tlv);
+
+               p_tx_switch_tlv->tx_switching = p_params->tx_switching_flg;
+       }
+
        if (p_params->update_approx_mcast_flg) {
                struct vfpf_vport_update_mcast_bin_tlv *p_mcast_tlv;