mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
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>
This commit is contained in:
parent
aef4f5b6db
commit
3d1af1df97
3 changed files with 18 additions and 9 deletions
|
@ -198,6 +198,11 @@ struct xenvif_queue { /* Per-queue data for xenvif */
|
|||
struct xenvif_stats stats;
|
||||
};
|
||||
|
||||
enum state_bit_shift {
|
||||
/* This bit marks that the vif is connected */
|
||||
VIF_STATUS_CONNECTED
|
||||
};
|
||||
|
||||
struct xenvif {
|
||||
/* Unique identifier for this interface. */
|
||||
domid_t domid;
|
||||
|
@ -220,6 +225,7 @@ struct xenvif {
|
|||
* frontend is rogue.
|
||||
*/
|
||||
bool disabled;
|
||||
unsigned long status;
|
||||
|
||||
/* Queues */
|
||||
struct xenvif_queue *queues;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue