netpoll: Neaten MAX_SKB_SIZE macro
authorJoe Perches <joe@perches.com>
Sun, 29 Jan 2012 15:50:44 +0000 (15:50 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 1 Feb 2012 19:20:27 +0000 (14:20 -0500)
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>
net/core/netpoll.c

index b5232743d5dc8d3665fe6de5d0d1312026a891a7..4ce473ea5dc0cd3391075e326ef54632c8fbbfea 100644 (file)
@@ -47,9 +47,11 @@ static atomic_t trapped;
 #define NETPOLL_RX_ENABLED  1
 #define NETPOLL_RX_DROP     2
 
-#define MAX_SKB_SIZE \
-               (MAX_UDP_CHUNK + sizeof(struct udphdr) + \
-                               sizeof(struct iphdr) + sizeof(struct ethhdr))
+#define MAX_SKB_SIZE                                                   \
+       (sizeof(struct ethhdr) +                                        \
+        sizeof(struct iphdr) +                                         \
+        sizeof(struct udphdr) +                                        \
+        MAX_UDP_CHUNK)
 
 static void zap_completion_queue(void);
 static void arp_reply(struct sk_buff *skb);