Skip to content
Commit 6ecd09dd authored by Eric Dumazet's avatar Eric Dumazet Committed by David S. Miller
Browse files

net: ftgmac100/ftmac100: dont pull too much data



Drivers should pull only ethernet header from page frag
to skb->head.

Pulling 64 bytes is too much for TCP (without options) on IPv4.

However, it makes sense to pull all the frame if it fits the
128 bytes bloc allocated for skb->head, to free one page per
small incoming frame.

Signed-off-by: default avatarEric Dumazet <edumazet@google.com>
Cc: Po-Yu Chuang <ratbert@faraday-tech.com>
Acked-by: default avatarYan-Pai Chen <yanpai.chen@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent db8dacf9
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