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

Skip to content
Commit e26b203e authored by Simon Graham's avatar Simon Graham Committed by David S. Miller
Browse files

xen/netback: Calculate the number of SKB slots required correctly



When calculating the number of slots required for a packet header, the code
was reserving too many slots if the header crossed a page boundary. Since
netbk_gop_skb copies the header to the start of the page, the count of
slots required for the header should be based solely on the header size.

This problem is easy to reproduce if a VIF is bridged to a USB 3G modem
device as the skb->data value always starts near the end of the first page.

Signed-off-by: default avatarSimon Graham <simon.graham@citrix.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent b4bd8ad9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment