Displaying 5 results from an estimated 5 matches for "tap_get_socket".
2023 May 05
0
[PATCH] vhost_net: Use fdget() and fdput()
...struct socket *sock;
>
> - if (!file)
> + if (!f.file)
> return ERR_PTR(-EBADF);
> - sock = tun_get_socket(file);
> + sock = tun_get_socket(f.file);
> if (!IS_ERR(sock))
> return sock;
> - sock = tap_get_socket(file);
> + sock = tap_get_socket(f.file);
> if (IS_ERR(sock))
> - fput(file);
> + fdput(f);
> return sock;
> }
>
> --
> 2.25.1
>
2023 May 05
0
[PATCH] vhost_net: Use fdget() and fdput()
...gt;> + if (!f.file)
> >> return ERR_PTR(-EBADF);
> >> - sock = tun_get_socket(file);
> >> + sock = tun_get_socket(f.file);
> >> if (!IS_ERR(sock))
> >> return sock;
> >> - sock = tap_get_socket(file);
> >> + sock = tap_get_socket(f.file);
> >> if (IS_ERR(sock))
> >> - fput(file);
> >> + fdput(f);
> >> return sock;
> >> }
> >>
> >> --
> >> 2.25.1
> >>...
2023 May 11
0
[PATCH] vhost_net: Use fdget() and fdput()
...truct file *file = fget(fd);
> + struct fd f = fdget(fd);
> struct socket *sock;
>
> - if (!file)
> + if (!f.file)
> return ERR_PTR(-EBADF);
> - sock = tun_get_socket(file);
> + sock = tun_get_socket(f.file);
> if (!IS_ERR(sock))
> return sock;
> - sock = tap_get_socket(file);
> + sock = tap_get_socket(f.file);
> if (IS_ERR(sock))
> - fput(file);
> + fdput(f);
> return sock;
NAK. For the same reason why the sockfd_lookup() counterpart of that
patch is broken. After your change there's no way for the caller
to tell whether we have bumped...
2017 Mar 21
12
[PATCH net-next 0/8] vhost-net rx batching
Hi all:
This series tries to implement rx batching for vhost-net. This is done
by batching the dequeuing from skb_array which was exported by
underlayer socket and pass the sbk back through msg_control to finish
userspace copying.
Tests shows at most 19% improvment on rx pps.
Please review.
Thanks
Jason Wang (8):
ptr_ring: introduce batch dequeuing
skb_array: introduce batch dequeuing
2017 Mar 21
12
[PATCH net-next 0/8] vhost-net rx batching
Hi all:
This series tries to implement rx batching for vhost-net. This is done
by batching the dequeuing from skb_array which was exported by
underlayer socket and pass the sbk back through msg_control to finish
userspace copying.
Tests shows at most 19% improvment on rx pps.
Please review.
Thanks
Jason Wang (8):
ptr_ring: introduce batch dequeuing
skb_array: introduce batch dequeuing