Reduce code duplication of zerocopy of tun and macvtap
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest6 patches 1 replyIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/6 | net: move iov_pages() to net/core/iovec.cdrivers/ drivers/ include/ +1 more | +26 | 0 replies | |
| 2/6 | net: move zerocopy_sg_from_iovec() to net/core/datagram.cdrivers/ drivers/ include/ +1 more | +97 | 0 replies | |
| 3/6 | net: use skb_fill_page_desc() in zerocopy_sg_from_iovec()net/ | +1 | 0 replies | |
| 4/6 | net: remove the useless comment in zerocopy_sg_from_iovec()net/ | +0 | 0 replies | |
| 5/6 | net: use release_pages() in zerocopy_sg_from_iovec()net/ | +2 | 0 replies | |
| 6/6 | net: use skb_copy_datagram_from_iovec() in zerocopy_sg_from_iovec()net/ | +10 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [net-next 0/6] Reduce code duplication of zerocopy of tun and macvtap
Hi all:
This series tries to reduce the code duplication of zerocopy of tun and macvtap by:
- Move common helpers iov_pages() and zerocopy_sg_from_iovec() to net/core
- Use exist helpers instead of open coding the new one
With this seires, we can do further optimizations on top.
Please review.
Jason Wang (6):
net: move iov_pages() to net/core/iovec.c
net: move zerocopy_sg_from_iovec() to net/core/datagram.c
net: use skb_fill_page_desc() in zerocopy_sg_from_iovec()
net: remove the useless comment in zerocopy_sg_from_iovec()
net: use release_pages() in zerocopy_sg_from_iovec()
net: use skb_copy_datagram_from_iovec() in zerocopy_sg_from_iovec()
drivers/net/macvtap.c | 103 ------------------------------------------------ drivers/net/tun.c | 103 ------------------------------------------------ include/linux/skbuff.h | 4 ++ include/linux/socket.h | 2 + net/core/datagram.c | 72 +++++++++++++++++++++++++++++++++ net/core/iovec.c | 24 +++++++++++ 6 files changed, 102 insertions(+), 206 deletions(-)