Displaying 20 results from an estimated 134 matches for "msg_controllen".
2013 Sep 04
2
[PATCH V3 4/6] vhost_net: determine whether or not to use zerocopy at one time
...upend_idx].id = head;
> - if (!vhost_net_tx_select_zcopy(net) ||
> - len < VHOST_GOODCOPY_LEN) {
> - /* copy don't need to wait for DMA done */
> - vq->heads[nvq->upend_idx].len =
> - VHOST_DMA_DONE_LEN;
> - msg.msg_control = NULL;
> - msg.msg_controllen = 0;
> - ubufs = NULL;
> - } else {
> - struct ubuf_info *ubuf;
> - ubuf = nvq->ubuf_info + nvq->upend_idx;
> -
> - vq->heads[nvq->upend_idx].len =
> - VHOST_DMA_IN_PROGRESS;
> - ubuf->callback = vhost_zerocopy_callback;
> - ubuf->...
2013 Sep 04
2
[PATCH V3 4/6] vhost_net: determine whether or not to use zerocopy at one time
...upend_idx].id = head;
> - if (!vhost_net_tx_select_zcopy(net) ||
> - len < VHOST_GOODCOPY_LEN) {
> - /* copy don't need to wait for DMA done */
> - vq->heads[nvq->upend_idx].len =
> - VHOST_DMA_DONE_LEN;
> - msg.msg_control = NULL;
> - msg.msg_controllen = 0;
> - ubufs = NULL;
> - } else {
> - struct ubuf_info *ubuf;
> - ubuf = nvq->ubuf_info + nvq->upend_idx;
> -
> - vq->heads[nvq->upend_idx].len =
> - VHOST_DMA_IN_PROGRESS;
> - ubuf->callback = vhost_zerocopy_callback;
> - ubuf->...
2002 Jan 21
1
help for tftp-hpa with libc5
...#ifdef IP_PKTINFO
char control[CMSG_SPACE(sizeof(struct in_addr)) +
CMSG_SPACE(sizeof(struct in_pktinfo))];
#else
char control[CMSG_SPACE(sizeof(struct in_addr))];
#endif
} control_un;
int on = 1;
#ifdef IP_PKTINFO
struct in_pktinfo pktinfo;
#endif
=== 105
if ( msg.msg_controllen < sizeof(struct cmsghdr) ||
=== 109
for ( cmptr = CMSG_FIRSTHDR(&msg) ; cmptr != NULL ;
I added the following to recvfrom.h (copied from glibc headers)
===
#define MSG_CTRUNC 0x08
#define CMSG_NXTHDR(mhdr, cmsg) __cmsg_nxthdr (mhdr, cmsg)
#define CMSG_FIRSTHDR(mhdr) \
((size_t)...
2006 May 23
11
how to debug RTNETLINK invalid argument?
Hey,
I am getting an invalid argument trying to insert a qdisc:
[root@emu-5 iproute2]# tc qdisc add dev eth0 root xcp capacity 50Mbit
limit 500
RTNETLINK answers: Invalid argument
I''m not sure whats wrong here, because i can successfully insert this
qdisc on other computers of mine.
How can i debug this?
Thanks!
George
2010 Apr 26
1
valgrind ipconfig work
...4,16 +114,18 @@ static char *ntoa(uint32_t addr)
int packet_send(struct netdev *dev, struct iovec *iov, int iov_len)
{
struct sockaddr_ll sll;
- struct msghdr msg = {
- .msg_name = &sll,
- .msg_namelen = sizeof(sll),
- .msg_iov = iov,
- .msg_iovlen = iov_len,
- .msg_control = NULL,
- .msg_controllen = 0,
- .msg_flags = 0
- };
int i, len = 0;
+ struct msghdr msg;
+
+ memset(&sll, 0, sizeof(sll));
+
+ msg.msg_name = &sll;
+ msg.msg_namelen = sizeof(sll);
+ msg.msg_iov = iov;
+ msg.msg_iovlen = iov_len;
+ msg.msg_control = NULL;
+ msg.msg_controllen = 0;
+ msg.msg_flags = 0;
if (cf...
2018 Sep 06
1
[PATCH net-next 08/11] tun: switch to new type of msg_control
...);
> tun_put(tun);
> diff --git a/drivers/vhost/net.c b/drivers/vhost/net.c
> index 4e656f89cb22..fb01ce6d981c 100644
> --- a/drivers/vhost/net.c
> +++ b/drivers/vhost/net.c
> @@ -620,6 +620,7 @@ static void handle_tx_zerocopy(struct vhost_net *net, struct socket *sock)
> .msg_controllen = 0,
> .msg_flags = MSG_DONTWAIT,
> };
> + struct tun_msg_ctl ctl;
> size_t len, total_len = 0;
> int err;
> struct vhost_net_ubuf_ref *uninitialized_var(ubufs);
> @@ -664,8 +665,10 @@ static void handle_tx_zerocopy(struct vhost_net *net, struct socket *sock)
>...
2013 Aug 30
0
[PATCH V2 4/6] vhost_net: determine whether or not to use zerocopy at one time
...nd_idx;
+
vq->heads[nvq->upend_idx].id = head;
- if (!vhost_net_tx_select_zcopy(net) ||
- len < VHOST_GOODCOPY_LEN) {
- /* copy don't need to wait for DMA done */
- vq->heads[nvq->upend_idx].len =
- VHOST_DMA_DONE_LEN;
- msg.msg_control = NULL;
- msg.msg_controllen = 0;
- ubufs = NULL;
- } else {
- struct ubuf_info *ubuf;
- ubuf = nvq->ubuf_info + nvq->upend_idx;
-
- vq->heads[nvq->upend_idx].len =
- VHOST_DMA_IN_PROGRESS;
- ubuf->callback = vhost_zerocopy_callback;
- ubuf->ctx = nvq->ubufs;
- ubuf->desc = nv...
2013 Sep 02
0
[PATCH V3 4/6] vhost_net: determine whether or not to use zerocopy at one time
...nd_idx;
+
vq->heads[nvq->upend_idx].id = head;
- if (!vhost_net_tx_select_zcopy(net) ||
- len < VHOST_GOODCOPY_LEN) {
- /* copy don't need to wait for DMA done */
- vq->heads[nvq->upend_idx].len =
- VHOST_DMA_DONE_LEN;
- msg.msg_control = NULL;
- msg.msg_controllen = 0;
- ubufs = NULL;
- } else {
- struct ubuf_info *ubuf;
- ubuf = nvq->ubuf_info + nvq->upend_idx;
-
- vq->heads[nvq->upend_idx].len =
- VHOST_DMA_IN_PROGRESS;
- ubuf->callback = vhost_zerocopy_callback;
- ubuf->ctx = nvq->ubufs;
- ubuf->desc = nv...
2013 Sep 05
0
[PATCH V3 4/6] vhost_net: determine whether or not to use zerocopy at one time
...t; - if (!vhost_net_tx_select_zcopy(net) ||
>> - len < VHOST_GOODCOPY_LEN) {
>> - /* copy don't need to wait for DMA done */
>> - vq->heads[nvq->upend_idx].len =
>> - VHOST_DMA_DONE_LEN;
>> - msg.msg_control = NULL;
>> - msg.msg_controllen = 0;
>> - ubufs = NULL;
>> - } else {
>> - struct ubuf_info *ubuf;
>> - ubuf = nvq->ubuf_info + nvq->upend_idx;
>> -
>> - vq->heads[nvq->upend_idx].len =
>> - VHOST_DMA_IN_PROGRESS;
>> - ubuf->callback = vhost_zeroc...
2015 Feb 25
2
Call for testing: OpenSSH 6.8
...e 'x'
regress/netcat.c:735: warning: unused variable 'ret'
regress/netcat.c: In function 'fdpass':
regress/netcat.c:1037: error: 'struct msghdr' has no member named
'msg_control'
regress/netcat.c:1038: error: 'struct msghdr' has no member named
'msg_controllen'
regress/netcat.c:1039: error: 'struct msghdr' has no member named
'msg_controllen'
regress/netcat.c:1039: error: 'struct msghdr' has no member named
'msg_control'
regress/netcat.c: In function 'set_common_sockopts':
regress/netcat.c:1196: warning: pass...
2013 Sep 02
8
[PATCH V3 0/6] vhost code cleanup and minor enhancement
This series tries to unify and simplify vhost codes especially for
zerocopy. With this series, 5% - 10% improvement for per cpu throughput were
seen during netperf guest sending test.
Plase review.
Changes from V2:
- Typo fixes and code style fix
- Add performance gain in the commit log of patch 2/6
- Retest the update the result in patch 6/6
Changes from V1:
- Fix the zerocopy enabling check
2013 Sep 02
8
[PATCH V3 0/6] vhost code cleanup and minor enhancement
This series tries to unify and simplify vhost codes especially for
zerocopy. With this series, 5% - 10% improvement for per cpu throughput were
seen during netperf guest sending test.
Plase review.
Changes from V2:
- Typo fixes and code style fix
- Add performance gain in the commit log of patch 2/6
- Retest the update the result in patch 6/6
Changes from V1:
- Fix the zerocopy enabling check
2018 Sep 06
0
[PATCH net-next 08/11] tun: switch to new type of msg_control
...m->msg_flags & MSG_MORE);
tun_put(tun);
diff --git a/drivers/vhost/net.c b/drivers/vhost/net.c
index 4e656f89cb22..fb01ce6d981c 100644
--- a/drivers/vhost/net.c
+++ b/drivers/vhost/net.c
@@ -620,6 +620,7 @@ static void handle_tx_zerocopy(struct vhost_net *net, struct socket *sock)
.msg_controllen = 0,
.msg_flags = MSG_DONTWAIT,
};
+ struct tun_msg_ctl ctl;
size_t len, total_len = 0;
int err;
struct vhost_net_ubuf_ref *uninitialized_var(ubufs);
@@ -664,8 +665,10 @@ static void handle_tx_zerocopy(struct vhost_net *net, struct socket *sock)
ubuf->ctx = nvq->ubufs;
ubuf...
2003 Mar 04
6
ip rule nat
when doing somehitng like
ip rule add fwmark 3 nat 200.42.75.183 table ppp0 prio 1
(the idea is that packets that match the fwmark 3 change their source
address to 200.42.75.183)..it first apply the nat and then routes to
table ppp0 right?
in such case the, nat, why may be nat not being applyed?
cause it doesnt work at all..it goes to that interface but does not nat
the src address of the package.
2008 Jan 28
1
Dovecot-auth crash
...\0\0\26\0\1\3\200]\236G\0\0\0\0\0\0\0\0", 20, 0,
{sa_family=AF_NETLINK, pid=0, groups=00000000}, 12) = 20
23:56:00.392422 recvmsg(16, {msg_name(12)={sa_family=AF_NETLINK, pid=0,
groups=00000000},
msg_iov(1)=[{"0\0\0\0\24\0\2\0\200]\236G\300>\0\0\2\10\200\376\1\0\0"...,
4096}], msg_controllen=0, msg_flags=0}, 0) = 108
23:56:00.392516 recvmsg(16, {msg_name(12)={sa_family=AF_NETLINK, pid=0,
groups=00000000},
msg_iov(1)=[{"@\0\0\0\24\0\2\0\200]\236G\300>\0\0\n\200\200\376\1\0\0"...,
4096}], msg_controllen=0, msg_flags=0}, 0) = 128
23:56:00.392604 recvmsg(16, {msg_name(12)={...
2013 Nov 08
1
Rsync hanging, even with timeout and contimeout specified
...tons(53),
sin_addr=inet_addr("127.0.0.1")}, 16) = 0
gettimeofday({1383869704, 698589}, NULL) = 0
poll([{fd=3, events=POLLOUT}], 1, 0) = 1 ([{fd=3, revents=POLLOUT}])
sendmmsg(3, {{{msg_name(0)=NULL,
msg_iov(1)=[{"\250\317\1\0\0\1\0\0\0\0\0\0\6mirror\6aarnet\3edu\2a"...,
38}], msg_controllen=0, msg_flags=0}, 38}, {{msg_name(0)=NULL,
msg_iov(1)=[{"d\273\1\0\0\1\0\0\0\0\0\0\6mirror\6aarnet\3edu\2a"..., 38}],
msg_controllen=0, msg_flags=0}, 38}}, 2, MSG_NOSIGNAL) = 2
poll([{fd=3, events=POLLIN}], 1, 5000) = 1 ([{fd=3, revents=POLLIN}])
ioctl(3, FIONREAD, [54]) =...
2003 Oct 02
1
another Dovecot problem
Hi All--
First, thanks to Timo for solving my last issue. I got dovecot up and
running on one of my machines, and it does exactly what I want. Now I'm
trying to install dovecot on an older box (glibc 2.0.7 Linux kernel
2.0.36), and encountering some problems:
-- firstly autoconf/automake does not seem to correctly deal with the
madvise function on this system. It detects that we don't
2015 Feb 11
2
Problems in SAMBA 3.3 to 4.0 migration
Hi, Rowland, and thanks for the reply.
The PDC OS is Slackware 13. The BDC OS is Slackware 14.
The choice to use Samba 4.0 was merely due to its inclusion on the Slackware
14 distro. I'll worry about upgrading that once I have the migration
complete.
I will post the two machine's respective smb.conf's later today.
--
View this message in context:
2015 Dec 10
2
[PATCH] Receive multiple packets at a time
...+ {
+ msg[i].msg_hdr.msg_name = &from[i].sa;
+ msg[i].msg_hdr.msg_namelen = sizeof(from[i]);
+ iov[i].iov_base = &pkt[i].seqno;
+ iov[i].iov_len = MAXSIZE;
+ msg[i].msg_hdr.msg_iov = &iov[i];
+ msg[i].msg_hdr.msg_iovlen = 1;
+ msg[i].msg_hdr.msg_control = NULL;
+ msg[i].msg_hdr.msg_controllen = 0;
+ }
+ num = recvmmsg(listen_socket[sock].udp, msg, MAX_MSG, MSG_DONTWAIT, NULL);
+#else
+ pkt[0].len = recvfrom(listen_socket[sock].udp, (char *) &pkt[0].seqno, MAXSIZE, 0, &from[0].sa, &fromlen);
+#endif
+
+#ifdef HAVE_RECVMMSG
+ if(num < 0)
+#else
+ if(pkt[0].len < 0)
+#end...
2010 Mar 13
1
klibc build trouble
as the next klibc release 1.5.16 looks like shaping up,
I have a trouble to build that for Debian.
currently I build depent on linux-libc-dev, I don't know what
against I can build latest klibc, see
klibc fails to build due too:
make -C linux/ ARCH=x86_64 INSTALL_HDR_PATH=debian/tmp/usr/lib/klibc/ headers_install
make[3]: *** No rule to make target `headers_install'. Stop.
make[2]: ***