diff options
author | Haiyang Zhang <haiyangz@microsoft.com> | 2012-10-02 01:30:23 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-10-02 14:39:31 -0400 |
commit | 63f6921d300c6fbdca3d0e73dcc24b4e5e4dced2 (patch) | |
tree | 5cd2560e12959f51574e0235bc1d9bdb81b30b98 /drivers/net/hyperv/hyperv_net.h | |
parent | 6562640bd3b368a7ffb1caa61c82abe6e9d54b3b (diff) |
hyperv: Report actual status in receive completion packet
The existing code always reports NVSP_STAT_SUCCESS. This patch adds the
mechanism to report failure when it happens.
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Reviewed-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/hyperv/hyperv_net.h')
-rw-r--r-- | drivers/net/hyperv/hyperv_net.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/hyperv/hyperv_net.h b/drivers/net/hyperv/hyperv_net.h index d58f28c46386..5fd6f4674326 100644 --- a/drivers/net/hyperv/hyperv_net.h +++ b/drivers/net/hyperv/hyperv_net.h | |||
@@ -35,6 +35,7 @@ struct hv_netvsc_packet; | |||
35 | /* Represent the xfer page packet which contains 1 or more netvsc packet */ | 35 | /* Represent the xfer page packet which contains 1 or more netvsc packet */ |
36 | struct xferpage_packet { | 36 | struct xferpage_packet { |
37 | struct list_head list_ent; | 37 | struct list_head list_ent; |
38 | u32 status; | ||
38 | 39 | ||
39 | /* # of netvsc packets this xfer packet contains */ | 40 | /* # of netvsc packets this xfer packet contains */ |
40 | u32 count; | 41 | u32 count; |
@@ -47,6 +48,7 @@ struct xferpage_packet { | |||
47 | struct hv_netvsc_packet { | 48 | struct hv_netvsc_packet { |
48 | /* Bookkeeping stuff */ | 49 | /* Bookkeeping stuff */ |
49 | struct list_head list_ent; | 50 | struct list_head list_ent; |
51 | u32 status; | ||
50 | 52 | ||
51 | struct hv_device *device; | 53 | struct hv_device *device; |
52 | bool is_data_pkt; | 54 | bool is_data_pkt; |