diff options
author | Haiyang Zhang <haiyangz@microsoft.com> | 2012-10-02 09:30:23 +0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-10-02 22:39:31 +0400 |
commit | 63f6921d300c6fbdca3d0e73dcc24b4e5e4dced2 (patch) | |
tree | 5cd2560e12959f51574e0235bc1d9bdb81b30b98 /drivers/net/hyperv/hyperv_net.h | |
parent | 6562640bd3b368a7ffb1caa61c82abe6e9d54b3b (diff) | |
download | linux-63f6921d300c6fbdca3d0e73dcc24b4e5e4dced2.tar.xz |
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; /* Represent the xfer page packet which contains 1 or more netvsc packet */ struct xferpage_packet { struct list_head list_ent; + u32 status; /* # of netvsc packets this xfer packet contains */ u32 count; @@ -47,6 +48,7 @@ struct xferpage_packet { struct hv_netvsc_packet { /* Bookkeeping stuff */ struct list_head list_ent; + u32 status; struct hv_device *device; bool is_data_pkt; |