diff options
author | Ferruh Yigit <ferruh.yigit@intel.com> | 2016-01-28 14:31:23 +0000 |
---|---|---|
committer | Thomas Monjalon <thomas.monjalon@6wind.com> | 2016-01-28 18:40:46 +0100 |
commit | dd34ff1f0e03b2c5e4a97e9fbcba5c8238aac573 (patch) | |
tree | 59437364d63846281624e720dbe4394b467b0d79 /lib/librte_kni/rte_kni.h | |
parent | e61512e4066740847ced4a85ee9c3334b511468f (diff) | |
download | dpdk-dd34ff1f0e03b2c5e4a97e9fbcba5c8238aac573.zip dpdk-dd34ff1f0e03b2c5e4a97e9fbcba5c8238aac573.tar.gz dpdk-dd34ff1f0e03b2c5e4a97e9fbcba5c8238aac573.tar.xz |
lib: remove keyword extern for functions
Remove "extern" keywords in header files,
the ones for function prototypes
Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com>
Diffstat (limited to 'lib/librte_kni/rte_kni.h')
-rw-r--r-- | lib/librte_kni/rte_kni.h | 30 |
1 files changed, 14 insertions, 16 deletions
diff --git a/lib/librte_kni/rte_kni.h b/lib/librte_kni/rte_kni.h index ef9faa9..9899a17 100644 --- a/lib/librte_kni/rte_kni.h +++ b/lib/librte_kni/rte_kni.h @@ -101,7 +101,7 @@ struct rte_kni_conf { * @param max_kni_ifaces * The maximum number of KNI interfaces that can coexist concurrently */ -extern void rte_kni_init(unsigned int max_kni_ifaces); +void rte_kni_init(unsigned int max_kni_ifaces); /** @@ -124,9 +124,8 @@ extern void rte_kni_init(unsigned int max_kni_ifaces); * - The pointer to the context of a KNI interface. * - NULL indicate error. */ -extern struct rte_kni *rte_kni_alloc(struct rte_mempool *pktmbuf_pool, - const struct rte_kni_conf *conf, - struct rte_kni_ops *ops); +struct rte_kni *rte_kni_alloc(struct rte_mempool *pktmbuf_pool, + const struct rte_kni_conf *conf, struct rte_kni_ops *ops); /** * Release KNI interface according to the context. It will also release the @@ -142,7 +141,7 @@ extern struct rte_kni *rte_kni_alloc(struct rte_mempool *pktmbuf_pool, * - 0 indicates success. * - negative value indicates failure. */ -extern int rte_kni_release(struct rte_kni *kni); +int rte_kni_release(struct rte_kni *kni); /** * It is used to handle the request mbufs sent from kernel space. @@ -156,7 +155,7 @@ extern int rte_kni_release(struct rte_kni *kni); * - 0 * - negative value indicates failure. */ -extern int rte_kni_handle_request(struct rte_kni *kni); +int rte_kni_handle_request(struct rte_kni *kni); /** * Retrieve a burst of packets from a KNI interface. The retrieved packets are @@ -174,8 +173,8 @@ extern int rte_kni_handle_request(struct rte_kni *kni); * @return * The actual number of packets retrieved. */ -extern unsigned rte_kni_rx_burst(struct rte_kni *kni, - struct rte_mbuf **mbufs, unsigned num); +unsigned rte_kni_rx_burst(struct rte_kni *kni, struct rte_mbuf **mbufs, + unsigned num); /** * Send a burst of packets to a KNI interface. The packets to be sent out are @@ -193,8 +192,8 @@ extern unsigned rte_kni_rx_burst(struct rte_kni *kni, * @return * The actual number of packets sent. */ -extern unsigned rte_kni_tx_burst(struct rte_kni *kni, - struct rte_mbuf **mbufs, unsigned num); +unsigned rte_kni_tx_burst(struct rte_kni *kni, struct rte_mbuf **mbufs, + unsigned num); /** * Get the KNI context of its name. @@ -206,7 +205,7 @@ extern unsigned rte_kni_tx_burst(struct rte_kni *kni, * On success: Pointer to KNI interface. * On failure: NULL. */ -extern struct rte_kni *rte_kni_get(const char *name); +struct rte_kni *rte_kni_get(const char *name); /** * Get the name given to a KNI device @@ -216,7 +215,7 @@ extern struct rte_kni *rte_kni_get(const char *name); * @return * The pointer to the KNI name */ -extern const char *rte_kni_get_name(const struct rte_kni *kni); +const char *rte_kni_get_name(const struct rte_kni *kni); /** * Register KNI request handling for a specified port,and it can @@ -231,8 +230,7 @@ extern const char *rte_kni_get_name(const struct rte_kni *kni); * On success: 0 * On failure: -1 */ -extern int rte_kni_register_handlers(struct rte_kni *kni, - struct rte_kni_ops *ops); +int rte_kni_register_handlers(struct rte_kni *kni, struct rte_kni_ops *ops); /** * Unregister KNI request handling for a specified port. @@ -244,12 +242,12 @@ extern int rte_kni_register_handlers(struct rte_kni *kni, * On success: 0 * On failure: -1 */ -extern int rte_kni_unregister_handlers(struct rte_kni *kni); +int rte_kni_unregister_handlers(struct rte_kni *kni); /** * Close KNI device. */ -extern void rte_kni_close(void); +void rte_kni_close(void); #ifdef __cplusplus } |