Blog
Community
Development
Documentation
CNDP
22.08.0
Main Page
Related Pages
Data Structures
Data Structures
Data Fields
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
Functions
Variables
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
Files
File List
Globals
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
x
Functions
_
c
d
e
f
g
h
i
j
k
l
m
n
p
s
t
u
v
x
Variables
Typedefs
a
b
c
h
i
j
l
m
o
p
s
t
u
v
Enumerations
Enumerator
_
a
c
d
e
j
m
p
r
s
t
u
Macros
_
a
c
d
e
h
i
j
k
l
m
o
p
r
t
u
v
x
Examples
•
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Pages
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
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
22
struct
cnet;
23
24
#ifdef __cplusplus
25
extern
"C"
{
26
#endif
27
28
struct
netif;
29
30
struct
drv_entry {
31
struct
netif *netif;
32
struct
pktdev_info
info;
33
} __cne_cache_aligned;
34
43
int
cnet_drv_create
(
struct
cnet *cnet);
44
53
int
cnet_drv_destroy
(
struct
cnet *cnet);
54
55
#ifdef __cplusplus
56
}
57
#endif
58
59
#endif
/* __CNET_DRV_H */
cne_atomic.h
cne_common.h
cnet_const.h
cnet_drv_create
int cnet_drv_create(struct cnet *cnet)
Create the driver structure and initialize it.
cnet_drv_destroy
int cnet_drv_destroy(struct cnet *cnet)
Destroy the driver structure and initialize it.
pktdev.h
pktdev_info
Definition:
pktdev.h:79
lib
cnet
drv
cnet_drv.h
Generated by
1.9.1