projects
/
swifty.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Set the local_df flag to 1, in order to perform fragmentation. Also print the error...
[swifty.git]
/
src
/
kernel
/
swift.c
diff --git
a/src/kernel/swift.c
b/src/kernel/swift.c
index
1df2d58
..
ac2ba87
100644
(file)
--- a/
src/kernel/swift.c
+++ b/
src/kernel/swift.c
@@
-330,6
+330,7
@@
static int swift_sendmsg(struct kiocb *iocb, struct socket *sock, struct msghdr
#endif
}
#endif
}
+ skb->local_df = 1;
err = ip_queue_xmit(skb);
if (likely(!err))
log_debug("Sent %u bytes on wire\n", len);
err = ip_queue_xmit(skb);
if (likely(!err))
log_debug("Sent %u bytes on wire\n", len);
@@
-449,7
+450,7
@@
static int swift_rcv(struct sk_buff *skb)
err = ip_queue_rcv_skb((struct sock *) &ssk->sock, skb);
if (unlikely(err)) {
err = ip_queue_rcv_skb((struct sock *) &ssk->sock, skb);
if (unlikely(err)) {
- log_error("ip_queu
_rcv_skb\n"
);
+ log_error("ip_queu
e_rcv_skb failed with %d\n", err
);
consume_skb(skb);
}
return NET_RX_SUCCESS;
consume_skb(skb);
}
return NET_RX_SUCCESS;