http://git.etherboot.org
/
gpxe.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
We shouldn't need to allocate a TX packet buffer when calling newdata();
[gpxe.git]
/
src
/
net
/
udp.c
diff --git
a/src/net/udp.c
b/src/net/udp.c
index
77fb3b9
..
4f133ae
100644
(file)
--- a/
src/net/udp.c
+++ b/
src/net/udp.c
@@
-258,10
+258,6
@@
void udp_rx ( struct pk_buff *pkb, struct in_addr *src_net_addr __unused,
/** Strip off the UDP header */
pkb_pull ( pkb, sizeof ( *udphdr ) );
/** Strip off the UDP header */
pkb_pull ( pkb, sizeof ( *udphdr ) );
- /** Allocate max possible buffer space to the tx buffer */
- conn->tx_pkb = alloc_pkb ( UDP_MAX_TXPKB );
- pkb_reserve ( conn->tx_pkb, UDP_MAX_HLEN );
-
/** Call the application's callback */
conn->udp_op->newdata ( conn, pkb->data, ulen - sizeof ( *udphdr ) );
}
/** Call the application's callback */
conn->udp_op->newdata ( conn, pkb->data, ulen - sizeof ( *udphdr ) );
}