projects
/
cascardo
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
sctp: allow sctp_transmit_packet and others to use gfp
[cascardo/linux.git]
/
net
/
sctp
/
output.c
diff --git
a/net/sctp/output.c
b/net/sctp/output.c
index
9d610ed
..
736c004
100644
(file)
--- a/
net/sctp/output.c
+++ b/
net/sctp/output.c
@@
-153,7
+153,7
@@
void sctp_packet_free(struct sctp_packet *packet)
*/
sctp_xmit_t sctp_packet_transmit_chunk(struct sctp_packet *packet,
struct sctp_chunk *chunk,
*/
sctp_xmit_t sctp_packet_transmit_chunk(struct sctp_packet *packet,
struct sctp_chunk *chunk,
- int one_packet)
+ int one_packet
, gfp_t gfp
)
{
sctp_xmit_t retval;
int error = 0;
{
sctp_xmit_t retval;
int error = 0;
@@
-163,7
+163,7
@@
sctp_xmit_t sctp_packet_transmit_chunk(struct sctp_packet *packet,
switch ((retval = (sctp_packet_append_chunk(packet, chunk)))) {
case SCTP_XMIT_PMTU_FULL:
if (!packet->has_cookie_echo) {
switch ((retval = (sctp_packet_append_chunk(packet, chunk)))) {
case SCTP_XMIT_PMTU_FULL:
if (!packet->has_cookie_echo) {
- error = sctp_packet_transmit(packet);
+ error = sctp_packet_transmit(packet
, gfp
);
if (error < 0)
chunk->skb->sk->sk_err = -error;
if (error < 0)
chunk->skb->sk->sk_err = -error;
@@
-376,7
+376,7
@@
static void sctp_packet_set_owner_w(struct sk_buff *skb, struct sock *sk)
*
* The return value is a normal kernel error return value.
*/
*
* The return value is a normal kernel error return value.
*/
-int sctp_packet_transmit(struct sctp_packet *packet)
+int sctp_packet_transmit(struct sctp_packet *packet
, gfp_t gfp
)
{
struct sctp_transport *tp = packet->transport;
struct sctp_association *asoc = tp->asoc;
{
struct sctp_transport *tp = packet->transport;
struct sctp_association *asoc = tp->asoc;