diff options
author | imarom <imarom@cisco.com> | 2015-11-26 02:30:03 -0500 |
---|---|---|
committer | imarom <imarom@cisco.com> | 2015-11-26 02:30:03 -0500 |
commit | d9a11302236095e055247295021bdfce6c988802 (patch) | |
tree | ea240260db4bddf3719a3e76aadd2ba5ae34eb10 /src/stateless/cp/trex_stateless_port.h | |
parent | 12a19244693cacbd77ca0a8e43f382a10f773f91 (diff) |
added support for 'update'
Diffstat (limited to 'src/stateless/cp/trex_stateless_port.h')
-rw-r--r-- | src/stateless/cp/trex_stateless_port.h | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/src/stateless/cp/trex_stateless_port.h b/src/stateless/cp/trex_stateless_port.h index 20acd927..b061a414 100644 --- a/src/stateless/cp/trex_stateless_port.h +++ b/src/stateless/cp/trex_stateless_port.h @@ -77,8 +77,18 @@ public: * throws TrexException in case of an error */ void start_traffic(double mul, double duration = -1); - void start_traffic_max_bps(double max_bps, double duration = -1); - void start_traffic_max_pps(double max_pps, double duration = -1); + + /** + * given a BPS rate calculate ther correct M for this port + * + */ + double calculate_m_from_bps(double max_bps); + + /** + * given a PPS rate calculate the correct M for this port + * + */ + double calculate_m_from_pps(double max_pps); /** * stop traffic |