Module: xenomai-3 Branch: wip/rtnet-fixes Commit: aeefb9c08158b44268a8f427dff65ad817599c07 URL: http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=aeefb9c08158b44268a8f427dff65ad817599c07
Author: Philippe Gerum <r...@xenomai.org> Date: Wed Dec 6 13:40:19 2017 +0100 net: convert to rtdm_get_iov_flatlen() --- kernel/drivers/net/stack/ipv4/udp/udp.c | 4 ++-- kernel/drivers/net/stack/packet/af_packet.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/kernel/drivers/net/stack/ipv4/udp/udp.c b/kernel/drivers/net/stack/ipv4/udp/udp.c index c460e40..a3fd496 100644 --- a/kernel/drivers/net/stack/ipv4/udp/udp.c +++ b/kernel/drivers/net/stack/ipv4/udp/udp.c @@ -454,7 +454,7 @@ ssize_t rt_udp_recvmsg(struct rtdm_fd *fd, struct user_msghdr *msg, int msg_flag __rtskb_pull(skb, sizeof(struct udphdr)); flags = msg->msg_flags & ~MSG_TRUNC; - len = rt_iovec_len(iov, msg->msg_iovlen); + len = rtdm_get_iov_flatlen(iov, msg->msg_iovlen); /* iterate over all IP fragments */ do { @@ -605,7 +605,7 @@ ssize_t rt_udp_sendmsg(struct rtdm_fd *fd, const struct user_msghdr *msg, int ms if (err) return err; - len = rt_iovec_len(iov, msg->msg_iovlen); + len = rtdm_get_iov_flatlen(iov, msg->msg_iovlen); if ((len < 0) || (len > 0xFFFF-sizeof(struct iphdr)-sizeof(struct udphdr))) { err = -EMSGSIZE; goto out; diff --git a/kernel/drivers/net/stack/packet/af_packet.c b/kernel/drivers/net/stack/packet/af_packet.c index 046f380..4fbf523 100644 --- a/kernel/drivers/net/stack/packet/af_packet.c +++ b/kernel/drivers/net/stack/packet/af_packet.c @@ -364,7 +364,7 @@ rt_packet_recvmsg(struct rtdm_fd *fd, struct user_msghdr *msg, int msg_flags) /* The data must not be longer than the available buffer size */ copy_len = rtskb->len; - len = rt_iovec_len(iov, msg->msg_iovlen); + len = rtdm_get_iov_flatlen(iov, msg->msg_iovlen); if (len < 0) { copy_len = len; goto out; @@ -467,7 +467,7 @@ rt_packet_sendmsg(struct rtdm_fd *fd, const struct user_msghdr *msg, int msg_fla goto abort; } - len = rt_iovec_len(iov, msg->msg_iovlen); + len = rtdm_get_iov_flatlen(iov, msg->msg_iovlen); rtskb = alloc_rtskb(rtdev->hard_header_len + len, &sock->skb_pool); if (rtskb == NULL) { ret = -ENOBUFS; _______________________________________________ Xenomai-git mailing list Xenomai-git@xenomai.org https://xenomai.org/mailman/listinfo/xenomai-git