[ovs-git] [openvswitch/ovs] 5820af: netdev-dpdk: use 64-bit arithmetic when converting...
GitHub
noreply at github.com
Tue Aug 29 21:17:02 UTC 2017
Branch: refs/heads/branch-2.7
Home: https://github.com/openvswitch/ovs
Commit: 5820afeb103eafe6dd7095e878b28680db5b7095
https://github.com/openvswitch/ovs/commit/5820afeb103eafe6dd7095e878b28680db5b7095
Author: Lance Richardson <lrichard at redhat.com>
Date: 2017-08-29 (Tue, 29 Aug 2017)
Changed paths:
M lib/netdev-dpdk.c
Log Message:
-----------
netdev-dpdk: use 64-bit arithmetic when converting rates.
Force 64-bit arithmetic to be used when converting uint32_t rate
and burst parameters from kilobits per second to bytes per second,
avoiding incorrect behavior for rates exceeding UINT_MAX bits
per second.
Reported-by: "王志克" <wangzhike at jd.com>
Fixes: 9509913aa722 ("netdev-dpdk.c: Add ingress-policing functionality.")
Signed-off-by: Lance Richardson <lrichard at redhat.com>
Acked-By: Mark Michelson <mmichels at redhat.com>
Acked-by: Kevin Traynor <ktraynor at redhat.com>
Signed-off-by: Darrell Ball <dlu998 at gmail.com>
More information about the git
mailing list