Vendor attribute to configure QoS/AC upgrade for UDP frames

Introduce a new attribute to configure access category
override for UDP frames of BE/BK category. Unlike, the
earlier attribute QCA_WLAN_VENDOR_ATTR_CONFIG_UDP_QOS_UPGRADE
which will override for all UDP frames, this attribute is
for overriding only for BE/BK based UDP frames.

Signed-off-by: Jouni Malinen <quic_jouni@quicinc.com>
This commit is contained in:
Amarnath Hullur Subramanyam 2022-10-12 22:28:01 -07:00 committed by Jouni Malinen
parent e5d15e2254
commit 0423686639

View file

@ -2656,6 +2656,14 @@ enum qca_wlan_vendor_attr_config {
* Set the value to QCA_WLAN_AC_BK if the QoS upgrade needs to be
* disabled, as BK is of the lowest priority and an upgrade to it does
* not result in any changes for the frames.
*
* If only UDP frames of BE or BK access category needs to be upgraded
* without changing the access category of VO or VI UDP frames, refer to
* attribute QCA_WLAN_VENDOR_ATTR_CONFIG_UDP_QOS_UPGRADE_FOR_BE_BK.
*
* This attribute is not recommended to be used as it blindly forces all
* UDP packets to a higher access category which could impact the
* traffic pattern of all apps using UDP and can cause unknown behavior.
*/
QCA_WLAN_VENDOR_ATTR_CONFIG_UDP_QOS_UPGRADE = 72,
@ -2781,6 +2789,32 @@ enum qca_wlan_vendor_attr_config {
*/
QCA_WLAN_VENDOR_ATTR_CONFIG_DBAM = 83,
/* 8-bit unsigned value. This attribute takes the QoS/access category
* value represented by the enum qca_wlan_ac_type and expects the driver
* to upgrade the UDP frames of BE or BK access category to this access
* category. This attribute will not modify UDP frames of VO or VI
* access category. The value of QCA_WLAN_AC_ALL is invalid for this
* attribute.
*
* This will override the DSCP value configured in the frame with the
* intention to only upgrade the access category. That said, it is not
* intended to downgrade the access category for the frames.
* Set the value to QCA_WLAN_AC_BK if the QoS upgrade needs to be
* disabled, as BK is of the lowest priority and an upgrade to it does
* not result in any changes for the frames.
*
* This attribute behavior is similar to
* QCA_WLAN_VENDOR_ATTR_CONFIG_UDP_QOS_UPGRADE with the difference that
* only UDP frames of BE or BK access category are upgraded and not
* UDP frames of VI or VO access category.
*
* This attribute is not recommended to be used as it blindly forces all
* UDP packets of BE or BK access category to a higher access category
* which could impact the traffic pattern of all apps using UDP and can
* cause unknown behavior.
*/
QCA_WLAN_VENDOR_ATTR_CONFIG_UDP_QOS_UPGRADE_FOR_BE_BK = 84,
/* keep last */
QCA_WLAN_VENDOR_ATTR_CONFIG_AFTER_LAST,
QCA_WLAN_VENDOR_ATTR_CONFIG_MAX =