datapath: Check that netdev vport is fully initialized.
authorJesse Gross <jesse@nicira.com>
Thu, 19 May 2011 20:17:39 +0000 (13:17 -0700)
committerJesse Gross <jesse@nicira.com>
Thu, 19 May 2011 21:02:44 +0000 (14:02 -0700)
commitd825e2a5dcc5193067215cbf2466417cebebab9b
treed6d165acf0e0b13cdad168cdcfc6839f329f84b0
parent35aa7a213757ffca31ea345a1154dadaa75298f2
datapath: Check that netdev vport is fully initialized.

Starting in 2.6.37 we have our own flag for identifying net_devices
as being attached to OVS.  However, it's possible to receive packets
before this flag has been applied, resulting in a NULL vport when
processing the packet.  This checks to make sure that the vport is
valid instead of crashing.

Bug #5675

Reported-by: Brad Hall <brad@nicira.com>
Signed-off-by: Jesse Gross <jesse@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
datapath/vport-netdev.c