X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=drivers%2Fnet%2Ffailsafe%2Ffailsafe_private.h;h=cd39d103c63a8e1fbce8610ae5430aba4068a2ee;hb=f17c5d7abd91a4c70a8ca82f885e2f930980d22d;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..cd39d103c6 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 */ @@ -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_ */