net/mlx5: add C++ include guard to public header
[dpdk.git] / drivers / net / mlx5 / mlx5_rxtx_vec_altivec.h
index 1d00c1c..f6e434c 100644 (file)
@@ -1189,6 +1189,12 @@ rxq_cq_process_v(struct mlx5_rxq_data *rxq, volatile struct mlx5_cqe *cq,
 
                /* D.5 fill in mbuf - rearm_data and packet_type. */
                rxq_cq_to_ptype_oflags_v(rxq, cqes, opcode, &pkts[pos]);
+               if (unlikely(rxq->shared)) {
+                       pkts[pos]->port = cq[pos].user_index_low;
+                       pkts[pos + p1]->port = cq[pos + p1].user_index_low;
+                       pkts[pos + p2]->port = cq[pos + p2].user_index_low;
+                       pkts[pos + p3]->port = cq[pos + p3].user_index_low;
+               }
                if (rxq->hw_timestamp) {
                        int offset = rxq->timestamp_offset;
                        if (rxq->rt_timestamp) {
@@ -1224,7 +1230,7 @@ rxq_cq_process_v(struct mlx5_rxq_data *rxq, volatile struct mlx5_cqe *cq,
                        uint32_t mask = rxq->flow_meta_port_mask;
                        uint32_t metadata;
 
-                       /* This code is subject for futher optimization. */
+                       /* This code is subject for further optimization. */
                        metadata = rte_be_to_cpu_32
                                (cq[pos].flow_table_metadata) & mask;
                        *RTE_MBUF_DYNFIELD(pkts[pos], offs, uint32_t *) =