mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-01-19 23:06:11 +07:00
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>
This commit is contained in:
parent
e6ec26935a
commit
6f7062457f
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user