From: "K. Y. Srinivasan" <kys@xxxxxxxxxxxxx> Date: Thu, 6 Mar 2014 03:13:06 -0800 > In preparation for enabling offloads, cleanup the send path. > > Signed-off-by: K. Y. Srinivasan <kys@xxxxxxxxxxxxx> > Reviewed-by: Haiyang Zhang <haiyangz@xxxxxxxxxxxxx> > --- > drivers/net/hyperv/hyperv_net.h | 7 +--- > drivers/net/hyperv/netvsc_drv.c | 87 +++++++++++++++++++++++++++++------- > drivers/net/hyperv/rndis_filter.c | 66 ---------------------------- > 3 files changed, 71 insertions(+), 89 deletions(-) > > diff --git a/drivers/net/hyperv/hyperv_net.h b/drivers/net/hyperv/hyperv_net.h > index 39fc230..694bf7c 100644 > --- a/drivers/net/hyperv/hyperv_net.h > +++ b/drivers/net/hyperv/hyperv_net.h > @@ -73,7 +73,7 @@ struct hv_netvsc_packet { > } completion; > > /* This points to the memory after page_buf */ > - void *extension; > + struct rndis_message *rndis_msg; > > u32 total_data_buflen; > /* Points to the send/receive buffer where the ethernet frame is */ > @@ -126,11 +126,6 @@ void rndis_filter_device_remove(struct hv_device *dev); > int rndis_filter_receive(struct hv_device *dev, > struct hv_netvsc_packet *pkt); > > - > - > -int rndis_filter_send(struct hv_device *dev, > - struct hv_netvsc_packet *pkt); > - > int rndis_filter_set_packet_filter(struct rndis_device *dev, u32 new_filter); > int rndis_filter_set_device_mac(struct hv_device *hdev, char *mac); > > diff --git a/drivers/net/hyperv/netvsc_drv.c b/drivers/net/hyperv/netvsc_drv.c > index afa9c53..e812529 100644 > --- a/drivers/net/hyperv/netvsc_drv.c > +++ b/drivers/net/hyperv/netvsc_drv.c > @@ -128,6 +128,28 @@ static int netvsc_close(struct net_device *net) > return ret; > } > > + > +static void *init_ppi_data(struct rndis_message *msg, u32 ppi_size, One empty line between functions is sufficient. > @@ -173,7 +195,7 @@ static u32 fill_pg_buf(struct page *page, u32 offset, u32 len, > return j + 1; > } > > -static void init_page_array(void *hdr, u32 len, struct sk_buff *skb, > +static u32 init_page_array(void *hdr, u32 len, struct sk_buff *skb, > struct hv_page_buffer *pb) When you adjust where the openning parenthesis occurs in a function definition or call, you must adjust the indentation of arguments that occur on the following lines. In particular, such arguments must start at exactly the first column after the openning parenthesis. You must use the appropriate number of TAB and space characters necessary to achieve this. _______________________________________________ devel mailing list devel@xxxxxxxxxxxxxxxxxxxxxx http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel