]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Vendor attribute to configure QoS/AC upgrade for UDP frames
authorAmarnath Hullur Subramanyam <quic_amarnath@quicinc.com>
Thu, 13 Oct 2022 05:28:01 +0000 (22:28 -0700)
committerJouni Malinen <j@w1.fi>
Mon, 17 Oct 2022 08:26:56 +0000 (11:26 +0300)
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>
src/common/qca-vendor.h

index 7980a56d5aef22f833e31e772ad4841cd1a771a1..abebb54bc9e11c7ea36e161c1a3ef7bac7f968f0 100644 (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 =