Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -48,8 +48,10 @@ static atomic_t trapped;
#define NETPOLL_RX_DROP     2

#define MAX_SKB_SIZE							\
		(MAX_UDP_CHUNK + sizeof(struct udphdr) + \
				sizeof(struct iphdr) + sizeof(struct ethhdr))
	(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);