Re: [PATCH RFC 1/2] skbuff: Function to send an skbuf on a socket

2017-07-03 Thread David Miller
From: Tom Herbert Date: Thu, 29 Jun 2017 11:27:04 -0700 > +int skb_send_sock(struct sk_buff *skb, struct socket *sock, unsigned int > offset) > +{ > + unsigned int sent = 0; > + unsigned int ret; > + unsigned short fragidx; Please use reverse christmas tree ordering for these local

[PATCH RFC 1/2] skbuff: Function to send an skbuf on a socket

2017-06-29 Thread Tom Herbert
Add skb_send_sock to send an skbuff on a socket within the kernel. Arguments include and offset so that an skbuf might be sent in mulitple calls (e.g. send buffer limit is hit). --- include/linux/skbuff.h | 2 ++ net/core/skbuff.c | 66 ++ 2 f