git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
crypto/dpaa_sec: support out of place buffers
[dpdk.git]
/
examples
/
ptpclient
/
ptpclient.c
diff --git
a/examples/ptpclient/ptpclient.c
b/examples/ptpclient/ptpclient.c
index
ddfcdb8
..
c53dad6
100644
(file)
--- a/
examples/ptpclient/ptpclient.c
+++ b/
examples/ptpclient/ptpclient.c
@@
-158,12
+158,12
@@
struct ptpv2_data_slave_ordinary {
struct clock_id master_clock_id;
struct timeval new_adj;
int64_t delta;
struct clock_id master_clock_id;
struct timeval new_adj;
int64_t delta;
- uint
8
_t portid;
+ uint
16
_t portid;
uint16_t seqID_SYNC;
uint16_t seqID_FOLLOWUP;
uint8_t ptpset;
uint8_t kernel_time_set;
uint16_t seqID_SYNC;
uint16_t seqID_FOLLOWUP;
uint8_t ptpset;
uint8_t kernel_time_set;
- uint
8
_t current_ptp_port;
+ uint
16
_t current_ptp_port;
};
static struct ptpv2_data_slave_ordinary ptp_data;
};
static struct ptpv2_data_slave_ordinary ptp_data;
@@
-202,7
+202,7
@@
ns_to_timeval(int64_t nsec)
* coming from the mbuf_pool passed as a parameter.
*/
static inline int
* coming from the mbuf_pool passed as a parameter.
*/
static inline int
-port_init(uint
8
_t port, struct rte_mempool *mbuf_pool)
+port_init(uint
16
_t port, struct rte_mempool *mbuf_pool)
{
struct rte_eth_dev_info dev_info;
struct rte_eth_conf port_conf = port_conf_default;
{
struct rte_eth_dev_info dev_info;
struct rte_eth_conf port_conf = port_conf_default;
@@
-555,7
+555,7
@@
parse_drsp(struct ptpv2_data_slave_ordinary *ptp_data)
* functionality.
*/
static void
* functionality.
*/
static void
-parse_ptp_frames(uint
8
_t portid, struct rte_mbuf *m) {
+parse_ptp_frames(uint
16
_t portid, struct rte_mbuf *m) {
struct ptp_header *ptp_hdr;
struct ether_hdr *eth_hdr;
uint16_t eth_type;
struct ptp_header *ptp_hdr;
struct ether_hdr *eth_hdr;
uint16_t eth_type;
@@
-593,7
+593,7
@@
parse_ptp_frames(uint8_t portid, struct rte_mbuf *m) {
static __attribute__((noreturn)) void
lcore_main(void)
{
static __attribute__((noreturn)) void
lcore_main(void)
{
- uint
8
_t portid;
+ uint
16
_t portid;
unsigned nb_rx;
struct rte_mbuf *m;
unsigned nb_rx;
struct rte_mbuf *m;
@@
-728,7
+728,7
@@
main(int argc, char *argv[])
{
unsigned nb_ports;
{
unsigned nb_ports;
- uint
8
_t portid;
+ uint
16
_t portid;
/* Initialize the Environment Abstraction Layer (EAL). */
int ret = rte_eal_init(argc, argv);
/* Initialize the Environment Abstraction Layer (EAL). */
int ret = rte_eal_init(argc, argv);