[ovs-dev] [ovs-discuss] [ACLv2 03/19] ofproto: Add ofproto_get_port_stats function.
Ben Pfaff
blp at nicira.com
Fri Sep 4 21:25:16 UTC 2009
Jesse Gross <jesse at nicira.com> writes:
> Ben Pfaff wrote:
>> Jesse Gross <jesse at nicira.com> writes:
>>
>>
>>> +{
>>> + struct ofport *port;
>>> +
>>> + port = port_array_get(&p->ports, ofp_port_to_odp_port(ofport_no));
>>> + if (!port) {
>>> + return ENOENT;
>>> + }
>>> +
>>> + netdev_get_stats(port->netdev, stats);
>>> +
>>> + return 0;
>>> +}
>>>
>>
>> This discards any error returned by netdev_get_stats().
>>
>
> It now returns the error to the caller.
Great, thanks.
More information about the dev
mailing list