Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 328433
b: refs/heads/master
c: 6562640
h: refs/heads/master
i:
  328431: 5ab4a88
v: v3
  • Loading branch information
Haiyang Zhang authored and David S. Miller committed Oct 2, 2012
1 parent 6efed4d commit 21c1506
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 99e3fcfa34e7ea6dbb44fe5df51b79ccb6f73d3d
refs/heads/master: 6562640bd3b368a7ffb1caa61c82abe6e9d54b3b
2 changes: 0 additions & 2 deletions trunk/drivers/net/hyperv/hyperv_net.h
Original file line number Diff line number Diff line change
Expand Up @@ -465,8 +465,6 @@ struct nvsp_message {

#define NETVSC_RECEIVE_BUFFER_ID 0xcafe

#define NETVSC_RECEIVE_SG_COUNT 1

/* Preallocated receive packets */
#define NETVSC_RECEIVE_PACKETLIST_COUNT 256

Expand Down
4 changes: 1 addition & 3 deletions trunk/drivers/net/hyperv/netvsc.c
Original file line number Diff line number Diff line change
Expand Up @@ -904,9 +904,7 @@ int netvsc_device_add(struct hv_device *device, void *additional_info)
INIT_LIST_HEAD(&net_device->recv_pkt_list);

for (i = 0; i < NETVSC_RECEIVE_PACKETLIST_COUNT; i++) {
packet = kzalloc(sizeof(struct hv_netvsc_packet) +
(NETVSC_RECEIVE_SG_COUNT *
sizeof(struct hv_page_buffer)), GFP_KERNEL);
packet = kzalloc(sizeof(struct hv_netvsc_packet), GFP_KERNEL);
if (!packet)
break;

Expand Down

0 comments on commit 21c1506

Please sign in to comment.