netdev.vger.kernel.org archive mirror
 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; 10+ 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] 10+ messages in thread

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

Thread overview: 10+ 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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).