Loading
[PATCH OLK-5.10] RDMA/hns: Support configure and query the CNP DSCP through sysfs
driver inclusion category: feature bugzilla: https://gitee.com/openeuler/kernel/issues/IAL7SX ---------------------------------------------------------------------- Support configure and query the CNP DSCP through sysfs. example: $ echo 1 > /sys/class/infiniband/hns_2/ports/1/cc_param/cnp_pri_param/ enable $ cat /sys/class/infiniband/hns_2/ports/1/cc_param/cnp_pri_param/enable $ 1 $ echo 22 > /sys/class/infiniband/hns_2/ports/1/cc_param/cnp_pri_param/dscp $ cat /sys/class/infiniband/hns_2/ports/1/cc_param/cnp_pri_param/dscp $ 22 Restriction 1.Only HIP10 is supported. 2.Only the main PF is supported. 3.ROH only. 4.The DSCP value ranges from 0 to 63. The default value is 0. 5.The CNP enabling value has two enable values: 0 (select from the QPC) and 1 (select from this configuration). The default value is 0. 6.When the CNP DSCP configuration enabling value is 0, the configured DSCP value is invalid and the error code EPERM is returned. Signed-off-by:Dazhao Lao <laodazhao@huawei.com> Reviewed-by:
Ke Chen <chenke54@huawei.com>