提交 6f706245 编写于 作者: J Joe Perches 提交者: David S. Miller

netpoll: Neaten MAX_SKB_SIZE macro

Add the types in the packet layout order.
Signed-off-by: NJoe Perches <joe@perches.com>
Reviewed-by: NWANG Cong <xiyou.wangcong@gmail.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 e6ec2693
...@@ -47,9 +47,11 @@ static atomic_t trapped; ...@@ -47,9 +47,11 @@ static atomic_t trapped;
#define NETPOLL_RX_ENABLED 1 #define NETPOLL_RX_ENABLED 1
#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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册