Lines Matching refs:rx_md_info
546 cb->rx_md_info.tx_port_is_lag = true; in mlxsw_pci_cqe_rdq_md_tx_port_init()
547 cb->rx_md_info.tx_lag_id = mlxsw_pci_cqe2_tx_lag_id_get(cqe); in mlxsw_pci_cqe_rdq_md_tx_port_init()
548 cb->rx_md_info.tx_lag_port_index = in mlxsw_pci_cqe_rdq_md_tx_port_init()
551 cb->rx_md_info.tx_port_is_lag = false; in mlxsw_pci_cqe_rdq_md_tx_port_init()
552 cb->rx_md_info.tx_sys_port = in mlxsw_pci_cqe_rdq_md_tx_port_init()
556 if (cb->rx_md_info.tx_sys_port != MLXSW_PCI_CQE2_TX_PORT_MULTI_PORT && in mlxsw_pci_cqe_rdq_md_tx_port_init()
557 cb->rx_md_info.tx_sys_port != MLXSW_PCI_CQE2_TX_PORT_INVALID) in mlxsw_pci_cqe_rdq_md_tx_port_init()
558 cb->rx_md_info.tx_port_valid = 1; in mlxsw_pci_cqe_rdq_md_tx_port_init()
560 cb->rx_md_info.tx_port_valid = 0; in mlxsw_pci_cqe_rdq_md_tx_port_init()
567 cb->rx_md_info.tx_congestion = mlxsw_pci_cqe2_mirror_cong_get(cqe); in mlxsw_pci_cqe_rdq_md_init()
568 if (cb->rx_md_info.tx_congestion != MLXSW_PCI_CQE2_MIRROR_CONG_INVALID) in mlxsw_pci_cqe_rdq_md_init()
569 cb->rx_md_info.tx_congestion_valid = 1; in mlxsw_pci_cqe_rdq_md_init()
571 cb->rx_md_info.tx_congestion_valid = 0; in mlxsw_pci_cqe_rdq_md_init()
572 cb->rx_md_info.tx_congestion <<= MLXSW_PCI_CQE2_MIRROR_CONG_SHIFT; in mlxsw_pci_cqe_rdq_md_init()
574 cb->rx_md_info.latency = mlxsw_pci_cqe2_mirror_latency_get(cqe); in mlxsw_pci_cqe_rdq_md_init()
575 if (cb->rx_md_info.latency != MLXSW_PCI_CQE2_MIRROR_LATENCY_INVALID) in mlxsw_pci_cqe_rdq_md_init()
576 cb->rx_md_info.latency_valid = 1; in mlxsw_pci_cqe_rdq_md_init()
578 cb->rx_md_info.latency_valid = 0; in mlxsw_pci_cqe_rdq_md_init()
580 cb->rx_md_info.tx_tc = mlxsw_pci_cqe2_mirror_tclass_get(cqe); in mlxsw_pci_cqe_rdq_md_init()
581 if (cb->rx_md_info.tx_tc != MLXSW_PCI_CQE2_MIRROR_TCLASS_INVALID) in mlxsw_pci_cqe_rdq_md_init()
582 cb->rx_md_info.tx_tc_valid = 1; in mlxsw_pci_cqe_rdq_md_init()
584 cb->rx_md_info.tx_tc_valid = 0; in mlxsw_pci_cqe_rdq_md_init()
635 mlxsw_skb_cb(skb)->rx_md_info.cookie_index = cookie_index; in mlxsw_pci_cqe_rdq_handle()