Lines Matching refs:rx_md_info
696 cb->rx_md_info.tx_port_is_lag = true; in mlxsw_pci_cqe_rdq_md_tx_port_init()
697 cb->rx_md_info.tx_lag_id = mlxsw_pci_cqe2_tx_lag_id_get(cqe); in mlxsw_pci_cqe_rdq_md_tx_port_init()
698 cb->rx_md_info.tx_lag_port_index = in mlxsw_pci_cqe_rdq_md_tx_port_init()
701 cb->rx_md_info.tx_port_is_lag = false; in mlxsw_pci_cqe_rdq_md_tx_port_init()
702 cb->rx_md_info.tx_sys_port = in mlxsw_pci_cqe_rdq_md_tx_port_init()
706 if (cb->rx_md_info.tx_sys_port != MLXSW_PCI_CQE2_TX_PORT_MULTI_PORT && in mlxsw_pci_cqe_rdq_md_tx_port_init()
707 cb->rx_md_info.tx_sys_port != MLXSW_PCI_CQE2_TX_PORT_INVALID) in mlxsw_pci_cqe_rdq_md_tx_port_init()
708 cb->rx_md_info.tx_port_valid = 1; in mlxsw_pci_cqe_rdq_md_tx_port_init()
710 cb->rx_md_info.tx_port_valid = 0; in mlxsw_pci_cqe_rdq_md_tx_port_init()
717 cb->rx_md_info.tx_congestion = mlxsw_pci_cqe2_mirror_cong_get(cqe); in mlxsw_pci_cqe_rdq_md_init()
718 if (cb->rx_md_info.tx_congestion != MLXSW_PCI_CQE2_MIRROR_CONG_INVALID) in mlxsw_pci_cqe_rdq_md_init()
719 cb->rx_md_info.tx_congestion_valid = 1; in mlxsw_pci_cqe_rdq_md_init()
721 cb->rx_md_info.tx_congestion_valid = 0; in mlxsw_pci_cqe_rdq_md_init()
722 cb->rx_md_info.tx_congestion <<= MLXSW_PCI_CQE2_MIRROR_CONG_SHIFT; in mlxsw_pci_cqe_rdq_md_init()
724 cb->rx_md_info.latency = mlxsw_pci_cqe2_mirror_latency_get(cqe); in mlxsw_pci_cqe_rdq_md_init()
725 if (cb->rx_md_info.latency != MLXSW_PCI_CQE2_MIRROR_LATENCY_INVALID) in mlxsw_pci_cqe_rdq_md_init()
726 cb->rx_md_info.latency_valid = 1; in mlxsw_pci_cqe_rdq_md_init()
728 cb->rx_md_info.latency_valid = 0; in mlxsw_pci_cqe_rdq_md_init()
730 cb->rx_md_info.tx_tc = mlxsw_pci_cqe2_mirror_tclass_get(cqe); in mlxsw_pci_cqe_rdq_md_init()
731 if (cb->rx_md_info.tx_tc != MLXSW_PCI_CQE2_MIRROR_TCLASS_INVALID) in mlxsw_pci_cqe_rdq_md_init()
732 cb->rx_md_info.tx_tc_valid = 1; in mlxsw_pci_cqe_rdq_md_init()
734 cb->rx_md_info.tx_tc_valid = 0; in mlxsw_pci_cqe_rdq_md_init()
798 mlxsw_skb_cb(skb)->rx_md_info.cookie_index = cookie_index; in mlxsw_pci_cqe_rdq_handle()