summaryrefslogtreecommitdiff
path: root/include/net
diff options
context:
space:
mode:
authorNaveen Mamindlapalli <naveenm@marvell.com>2023-05-13 14:21:36 +0530
committerDavid S. Miller <davem@davemloft.net>2023-05-15 09:31:07 +0100
commit12e7789ad5b476e945aba8edb1161c633cb7db31 (patch)
tree43787023adafbc1fe413fcca965a95745c4c1267 /include/net
parentb2cbac9b9b28730e9e53be20b6cdf979d3b9f27e (diff)
downloadlinux-next-12e7789ad5b476e945aba8edb1161c633cb7db31.tar.gz
sch_htb: Allow HTB priority parameter in offload mode
The current implementation of HTB offload returns the EINVAL error for unsupported parameters like prio and quantum. This patch removes the error returning checks for 'prio' parameter and populates its value to tc_htb_qopt_offload structure such that driver can use the same. Add prio parameter check in mlx5 driver, as mlx5 devices are not capable of supporting the prio parameter when htb offload is used. Report error if prio parameter is set to a non-default value. Signed-off-by: Naveen Mamindlapalli <naveenm@marvell.com> Co-developed-by: Rahul Rameshbabu <rrameshbabu@nvidia.com> Signed-off-by: Rahul Rameshbabu <rrameshbabu@nvidia.com> Signed-off-by: Hariprasad Kelam <hkelam@marvell.com> Signed-off-by: Sunil Kovvuri Goutham <sgoutham@marvell.com> Reviewed-by: Simon Horman <simon.horman@corigine.com> Reviewed-by: Jacob Keller <jacob.e.keller@intel.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net')
-rw-r--r--include/net/pkt_cls.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net/pkt_cls.h b/include/net/pkt_cls.h
index b3b5b0b62f16..a2ea45c7b53e 100644
--- a/include/net/pkt_cls.h
+++ b/include/net/pkt_cls.h
@@ -868,6 +868,7 @@ struct tc_htb_qopt_offload {
u16 qid;
u64 rate;
u64 ceil;
+ u8 prio;
};
#define TC_HTB_CLASSID_ROOT U32_MAX