ethdev: support WRED thresholds in bytes
authorNikhil Rao <nikhil.rao@intel.com>
Tue, 20 Feb 2018 13:30:53 +0000 (08:30 -0500)
committerCristian Dumitrescu <cristian.dumitrescu@intel.com>
Fri, 4 May 2018 14:23:19 +0000 (16:23 +0200)
commit2fcf2f104fa2ed26b3cea2f4018b25974dc59c2d
treec97704698f3e8a379cd17e0aae905b72eb81c551
parent50752f06d2b4c6f3815732afd4dfc29a5e080b82
ethdev: support WRED thresholds in bytes

WRED thresholds can be specified in bytes if the TM leaf
node supports it. Also extend WRED thresholds to 32 bits from 16.

TM capability (port/level/queue) fields cman_wred_packet_mode_supported and
cman_wred_byte_mode_supported, when non-zero, indicate support for WRED
thresholds in packets and bytes respectively.

The packet_mode member of struct rte_tm_wred_params, when non-zero,
indicates that the min and max thresholds are specified in
packets and when zero, indicates that the min and max thresholds
are specified in bytes.

Signed-off-by: Nikhil Rao <nikhil.rao@intel.com>
drivers/net/softnic/rte_eth_softnic_tm.c
lib/librte_ethdev/rte_tm.h