CNDP 22.08.0
Loading...
Searching...
No Matches
cnet_drv.h
Go to the documentation of this file.
1/* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright (c) 2016-2022 Intel Corporation
3 */
4
5#ifndef __CNET_DRV_H
6#define __CNET_DRV_H
7
12
13#include <pktdev.h> // for pktdev_info
14#include <net/ethernet.h> // for ether_addr
15#include <cne_atomic.h> // for atomic_uint_least16_t
16#include <stdint.h> // for uint16_t, uint32_t
17#include <net/if.h>
18
19#include "cne_common.h" // for __cne_cache_aligned
20#include "cnet_const.h" // for iofunc_t
21
22struct cnet;
23
24#ifdef __cplusplus
25extern "C" {
26#endif
27
28struct netif;
29
30struct drv_entry {
31 struct netif *netif;
32 struct pktdev_info info;
34
43int cnet_drv_create(struct cnet *cnet);
44
53int cnet_drv_destroy(struct cnet *cnet);
54
55#ifdef __cplusplus
56}
57#endif
58
59#endif /* __CNET_DRV_H */
#define __cne_cache_aligned
Definition cne_common.h:379
int cnet_drv_create(struct cnet *cnet)
Create the driver structure and initialize it.
int cnet_drv_destroy(struct cnet *cnet)
Destroy the driver structure and initialize it.