[ovs-dev] [PATCH net v3] openvswitch: Allocate memory for ovs internal device stats.

David Miller davem at davemloft.net
Thu Oct 22 02:07:28 UTC 2015


From: James Morse <james.morse at arm.com>
Date: Mon, 19 Oct 2015 16:31:55 +0100

> "openvswitch: Remove vport stats" removed the per-vport statistics, in
> order to use the netdev's statistics fields.
> "openvswitch: Fix ovs_vport_get_stats()" fixed the export of these stats
> to user-space, by using the provided netdev_ops to collate them - but ovs
> internal devices still use an unallocated dev->tstats field to count
> packets, which are no longer exported by this api.
> 
> Allocate the dev->tstats field for ovs internal devices, and wire up
> ndo_get_stats64 with the original implementation of
> ovs_vport_get_stats().
> 
> On its own, "openvswitch: Fix ovs_vport_get_stats()" fixes the OOPs,
> unmasking a full-on panic on arm64:
...
> Fixes: 8c876639c985 ("openvswitch: Remove vport stats.")
> Signed-off-by: James Morse <james.morse at arm.com>

Applied, thanks.



More information about the dev mailing list