RE: [PATCH net-next,1/2] hyperv: Remove recv_pkt_list and lock

2014-04-21 Thread Haiyang Zhang
inuxdriverproject.org > Subject: Re: [PATCH net-next,1/2] hyperv: Remove recv_pkt_list and lock > > From: Haiyang Zhang > Date: Mon, 21 Apr 2014 12:26:15 -0700 > > > @@ -401,8 +401,6 @@ static void rndis_filter_receive_data(struct > rndis_device *dev, > > pkt-&g

Re: [PATCH net-next,1/2] hyperv: Remove recv_pkt_list and lock

2014-04-21 Thread David Miller
From: Haiyang Zhang Date: Mon, 21 Apr 2014 12:26:15 -0700 > @@ -401,8 +401,6 @@ static void rndis_filter_receive_data(struct rndis_device > *dev, > pkt->total_data_buflen = rndis_pkt->data_len; > pkt->data = (void *)((unsigned long)pkt->data + data_offset); > > -

[PATCH net-next,1/2] hyperv: Remove recv_pkt_list and lock

2014-04-21 Thread Haiyang Zhang
Removed recv_pkt_list and lock, and updated related code, so that the locking overhead is reduced especially when multiple channels are in use. The recv_pkt_list isn't actually necessary because the packets are processed sequentially in each channel. It has been replaced by a local variable, and

[PATCH net-next,1/2] hyperv: Remove recv_pkt_list and lock

2014-04-21 Thread Haiyang Zhang
Removed recv_pkt_list and lock, and updated related code, so that the locking overhead is reduced especially when multiple channels are in use. The recv_pkt_list isn't actually necessary because the packets are processed sequentially in each channel. It has been replaced by a local variable, and

Re: [PATCH net-next,1/2] hyperv: Remove recv_pkt_list and lock

2014-04-21 Thread David Miller
From: Haiyang Zhang haiya...@microsoft.com Date: Mon, 21 Apr 2014 12:26:15 -0700 @@ -401,8 +401,6 @@ static void rndis_filter_receive_data(struct rndis_device *dev, pkt-total_data_buflen = rndis_pkt-data_len; pkt-data = (void *)((unsigned long)pkt-data + data_offset); -

RE: [PATCH net-next,1/2] hyperv: Remove recv_pkt_list and lock

2014-04-21 Thread Haiyang Zhang
: Re: [PATCH net-next,1/2] hyperv: Remove recv_pkt_list and lock From: Haiyang Zhang haiya...@microsoft.com Date: Mon, 21 Apr 2014 12:26:15 -0700 @@ -401,8 +401,6 @@ static void rndis_filter_receive_data(struct rndis_device *dev, pkt-total_data_buflen = rndis_pkt-data_len; pkt