X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;ds=sidebyside;f=drivers%2Fnet%2Ffailsafe%2Ffailsafe_private.h;h=a80f5e2cafc658155551a5a794ef3c83bf466b7c;hb=f9f0b5121f62d8701165d20bfdd14638bc72654d;hp=e376b35b33674d0f5661eadde5b3b095f8b677d5;hpb=4586be3743d4c49987973e2025b34abc1e85a377;p=dpdk.git diff --git a/drivers/net/failsafe/failsafe_private.h b/drivers/net/failsafe/failsafe_private.h index e376b35b33..a80f5e2caf 100644 --- a/drivers/net/failsafe/failsafe_private.h +++ b/drivers/net/failsafe/failsafe_private.h @@ -3,8 +3,8 @@ * Copyright 2017 Mellanox Technologies, Ltd */ -#ifndef _RTE_ETH_FAILSAFE_PRIVATE_H_ -#define _RTE_ETH_FAILSAFE_PRIVATE_H_ +#ifndef _ETH_FAILSAFE_PRIVATE_H_ +#define _ETH_FAILSAFE_PRIVATE_H_ #include #include @@ -12,7 +12,7 @@ #include #include -#include +#include #include #include #include @@ -58,6 +58,14 @@ struct rx_proxy { enum rxp_service_state sstate; }; +#define FS_RX_PROXY_INIT (struct rx_proxy){ \ + .efd = -1, \ + .evec = NULL, \ + .sid = 0, \ + .scid = 0, \ + .sstate = SS_NO_SERVICE, \ +} + struct rxq { struct fs_priv *priv; uint16_t qid; @@ -141,7 +149,7 @@ struct fs_priv { /* * Set of sub_devices. * subs[0] is the preferred device - * any other is just another slave + * any other is just another sub device */ struct sub_device *subs; /* shared between processes */ uint8_t subs_head; /* if head == tail, no subs */ @@ -158,7 +166,7 @@ struct fs_priv { struct rte_ether_addr *mcast_addrs; /* current capabilities */ struct rte_eth_dev_owner my_owner; /* Unique owner. */ - struct rte_intr_handle intr_handle; /* Port interrupt handle. */ + struct rte_intr_handle *intr_handle; /* Port interrupt handle. */ /* * Fail-safe state machine. * This level will be tracking state of the EAL and eth @@ -228,6 +236,7 @@ int failsafe_eal_uninit(struct rte_eth_dev *dev); int failsafe_eth_dev_state_sync(struct rte_eth_dev *dev); void failsafe_eth_dev_unregister_callbacks(struct sub_device *sdev); +int failsafe_eth_dev_close(struct rte_eth_dev *dev); void failsafe_dev_remove(struct rte_eth_dev *dev); void failsafe_stats_increment(struct rte_eth_stats *to, struct rte_eth_stats *from); @@ -493,4 +502,4 @@ fs_err(struct sub_device *sdev, int err) return rte_errno = 0; return err; } -#endif /* _RTE_ETH_FAILSAFE_PRIVATE_H_ */ +#endif /* _ETH_FAILSAFE_PRIVATE_H_ */