]> git.baikalelectronics.ru Git - kernel.git/commit
xen-netback: Using a new state bit instead of carrier
authorZoltan Kiss <zoltan.kiss@citrix.com>
Mon, 4 Aug 2014 15:20:57 +0000 (16:20 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 5 Aug 2014 23:04:46 +0000 (16:04 -0700)
commitcc3a245498f593deaa7b476d3e30a460e2bfe81a
tree958644b13f317f33877a704060e3dc03d1eac118
parentd3ffb4299e5e3dd6aa35500ec0382f19073690c2
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>
drivers/net/xen-netback/common.h
drivers/net/xen-netback/interface.c
drivers/net/xen-netback/netback.c