mirror of
https://github.com/ipxe/ipxe
synced 2025-12-13 23:41:45 +03:00
Rename pkb_available() to pkb_tailroom() for consistency with Linux's
skb_tailroom(). Add pkb_headroom().
This commit is contained in:
@@ -437,10 +437,10 @@ static void undinet_poll ( struct net_device *netdev ) {
|
||||
/* Fragment will be dropped */
|
||||
goto done;
|
||||
}
|
||||
if ( frag_len > pkb_available ( pkb ) ) {
|
||||
if ( frag_len > pkb_tailroom ( pkb ) ) {
|
||||
DBGC ( undinic, "UNDINIC %p fragment too "
|
||||
"large\n", undinic );
|
||||
frag_len = pkb_available ( pkb );
|
||||
frag_len = pkb_tailroom ( pkb );
|
||||
}
|
||||
copy_from_real ( pkb_put ( pkb, frag_len ),
|
||||
undi_isr.Frame.segment,
|
||||
|
||||
Reference in New Issue
Block a user