1 /******************************************************************************
3 * Copyright (c) 2020 Intel.
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
9 * http://www.apache.org/licenses/LICENSE-2.0
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
17 *******************************************************************************/
18 // Ecpri One-way delay measurement support definitions
29 #include <sys/types.h>
30 #include <sys/queue.h>
31 #include <netinet/in.h>
46 XRAN_OWDM_WAITREQWFUP,
48 XRAN_OWDM_WAITREMREQWFUP,
52 enum xran_owd_meas_method
60 enum xran_owdm_tx_state
68 #define DELAY_THRESHOLD 60000 /* in ns */
69 #define ADJUSTMENT 60 /* in us */
70 #define MIN_OWDM_PL_LENGTH 40 /* Minimum owdm Payload length in bytes */
71 #define MAX_OWDM_PL_LENGTH 1400 /* Maximum owdm Payload length in bytes */
73 int xran_get_delay_measurements_results (void* Handle, uint16_t port_id, uint8_t id, uint64_t* pdelay_avg);
75 void xran_adjust_timing_parameters(void* Handle);
77 void xran_initialize_and_verify_owd_pl_length(void* Handle);
79 int process_delay_meas(struct rte_mbuf *pkt, void* handle, uint16_t port_id);