5 #ifndef _NETDEV_FUNCS_H_
6 #define _NETDEV_FUNCS_H_
30 } __attribute__((aligned(8)));
33 #define ETH_LINK_HALF_DUPLEX 0
34 #define ETH_LINK_FULL_DUPLEX 1
35 #define ETH_LINK_DOWN 0
37 #define ETH_LINK_FIXED 0
38 #define ETH_LINK_AUTONEG 1
43 #define CNE_ETH_SPEED_NUM_NONE 0
44 #define CNE_ETH_SPEED_NUM_10M 10
45 #define CNE_ETH_SPEED_NUM_100M 100
46 #define CNE_ETH_SPEED_NUM_1G 1000
47 #define CNE_ETH_SPEED_NUM_2_5G 2500
48 #define CNE_ETH_SPEED_NUM_5G 5000
49 #define CNE_ETH_SPEED_NUM_10G 10000
50 #define CNE_ETH_SPEED_NUM_20G 20000
51 #define CNE_ETH_SPEED_NUM_25G 25000
52 #define CNE_ETH_SPEED_NUM_40G 40000
53 #define CNE_ETH_SPEED_NUM_50G 50000
54 #define CNE_ETH_SPEED_NUM_56G 56000
55 #define CNE_ETH_SPEED_NUM_100G 100000
56 #define CNE_ETH_SPEED_NUM_200G 200000
57 #define CNE_ETH_SPEED_NUM_400G 400000
58 #define CNE_ETH_SPEED_NUM_UNKNOWN UINT32_MAX
64 uint32_t tx_checksum_offload;
65 uint32_t rx_checksum_offload;
CNDP_API int netdev_promiscuous_enable(const char *if_name)
CNDP_API int netdev_promiscuous_disable(const char *if_name)
CNDP_API int netdev_promiscuous_get(const char *if_name)
CNDP_API int netdev_get_ring_params(const char *ifname, uint32_t *rx_nb_desc, uint32_t *tx_nb_desc)
CNDP_API int netdev_set_link_down(const char *if_name)
CNDP_API int netdev_get_link(const char *ifname, struct netdev_link *link)
CNDP_API int netdev_set_link_up(const char *if_name)
CNDP_API int netdev_get_mac_addr(const char *ifname, struct ether_addr *eth_addr)
CNDP_API int netdev_get_channels(const char *ifname)
CNDP_API int netdev_change_flags(const char *if_name, uint32_t flags, uint32_t mask)
CNDP_API int netdev_get_offloads(const char *ifname, struct offloads *off)