[ovs-dev] [ovs-discuss] [ACLv2 03/19] ofproto: Add ofproto_get_port_stats function.

Jesse Gross jesse at nicira.com
Fri Sep 4 21:22:09 UTC 2009



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.




More information about the dev mailing list