All of lore.kernel.org
 help / color / mirror / Atom feed
* [0/2] Fix problems with with IFLA_VF_PORTS
@ 2014-04-23  7:21 David Gibson
  2014-04-23  7:21 ` [PATCH 1/2] rtnetlink: Warn when interface's information won't fit in our packet David Gibson
                   ` (2 more replies)
  0 siblings, 3 replies; 12+ messages in thread
From: David Gibson @ 2014-04-23  7:21 UTC (permalink / raw)
  To: netdev
  Cc: ssujith, neepatel, benve, davem, ben, govindarajulu90, gregory.v.rose

I've had a customer encounter a problem with getifaddrs(3) freezing up
on a system with a Cisco enic device.

I've discovered that the problem is caused by an enic device with a
large number of SR-IOV virtual functions overflowing the normal sized
packet buffer for netlink, leading to interfaces not being reported
from an RTM_GETLINK request.

The first patch here just makes the problem easier to locate if it
occurs again in a different way, by adding a WARN_ON() when we run out
of room in a netlink packet in this manner.

The second patch actually fixes the problem, by only reporting
IFLA_VF_PORTS information when the RTEXT_FILTER_VF flag is specified.

^ permalink raw reply	[flat|nested] 12+ messages in thread
* [0/2] Fix problems with with IFLA_VF_PORTS (v2)
@ 2014-04-24  0:22 David Gibson
  2014-04-24  0:22 ` [PATCH 1/2] rtnetlink: Warn when interface's information won't fit in our packet David Gibson
  0 siblings, 1 reply; 12+ messages in thread
From: David Gibson @ 2014-04-24  0:22 UTC (permalink / raw)
  To: netdev
  Cc: ssujith, neepatel, benve, davem, ben, govindarajulu90, gregory.v.rose

I've had a customer encounter a problem with getifaddrs(3) freezing up
on a system with a Cisco enic device.

I've discovered that the problem is caused by an enic device with a
large number of SR-IOV virtual functions overflowing the normal sized
packet buffer for netlink, leading to interfaces not being reported
from an RTM_GETLINK request.

The first patch here just makes the problem easier to locate if it
occurs again in a different way, by adding a WARN_ON() when we run out
of room in a netlink packet in this manner.

The second patch actually fixes the problem, by only reporting
IFLA_VF_PORTS information when the RTEXT_FILTER_VF flag is specified.

v2: Corrected some CodingStyle problems

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

end of thread, other threads:[~2014-04-24 15:49 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-04-23  7:21 [0/2] Fix problems with with IFLA_VF_PORTS David Gibson
2014-04-23  7:21 ` [PATCH 1/2] rtnetlink: Warn when interface's information won't fit in our packet David Gibson
2014-04-23  9:09   ` Jiri Pirko
2014-04-23 11:41     ` David Gibson
2014-04-23 11:51       ` Jiri Pirko
2014-04-23 14:20   ` Sergei Shtylyov
2014-04-23  7:21 ` [PATCH 2/2] rtnetlink: Only supply IFLA_VF_PORTS information when RTEXT_FILTER_VF is set David Gibson
2014-04-23  9:17   ` Jiri Pirko
2014-04-24  0:13     ` David Gibson
2014-04-23 15:14 ` [0/2] Fix problems with with IFLA_VF_PORTS Greg Rose
2014-04-24  0:22 [0/2] Fix problems with with IFLA_VF_PORTS (v2) David Gibson
2014-04-24  0:22 ` [PATCH 1/2] rtnetlink: Warn when interface's information won't fit in our packet David Gibson
2014-04-24 15:49   ` Jiri Pirko

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.