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
net/txgbe: support VF promiscuous and allmulticast
[dpdk.git]
/
drivers
/
net
/
memif
/
memif_socket.h
diff --git
a/drivers/net/memif/memif_socket.h
b/drivers/net/memif/memif_socket.h
index
db293e2
..
b9b8a15
100644
(file)
--- a/
drivers/net/memif/memif_socket.h
+++ b/
drivers/net/memif/memif_socket.h
@@
-6,6
+6,7
@@
#define _MEMIF_SOCKET_H_
#include <sys/queue.h>
#define _MEMIF_SOCKET_H_
#include <sys/queue.h>
+#include <sys/un.h>
/**
* Remove device from socket device list. If no device is left on the socket,
/**
* Remove device from socket device list. If no device is left on the socket,
@@
-59,7
+60,8
@@
void memif_disconnect(struct rte_eth_dev *dev);
* - On success, zero.
* - On failure, a negative value.
*/
* - On success, zero.
* - On failure, a negative value.
*/
-int memif_connect_master(struct rte_eth_dev *dev);
+int memif_connect_server(struct rte_eth_dev *dev);
+
/**
* If device is properly configured, send connection request.
/**
* If device is properly configured, send connection request.
@@
-70,7
+72,7
@@
int memif_connect_master(struct rte_eth_dev *dev);
* - On success, zero.
* - On failure, a negative value.
*/
* - On success, zero.
* - On failure, a negative value.
*/
-int memif_connect_
slave
(struct rte_eth_dev *dev);
+int memif_connect_
client
(struct rte_eth_dev *dev);
struct memif_socket_dev_list_elt {
TAILQ_ENTRY(memif_socket_dev_list_elt) next;
struct memif_socket_dev_list_elt {
TAILQ_ENTRY(memif_socket_dev_list_elt) next;
@@
-79,9
+81,12
@@
struct memif_socket_dev_list_elt {
};
#define MEMIF_SOCKET_HASH_NAME "memif-sh"
};
#define MEMIF_SOCKET_HASH_NAME "memif-sh"
+#define MEMIF_SOCKET_UN_SIZE \
+ (sizeof(struct sockaddr_un) - offsetof(struct sockaddr_un, sun_path))
+
struct memif_socket {
struct rte_intr_handle intr_handle; /**< interrupt handle */
struct memif_socket {
struct rte_intr_handle intr_handle; /**< interrupt handle */
- char filename[
256];
/**< socket filename */
+ char filename[
MEMIF_SOCKET_UN_SIZE];
/**< socket filename */
TAILQ_HEAD(, memif_socket_dev_list_elt) dev_queue;
/**< Queue of devices using this socket */
TAILQ_HEAD(, memif_socket_dev_list_elt) dev_queue;
/**< Queue of devices using this socket */