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
i40e: support ieee1588 functions for device time
[dpdk.git]
/
drivers
/
net
/
i40e
/
i40e_ethdev.h
diff --git
a/drivers/net/i40e/i40e_ethdev.h
b/drivers/net/i40e/i40e_ethdev.h
index
d281935
..
be705f7
100644
(file)
--- a/
drivers/net/i40e/i40e_ethdev.h
+++ b/
drivers/net/i40e/i40e_ethdev.h
@@
-35,6
+35,7
@@
#define _I40E_ETHDEV_H_
#include <rte_eth_ctrl.h>
#define _I40E_ETHDEV_H_
#include <rte_eth_ctrl.h>
+#include <rte_time.h>
#define I40E_VLAN_TAG_SIZE 4
#define I40E_VLAN_TAG_SIZE 4
@@
-516,11
+517,16
@@
struct i40e_adapter {
struct i40e_vf vf;
};
struct i40e_vf vf;
};
- /*
f
or vector PMD */
+ /*
F
or vector PMD */
bool rx_bulk_alloc_allowed;
bool rx_vec_allowed;
bool tx_simple_allowed;
bool tx_vec_allowed;
bool rx_bulk_alloc_allowed;
bool rx_vec_allowed;
bool tx_simple_allowed;
bool tx_vec_allowed;
+
+ /* For PTP */
+ struct rte_timecounter systime_tc;
+ struct rte_timecounter rx_tstamp_tc;
+ struct rte_timecounter tx_tstamp_tc;
};
int i40e_dev_switch_queues(struct i40e_pf *pf, bool on);
};
int i40e_dev_switch_queues(struct i40e_pf *pf, bool on);