diff options
Diffstat (limited to 'drivers/net/hyperv/hyperv_net.h')
-rw-r--r-- | drivers/net/hyperv/hyperv_net.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/drivers/net/hyperv/hyperv_net.h b/drivers/net/hyperv/hyperv_net.h index a10b31664709..41071d32bc8e 100644 --- a/drivers/net/hyperv/hyperv_net.h +++ b/drivers/net/hyperv/hyperv_net.h | |||
@@ -128,7 +128,6 @@ struct ndis_tcp_ip_checksum_info; | |||
128 | struct hv_netvsc_packet { | 128 | struct hv_netvsc_packet { |
129 | /* Bookkeeping stuff */ | 129 | /* Bookkeeping stuff */ |
130 | u32 status; | 130 | u32 status; |
131 | bool part_of_skb; | ||
132 | 131 | ||
133 | bool is_data_pkt; | 132 | bool is_data_pkt; |
134 | bool xmit_more; /* from skb */ | 133 | bool xmit_more; /* from skb */ |
@@ -612,6 +611,15 @@ struct multi_send_data { | |||
612 | u32 count; /* counter of batched packets */ | 611 | u32 count; /* counter of batched packets */ |
613 | }; | 612 | }; |
614 | 613 | ||
614 | /* The context of the netvsc device */ | ||
615 | struct net_device_context { | ||
616 | /* point back to our device context */ | ||
617 | struct hv_device *device_ctx; | ||
618 | struct delayed_work dwork; | ||
619 | struct work_struct work; | ||
620 | u32 msg_enable; /* debug level */ | ||
621 | }; | ||
622 | |||
615 | /* Per netvsc device */ | 623 | /* Per netvsc device */ |
616 | struct netvsc_device { | 624 | struct netvsc_device { |
617 | struct hv_device *dev; | 625 | struct hv_device *dev; |
@@ -667,6 +675,9 @@ struct netvsc_device { | |||
667 | struct multi_send_data msd[NR_CPUS]; | 675 | struct multi_send_data msd[NR_CPUS]; |
668 | u32 max_pkt; /* max number of pkt in one send, e.g. 8 */ | 676 | u32 max_pkt; /* max number of pkt in one send, e.g. 8 */ |
669 | u32 pkt_align; /* alignment bytes, e.g. 8 */ | 677 | u32 pkt_align; /* alignment bytes, e.g. 8 */ |
678 | |||
679 | /* The net device context */ | ||
680 | struct net_device_context *nd_ctx; | ||
670 | }; | 681 | }; |
671 | 682 | ||
672 | /* NdisInitialize message */ | 683 | /* NdisInitialize message */ |