Commit 6f706245 authored by Joe Perches's avatar Joe Perches Committed by David S. Miller

netpoll: Neaten MAX_SKB_SIZE macro

Add the types in the packet layout order.
Signed-off-by: default avatarJoe Perches <joe@perches.com>
Reviewed-by: default avatarWANG Cong <xiyou.wangcong@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent e6ec2693
...@@ -48,8 +48,10 @@ static atomic_t trapped; ...@@ -48,8 +48,10 @@ static atomic_t trapped;
#define NETPOLL_RX_DROP 2 #define NETPOLL_RX_DROP 2
#define MAX_SKB_SIZE \ #define MAX_SKB_SIZE \
(MAX_UDP_CHUNK + sizeof(struct udphdr) + \ (sizeof(struct ethhdr) + \
sizeof(struct iphdr) + sizeof(struct ethhdr)) sizeof(struct iphdr) + \
sizeof(struct udphdr) + \
MAX_UDP_CHUNK)
static void zap_completion_queue(void); static void zap_completion_queue(void);
static void arp_reply(struct sk_buff *skb); static void arp_reply(struct sk_buff *skb);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment