[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20140306.143052.1684426326912194946.davem@davemloft.net>
Date: Thu, 06 Mar 2014 14:30:52 -0500 (EST)
From: David Miller <davem@...emloft.net>
To: kys@...rosoft.com
Cc: netdev@...r.kernel.org, linux-kernel@...r.kernel.org,
devel@...uxdriverproject.org, olaf@...fle.de, apw@...onical.com,
jasowang@...hat.com
Subject: Re: [PATCH 2/6] Drivers: net: hyperv: Cleanup the send path
From: "K. Y. Srinivasan" <kys@...rosoft.com>
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@...rosoft.com>
> Reviewed-by: Haiyang Zhang <haiyangz@...rosoft.com>
> ---
> 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.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists