All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH net-next V2 0/6] net/intel: call ndo_stop() instead of dev_close() when running offline selftest
@ 2016-02-03  8:20 ` Stefan Assmann
  0 siblings, 0 replies; 31+ messages in thread
From: Stefan Assmann @ 2016-02-03  8:20 UTC (permalink / raw)
  To: intel-wired-lan; +Cc: netdev, davem, jeffrey.t.kirsher, sassmann

Calling dev_close() causes IFF_UP to be cleared which will remove the
interfaces routes and some addresses. That's probably not what the user
intended when running the offline selftest. Besides this does not happen
if the interface is brought down before the test, so the current
behaviour is inconsistent.
Instead call the net_device_ops ndo_stop function directly and avoid
touching IFF_UP at all.

Tested this with igb, e1000e, ixgbe and i40e. All drivers now are able to
resume operation without restoring the IP address, gateway or such.

V2: rename e1000_open(), e1000_close() to e1000e_open(), e1000e_close()
to avoid name clash with e1000.


Stefan Assmann (6):
  i40e: call ndo_stop() instead of dev_close() when running offline
    selftest
  ixgbe: call ndo_stop() instead of dev_close() when running offline
    selftest
  ixgbevf: call ndo_stop() instead of dev_close() when running offline
    selftest
  igb: call ndo_stop() instead of dev_close() when running offline
    selftest
  e1000: call ndo_stop() instead of dev_close() when running offline
    selftest
  e1000e: call ndo_stop() instead of dev_close() when running offline
    selftest

 drivers/net/ethernet/intel/e1000/e1000.h          |  2 ++
 drivers/net/ethernet/intel/e1000/e1000_ethtool.c  |  4 ++--
 drivers/net/ethernet/intel/e1000/e1000_main.c     |  8 ++++----
 drivers/net/ethernet/intel/e1000e/e1000.h         |  2 ++
 drivers/net/ethernet/intel/e1000e/ethtool.c       |  4 ++--
 drivers/net/ethernet/intel/e1000e/netdev.c        | 12 ++++++------
 drivers/net/ethernet/intel/i40e/i40e.h            |  2 +-
 drivers/net/ethernet/intel/i40e/i40e_ethtool.c    |  4 ++--
 drivers/net/ethernet/intel/i40e/i40e_main.c       |  4 ----
 drivers/net/ethernet/intel/igb/igb.h              |  2 ++
 drivers/net/ethernet/intel/igb/igb_ethtool.c      |  4 ++--
 drivers/net/ethernet/intel/igb/igb_main.c         |  8 ++++----
 drivers/net/ethernet/intel/ixgbe/ixgbe.h          |  2 ++
 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c  |  4 ++--
 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c     |  4 ++--
 drivers/net/ethernet/intel/ixgbevf/ethtool.c      |  4 ++--
 drivers/net/ethernet/intel/ixgbevf/ixgbevf.h      |  2 ++
 drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c |  4 ++--
 18 files changed, 41 insertions(+), 35 deletions(-)

-- 
2.5.0

^ permalink raw reply	[flat|nested] 31+ messages in thread

end of thread, other threads:[~2016-03-03 20:10 UTC | newest]

Thread overview: 31+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-02-03  8:20 [PATCH net-next V2 0/6] net/intel: call ndo_stop() instead of dev_close() when running offline selftest Stefan Assmann
2016-02-03  8:20 ` [Intel-wired-lan] " Stefan Assmann
2016-02-03  8:20 ` [PATCH net-next V2 1/6] i40e: " Stefan Assmann
2016-02-03  8:20   ` [Intel-wired-lan] " Stefan Assmann
2016-02-08 16:55   ` Bowers, AndrewX
2016-02-03  8:20 ` [PATCH net-next V2 2/6] ixgbe: " Stefan Assmann
2016-02-03  8:20   ` [Intel-wired-lan] " Stefan Assmann
2016-03-01 19:34   ` Bowers, AndrewX
2016-02-03  8:20 ` [PATCH net-next V2 3/6] ixgbevf: " Stefan Assmann
2016-02-03  8:20   ` [Intel-wired-lan] " Stefan Assmann
2016-03-03 20:10   ` Bowers, AndrewX
2016-02-03  8:20 ` [PATCH net-next V2 4/6] igb: " Stefan Assmann
2016-02-03  8:20   ` [Intel-wired-lan] " Stefan Assmann
2016-02-12 23:22   ` Brown, Aaron F
2016-02-12 23:22     ` Brown, Aaron F
2016-02-16 17:24     ` Rustad, Mark D
2016-02-16 17:24       ` Rustad, Mark D
2016-02-03  8:20 ` [PATCH net-next V2 5/6] e1000: " Stefan Assmann
2016-02-03  8:20   ` [Intel-wired-lan] " Stefan Assmann
2016-02-12 23:20   ` Brown, Aaron F
2016-02-12 23:20     ` Brown, Aaron F
2016-02-16 17:23     ` Rustad, Mark D
2016-02-16 17:23       ` Rustad, Mark D
2016-02-16 20:02       ` Brown, Aaron F
2016-02-16 20:02         ` Brown, Aaron F
2016-02-03  8:20 ` [PATCH net-next V2 6/6] e1000e: " Stefan Assmann
2016-02-03  8:20   ` [Intel-wired-lan] " Stefan Assmann
2016-02-09 12:30   ` Avargil, Raanan
2016-02-09 12:30     ` Avargil, Raanan
2016-02-12 23:17   ` Brown, Aaron F
2016-02-12 23:17     ` Brown, Aaron F

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.