Update vnet hardware flags if link state changes 06/19906/2
authorDave Barach <dave@barachs.net>
Thu, 30 May 2019 23:48:12 +0000 (19:48 -0400)
committerDamjan Marion <dmarion@me.com>
Fri, 31 May 2019 09:28:10 +0000 (09:28 +0000)
commitd305bb5249b6b2677c90265507bff6467fd7cab6
tree5140653071f9accefd5065920013cb4417e8043a
parent6865d3c2ac01d78a2f313c4fb3e74cf409328e58
Update vnet hardware flags if link state changes

Explains a variety of hard-to-diagnose problems with certain Atom and
Denverton NIC types.

I finally tripped over a highly-repeatable failure: home gateway
use-case bitten by refusal to negotiate a DHCP lease for the trunk
port.

The dhcp client won't send pkts unless VNET_HW_INTERFACE_FLAG_LINK_UP
is set on the tx hw interface:

  /* Interface(s) down? */
  if ((hw->flags & VNET_HW_INTERFACE_FLAG_LINK_UP) == 0)
    return;

Change-Id: I17ef2ba7b39078555fa27d2d874a60c67e1530ee
Signed-off-by: Dave Barach <dave@barachs.net>
src/plugins/dpdk/device/init.c