summaryrefslogtreecommitdiff
path: root/dev.h
blob: 2d5f0569668f37e2902667fe7e5f3ceb0e6471a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#ifndef DEV_H
#define DEV_H

#include <sys/socket.h>
#include "built_in.h"

extern size_t device_mtu(const char *ifname);
extern int device_address(const char *ifname, int af, struct sockaddr_storage *ss);
extern int device_ifindex(const char *ifname);
extern int device_type(const char *ifname);
extern short device_get_flags(const char *ifname);
extern void device_set_flags(const char *ifname, const short flags);
extern int device_up_and_running(const char *ifname);
extern u32 device_bitrate(const char *ifname);
extern short device_enter_promiscuous_mode(const char *ifname);
extern void device_leave_promiscuous_mode(const char *ifname, short oldflags);

#endif /* DEV_H */
bbbdfa963f145b6'>f01a2161577d31b14581e0db3bbbdfa963f145b6 (patch) tree9bc73d9d199e4ca8f3f3865a4ba771a6deebd9c8 parent4cb584e0ee7df70fd0376aee60cf701855ea8c81 (diff)
nfp: add support for resources
Resource table is an array placed in a well defined location in device's memory which describes device resources and contains locks which have to be acquired to use them. Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat