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
ethdev: return diagnostic when setting MAC address
[dpdk.git]
/
lib
/
librte_ether
/
rte_ethdev_core.h
diff --git
a/lib/librte_ether/rte_ethdev_core.h
b/lib/librte_ether/rte_ethdev_core.h
index
f44b40e
..
55eb2b0
100644
(file)
--- a/
lib/librte_ether/rte_ethdev_core.h
+++ b/
lib/librte_ether/rte_ethdev_core.h
@@
-17,6
+17,10
@@
*
*/
*
*/
+struct rte_eth_dev_callback;
+/** @internal Structure to keep track of registered callbacks */
+TAILQ_HEAD(rte_eth_dev_cb_list, rte_eth_dev_callback);
+
/*
* Definitions of all functions exported by an Ethernet driver through the
* the generic structure of type *eth_dev_ops* supplied in the *rte_eth_dev*
/*
* Definitions of all functions exported by an Ethernet driver through the
* the generic structure of type *eth_dev_ops* supplied in the *rte_eth_dev*
@@
-251,7
+255,7
@@
typedef int (*eth_mac_addr_add_t)(struct rte_eth_dev *dev,
uint32_t vmdq);
/**< @internal Set a MAC address into Receive Address Address Register */
uint32_t vmdq);
/**< @internal Set a MAC address into Receive Address Address Register */
-typedef
void
(*eth_mac_addr_set_t)(struct rte_eth_dev *dev,
+typedef
int
(*eth_mac_addr_set_t)(struct rte_eth_dev *dev,
struct ether_addr *mac_addr);
/**< @internal Set a MAC address into Receive Address Address Register */
struct ether_addr *mac_addr);
/**< @internal Set a MAC address into Receive Address Address Register */
@@
-544,6
+548,7
@@
struct rte_eth_dev {
} __rte_cache_aligned;
struct rte_eth_dev_sriov;
} __rte_cache_aligned;
struct rte_eth_dev_sriov;
+struct rte_eth_dev_owner;
/**
* @internal
/**
* @internal
@@
-595,7
+600,8
@@
struct rte_eth_dev_data {
int numa_node; /**< NUMA node connection */
struct rte_vlan_filter_conf vlan_filter_conf;
/**< VLAN filter configuration. */
int numa_node; /**< NUMA node connection */
struct rte_vlan_filter_conf vlan_filter_conf;
/**< VLAN filter configuration. */
-};
+ struct rte_eth_dev_owner owner; /**< The port owner. */
+} __rte_cache_aligned;
/**
* @internal
/**
* @internal