aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/xen-netback/common.h
diff options
context:
space:
mode:
authorZoltan Kiss <zoltan.kiss@citrix.com>2014-08-04 11:20:57 -0400
committerDavid S. Miller <davem@davemloft.net>2014-08-05 19:04:46 -0400
commit3d1af1df9762e56e563e8fd088a1b4ce2bcfaf8b (patch)
tree958644b13f317f33877a704060e3dc03d1eac118 /drivers/net/xen-netback/common.h
parentaef4f5b6db654e512ebcccab2a6e50424c05d2f9 (diff)
xen-netback: Using a new state bit instead of carrier
This patch introduces a new state bit VIF_STATUS_CONNECTED to track whether the vif is in a connected state. Using carrier will not work with the next patch in this series, which aims to turn the carrier temporarily off if the guest doesn't seem to be able to receive packets. Signed-off-by: Zoltan Kiss <zoltan.kiss@citrix.com> Signed-off-by: David Vrabel <david.vrabel@citrix.com> Cc: netdev@vger.kernel.org Cc: linux-kernel@vger.kernel.org Cc: xen-devel@lists.xenproject.org v2: - rename the bitshift type to "enum state_bit_shift" here, not in the next patch Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/xen-netback/common.h')
-rw-r--r--drivers/net/xen-netback/common.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/net/xen-netback/common.h b/drivers/net/xen-netback/common.h
index 28c98229e95f..4a92fc19f410 100644
--- a/drivers/net/xen-netback/common.h
+++ b/drivers/net/xen-netback/common.h
@@ -198,6 +198,11 @@ struct xenvif_queue { /* Per-queue data for xenvif */
198 struct xenvif_stats stats; 198 struct xenvif_stats stats;
199}; 199};
200 200
201enum state_bit_shift {
202 /* This bit marks that the vif is connected */
203 VIF_STATUS_CONNECTED
204};
205
201struct xenvif { 206struct xenvif {
202 /* Unique identifier for this interface. */ 207 /* Unique identifier for this interface. */
203 domid_t domid; 208 domid_t domid;
@@ -220,6 +225,7 @@ struct xenvif {
220 * frontend is rogue. 225 * frontend is rogue.
221 */ 226 */
222 bool disabled; 227 bool disabled;
228 unsigned long status;
223 229
224 /* Queues */ 230 /* Queues */
225 struct xenvif_queue *queues; 231 struct xenvif_queue *queues;