#include <linux/moduleparam.h>
#include <linux/netdevice.h>
#include <linux/etherdevice.h>
#include <linux/string.h>
#include <linux/if_arp.h>
#include <linux/inetdevice.h>
#include <linux/inet.h>
#include <linux/interrupt.h>
#include <linux/netpoll.h>
#include <linux/sched.h>
#include <linux/delay.h>
#include <linux/rcupdate.h>
#include <linux/workqueue.h>
#include <linux/slab.h>
#include <linux/export.h>
#include <linux/if_vlan.h>
#include <net/tcp.h>
#include <net/udp.h>
#include <asm/unaligned.h>
#include <trace/events/napi.h>
Go to the source code of this file.
|
#define | pr_fmt(fmt) KBUILD_MODNAME ": " fmt |
|
#define | MAX_UDP_CHUNK 1460 |
|
#define | MAX_SKBS 32 |
|
#define | USEC_PER_POLL 50 |
|
#define | NETPOLL_RX_ENABLED 1 |
|
#define | NETPOLL_RX_DROP 2 |
|
#define | MAX_SKB_SIZE |
|
#define | np_info(np, fmt,...) pr_info("%s: " fmt, np->name, ##__VA_ARGS__) |
|
#define | np_err(np, fmt,...) pr_err("%s: " fmt, np->name, ##__VA_ARGS__) |
|
#define | np_notice(np, fmt,...) pr_notice("%s: " fmt, np->name, ##__VA_ARGS__) |
|
|
| module_param (carrier_timeout, uint, 0644) |
|
void | netpoll_send_skb_on_dev (struct netpoll *np, struct sk_buff *skb, struct net_device *dev) |
|
| EXPORT_SYMBOL (netpoll_send_skb_on_dev) |
|
void | netpoll_send_udp (struct netpoll *np, const char *msg, int len) |
|
| EXPORT_SYMBOL (netpoll_send_udp) |
|
int | __netpoll_rx (struct sk_buff *skb, struct netpoll_info *npinfo) |
|
void | netpoll_print_options (struct netpoll *np) |
|
| EXPORT_SYMBOL (netpoll_print_options) |
|
int | netpoll_parse_options (struct netpoll *np, char *opt) |
|
| EXPORT_SYMBOL (netpoll_parse_options) |
|
int | __netpoll_setup (struct netpoll *np, struct net_device *ndev, gfp_t gfp) |
|
| EXPORT_SYMBOL_GPL (__netpoll_setup) |
|
int | netpoll_setup (struct netpoll *np) |
|
| EXPORT_SYMBOL (netpoll_setup) |
|
| core_initcall (netpoll_init) |
|
void | __netpoll_cleanup (struct netpoll *np) |
|
| EXPORT_SYMBOL_GPL (__netpoll_cleanup) |
|
void | __netpoll_free_rcu (struct netpoll *np) |
|
| EXPORT_SYMBOL_GPL (__netpoll_free_rcu) |
|
void | netpoll_cleanup (struct netpoll *np) |
|
| EXPORT_SYMBOL (netpoll_cleanup) |
|
int | netpoll_trap (void) |
|
| EXPORT_SYMBOL (netpoll_trap) |
|
void | netpoll_set_trap (int trap) |
|
| EXPORT_SYMBOL (netpoll_set_trap) |
|
#define MAX_UDP_CHUNK 1460 |
#define NETPOLL_RX_DROP 2 |
#define NETPOLL_RX_ENABLED 1 |
#define np_err |
( |
|
np, |
|
|
|
fmt, |
|
|
|
... |
|
) |
| pr_err("%s: " fmt, np->name, ##__VA_ARGS__) |
#define np_info |
( |
|
np, |
|
|
|
fmt, |
|
|
|
... |
|
) |
| pr_info("%s: " fmt, np->name, ##__VA_ARGS__) |
#define np_notice |
( |
|
np, |
|
|
|
fmt, |
|
|
|
... |
|
) |
| pr_notice("%s: " fmt, np->name, ##__VA_ARGS__) |
#define pr_fmt |
( |
|
fmt | ) |
KBUILD_MODNAME ": " fmt |
core_initcall |
( |
netpoll_init |
| ) |
|
module_param |
( |
carrier_timeout |
, |
|
|
uint |
, |
|
|
0644 |
|
|
) |
| |