aboutsummaryrefslogtreecommitdiffstats
path: root/net/core/netpoll.c
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2012-01-29 10:50:44 -0500
committerDavid S. Miller <davem@davemloft.net>2012-02-01 14:20:27 -0500
commit6f7062457fc98e1fa22f74d8f386ed241213dec6 (patch)
tree2c62cd1c28fb0a3e48ada33dfcba4176d5f1e89b /net/core/netpoll.c
parente6ec26935aec629f03e76c67f3bbda68dd0155e2 (diff)
netpoll: Neaten MAX_SKB_SIZE macro
Add the types in the packet layout order. Signed-off-by: Joe Perches <joe@perches.com> Reviewed-by: WANG Cong <xiyou.wangcong@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core/netpoll.c')
-rw-r--r--net/core/netpoll.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/net/core/netpoll.c b/net/core/netpoll.c
index b5232743d5dc..4ce473ea5dc0 100644
--- a/net/core/netpoll.c
+++ b/net/core/netpoll.c
@@ -47,9 +47,11 @@ static atomic_t trapped;
47#define NETPOLL_RX_ENABLED 1 47#define NETPOLL_RX_ENABLED 1
48#define NETPOLL_RX_DROP 2 48#define NETPOLL_RX_DROP 2
49 49
50#define MAX_SKB_SIZE \ 50#define MAX_SKB_SIZE \
51 (MAX_UDP_CHUNK + sizeof(struct udphdr) + \ 51 (sizeof(struct ethhdr) + \
52 sizeof(struct iphdr) + sizeof(struct ethhdr)) 52 sizeof(struct iphdr) + \
53 sizeof(struct udphdr) + \
54 MAX_UDP_CHUNK)
53 55
54static void zap_completion_queue(void); 56static void zap_completion_queue(void);
55static void arp_reply(struct sk_buff *skb); 57static void arp_reply(struct sk_buff *skb);