[ovs-git] [openvswitch/ovs] 8101f0: dpif: Don't pass in '*meter_id' to meter_set comma...
GitHub
noreply at github.com
Thu Aug 16 17:21:41 UTC 2018
Branch: refs/heads/master
Home: https://github.com/openvswitch/ovs
Commit: 8101f03fcde1fe90b7301b398d7a8caa480d43f8
https://github.com/openvswitch/ovs/commit/8101f03fcde1fe90b7301b398d7a8caa480d43f8
Author: Justin Pettit <jpettit at ovn.org>
Date: 2018-08-16 (Thu, 16 Aug 2018)
Changed paths:
M lib/dpif-netdev.c
M lib/dpif-netlink.c
M lib/dpif-provider.h
M lib/dpif.c
M lib/dpif.h
M ofproto/ofproto-dpif.c
Log Message:
-----------
dpif: Don't pass in '*meter_id' to meter_set commands.
The original intent of the API appears to be that the underlying DPIF
implementaion would choose a local meter id. However, neither of the
existing datapath meter implementations (userspace or Linux) implemented
that; they expected a valid meter id to be passed in, otherwise they
returned an error. This commit follows the existing implementations and
makes the API somewhat cleaner.
Signed-off-by: Justin Pettit <jpettit at ovn.org>
Acked-by: Ben Pfaff <blp at ovn.org>
Commit: 92d0d515d67b9232986f71d89cafe7251e67844f
https://github.com/openvswitch/ovs/commit/92d0d515d67b9232986f71d89cafe7251e67844f
Author: Justin Pettit <jpettit at ovn.org>
Date: 2018-08-16 (Thu, 16 Aug 2018)
Changed paths:
M lib/dpif-netlink.c
Log Message:
-----------
dpif-netlink: Probe for broken Linux meter implementations.
Meter support was introduced in Linux 4.15. In some versions of Linux
4.15, 4.16, and 4.17, there was a bug that never set the id when the
meter was created, so all meters essentially had an id of zero. This
commit adds a probe to check for that condition and disable meters on
those kernels.
Signed-off-by: Justin Pettit <jpettit at ovn.org>
Acked-by: Ben Pfaff <blp at ovn.org>
Compare: https://github.com/openvswitch/ovs/compare/16770c6d9179...92d0d515d67b
**NOTE:** This service has been marked for deprecation: https://developer.github.com/changes/2018-04-25-github-services-deprecation/
Functionality will be removed from GitHub.com on January 31st, 2019.
More information about the git
mailing list