datapath: Fix vport_get_stats() in !VPORT_F_GEN_STATS case.
authorBen Pfaff <blp@nicira.com>
Wed, 5 Jan 2011 18:17:17 +0000 (10:17 -0800)
committerBen Pfaff <blp@nicira.com>
Thu, 6 Jan 2011 04:46:42 +0000 (20:46 -0800)
commit265d5020ad6a7e1e7f97822a5545be223b6ea599
treecf7600311dcd25479ca8b5de0e16c9d3f0547eb6
parent875244c7a9048bfe2075f0d6bbb4fa13edaae242
datapath: Fix vport_get_stats() in !VPORT_F_GEN_STATS case.

When VPORT_F_GEN_STATS was not set, vport_get_stats() would always return
an error (either an error returned by ->get_stats(), otherwise
-EOPNOTSUPP).  This fixes the problem.

Found by inspection.

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