/Linux-v6.6/drivers/net/wireless/ath/ath12k/ |
D | hal_tx.c | 27 static inline u8 dscp2tid(u8 dscp) in dscp2tid() argument 29 return dscp >> 3; in dscp2tid() 73 u8 hw_map_val[HAL_DSCP_TID_TBL_SIZE], dscp, tid; in ath12k_hal_tx_set_dscp_tid_map() local 90 for (i = 0, dscp = 0; i < HAL_DSCP_TID_TBL_SIZE; i += 3) { in ath12k_hal_tx_set_dscp_tid_map() 91 tid = dscp2tid(dscp); in ath12k_hal_tx_set_dscp_tid_map() 93 dscp++; in ath12k_hal_tx_set_dscp_tid_map() 95 tid = dscp2tid(dscp); in ath12k_hal_tx_set_dscp_tid_map() 97 dscp++; in ath12k_hal_tx_set_dscp_tid_map() 99 tid = dscp2tid(dscp); in ath12k_hal_tx_set_dscp_tid_map() 101 dscp++; in ath12k_hal_tx_set_dscp_tid_map() [all …]
|
/Linux-v6.6/net/netfilter/ |
D | xt_DSCP.c | 33 u_int8_t dscp = ipv4_get_dsfield(ip_hdr(skb)) >> XT_DSCP_SHIFT; in dscp_tg() local 35 if (dscp != dinfo->dscp) { in dscp_tg() 40 dinfo->dscp << XT_DSCP_SHIFT); in dscp_tg() 50 u_int8_t dscp = ipv6_get_dsfield(ipv6_hdr(skb)) >> XT_DSCP_SHIFT; in dscp_tg6() local 52 if (dscp != dinfo->dscp) { in dscp_tg6() 57 dinfo->dscp << XT_DSCP_SHIFT); in dscp_tg6() 66 if (info->dscp > XT_DSCP_MAX) in dscp_tg_check()
|
D | xt_dscp.c | 28 u_int8_t dscp = ipv4_get_dsfield(ip_hdr(skb)) >> XT_DSCP_SHIFT; in dscp_mt() local 30 return (dscp == info->dscp) ^ !!info->invert; in dscp_mt() 37 u_int8_t dscp = ipv6_get_dsfield(ipv6_hdr(skb)) >> XT_DSCP_SHIFT; in dscp_mt6() local 39 return (dscp == info->dscp) ^ !!info->invert; in dscp_mt6() 46 if (info->dscp > XT_DSCP_MAX) in dscp_mt_check()
|
/Linux-v6.6/tools/testing/selftests/drivers/net/mlxsw/ |
D | qos_dscp_router.sh | 105 dcb app add dev $swp1 dscp-prio 0:0 1:1 2:2 3:3 4:4 5:5 6:6 7:7 106 dcb app add dev $swp2 dscp-prio 0:0 1:1 2:2 3:3 4:4 5:5 6:6 7:7 111 dcb app del dev $swp2 dscp-prio 0:0 1:1 2:2 3:3 4:4 5:5 6:6 7:7 112 dcb app del dev $swp1 dscp-prio 0:0 1:1 2:2 3:3 4:4 5:5 6:6 7:7 168 local dscp=$((prio << 2)) # ICMP Request ingress DSCP 179 ${PING} -Q $dscp ${sip:+-I $sip} $dip \ 206 log_test "DSCP rewrite: $dscp-(prio $prio2)-$dscp2-(prio $prio3)-$dscp3" 255 dcb app del dev $swp2 dscp-prio 0:0 1:1 2:2 3:3 4:4 5:5 6:6 7:7 259 dcb app add dev $swp2 dscp-prio 0:0 1:1 2:2 3:3 4:4 5:5 6:6 7:7
|
D | qos_dscp_bridge.sh | 75 dcb app add dev $swp1 dscp-prio 10:0 11:1 12:2 13:3 14:4 15:5 16:6 17:7 76 dcb app add dev $swp2 dscp-prio 20:0 21:1 22:2 23:3 24:4 25:5 26:6 27:7 81 dcb app del dev $swp2 dscp-prio 20:0 21:1 22:2 23:3 24:4 25:5 26:6 27:7 82 dcb app del dev $swp1 dscp-prio 10:0 11:1 12:2 13:3 14:4 15:5 16:6 17:7
|
/Linux-v6.6/drivers/net/ethernet/microchip/sparx5/ |
D | sparx5_dcb.c | 146 u16 dscp; in sparx5_dcb_app_update() local 149 dscp_map = &qos.dscp.map; in sparx5_dcb_app_update() 193 dscp = fls64(dscp_rewr_map.map[i]) - 1; in sparx5_dcb_app_update() 194 qos.dscp_rewr.map.map[i] = dscp; /* DP 0 */ in sparx5_dcb_app_update() 195 qos.dscp_rewr.map.map[i + 8] = dscp; /* DP 1 */ in sparx5_dcb_app_update() 196 qos.dscp_rewr.map.map[i + 16] = dscp; /* DP 2 */ in sparx5_dcb_app_update() 197 qos.dscp_rewr.map.map[i + 24] = dscp; /* DP 3 */ in sparx5_dcb_app_update() 213 qos.dscp.qos_enable = true; in sparx5_dcb_app_update() 214 qos.dscp.dp_enable = qos.dscp.qos_enable; in sparx5_dcb_app_update()
|
D | sparx5_port.c | 1157 sparx5_port_qos_dscp_set(port, &qos->dscp); in sparx5_port_qos_set() 1263 u16 dscp; in sparx5_port_qos_dscp_rewr_set() local 1280 dscp = qos->map.map[i]; in sparx5_port_qos_dscp_rewr_set() 1281 spx5_rmw(ANA_CL_QOS_MAP_CFG_DSCP_REWR_VAL_SET(dscp), in sparx5_port_qos_dscp_rewr_set() 1293 u8 *dscp = qos->map.map; in sparx5_port_qos_dscp_set() local 1308 spx5_rmw(ANA_CL_DSCP_CFG_DSCP_QOS_VAL_SET(*(dscp + i)) | in sparx5_port_qos_dscp_set()
|
/Linux-v6.6/include/net/ |
D | inet_ecn.h | 120 static inline void ipv4_copy_dscp(unsigned int dscp, struct iphdr *inner) in ipv4_copy_dscp() argument 122 dscp &= ~INET_ECN_MASK; in ipv4_copy_dscp() 123 ipv4_change_dsfield(inner, INET_ECN_MASK, dscp); in ipv4_copy_dscp() 166 static inline void ipv6_copy_dscp(unsigned int dscp, struct ipv6hdr *inner) in ipv6_copy_dscp() argument 168 dscp &= ~INET_ECN_MASK; in ipv6_copy_dscp() 169 ipv6_change_dsfield(inner, INET_ECN_MASK, dscp); in ipv6_copy_dscp()
|
D | inet_dscp.h | 47 static inline __u8 inet_dscp_to_dsfield(dscp_t dscp) in inet_dscp_to_dsfield() argument 49 return (__force __u8)dscp; in inet_dscp_to_dsfield()
|
D | erspan.h | 166 u8 dscp, cos; in tos_to_cos() local 168 dscp = tos >> 2; in tos_to_cos() 169 cos = dscp >> 3; in tos_to_cos()
|
/Linux-v6.6/net/ipv4/ |
D | fib_rules.c | 39 dscp_t dscp; member 53 if (r->dst_len || r->src_len || r->dscp) in fib4_rule_matchall() 189 if (r->dscp && r->dscp != inet_dsfield_to_dscp(fl4->flowi4_tos)) in fib4_rule_match() 239 rule4->dscp = inet_dsfield_to_dscp(frh->tos); in fib4_rule_configure() 323 if (frh->tos && inet_dscp_to_dsfield(rule4->dscp) != frh->tos) in fib4_rule_compare() 347 frh->tos = inet_dscp_to_dsfield(rule4->dscp); in fib4_rule_fill()
|
D | fib_trie.c | 85 .dscp = fa->fa_dscp, in call_fib_entry_notifier() 102 .dscp = fa->fa_dscp, in call_fib_entry_notifiers() 983 dscp_t dscp, u32 prio, u32 tb_id, in fib_find_alias() argument 994 u8 __dscp = inet_dscp_to_dsfield(dscp); in fib_find_alias() 1035 fa->fa_dscp == fri->dscp && fa->fa_info == fri->fi && in fib_find_matching_alias() 1225 dscp_t dscp; in fib_table_insert() local 1242 dscp = cfg->fc_dscp; in fib_table_insert() 1244 fa = l ? fib_find_alias(&l->leaf, slen, dscp, fi->fib_priority, in fib_table_insert() 1256 if (fa && fa->fa_dscp == dscp && in fib_table_insert() 1276 (fa->fa_dscp != dscp)) in fib_table_insert() [all …]
|
/Linux-v6.6/tools/testing/selftests/net/forwarding/ |
D | pedit_dsfield.sh | 191 local dscp 193 for dscp in 0 1 2 3 32 61 62 63; do 271 local dscp 273 for dscp in 0 1 2 3 32 61 62 63; do
|
/Linux-v6.6/net/ipv6/ |
D | fib6_rules.c | 29 dscp_t dscp; member 36 if (r->dst.plen || r->src.plen || r->dscp) in fib6_rule_matchall() 327 if (r->dscp && r->dscp != ip6_dscp(fl6->flowlabel)) in fib6_rule_match() 358 rule6->dscp = inet_dsfield_to_dscp(frh->tos); in fib6_rule_configure() 412 if (frh->tos && inet_dscp_to_dsfield(rule6->dscp) != frh->tos) in fib6_rule_compare() 433 frh->tos = inet_dscp_to_dsfield(rule6->dscp); in fib6_rule_fill()
|
/Linux-v6.6/net/sched/ |
D | act_ctinfo.c | 34 u8 dscp, newdscp; in tcf_ctinfo_dscp_set() local 41 dscp = ipv4_get_dsfield(ip_hdr(skb)) & ~INET_ECN_MASK; in tcf_ctinfo_dscp_set() 42 if (dscp != newdscp) { in tcf_ctinfo_dscp_set() 54 dscp = ipv6_get_dsfield(ipv6_hdr(skb)) & ~INET_ECN_MASK; in tcf_ctinfo_dscp_set() 55 if (dscp != newdscp) { in tcf_ctinfo_dscp_set()
|
/Linux-v6.6/include/uapi/linux/netfilter/ |
D | xt_DSCP.h | 19 __u8 dscp; member
|
D | xt_dscp.h | 22 __u8 dscp; member
|
/Linux-v6.6/drivers/net/ethernet/microchip/lan966x/ |
D | lan966x_dcb.c | 65 for (int i = 0; i < ARRAY_SIZE(qos.dscp.map); i++) { in lan966x_dcb_app_update() 68 qos.dscp.map[i] = dcb_getapp(dev, &app_itr); in lan966x_dcb_app_update() 106 qos.dscp.enable = true; in lan966x_dcb_app_update()
|
D | lan966x_port.c | 505 u16 dscp; in lan966x_port_qos_dscp_rewr_set() local 520 dscp = qos->map[i]; in lan966x_port_qos_dscp_rewr_set() 522 lan_rmw(ANA_DSCP_REWR_CFG_DSCP_QOS_REWR_VAL_SET(dscp), in lan966x_port_qos_dscp_rewr_set() 540 lan966x_port_qos_dscp_set(port, &qos->dscp); in lan966x_port_qos_set()
|
/Linux-v6.6/tools/testing/selftests/drivers/net/ocelot/ |
D | basic_qos.sh | 227 dcb app add dev ${swp1} dscp-prio CS4:4 229 dcb app del dev ${swp1} dscp-prio CS4:4
|
/Linux-v6.6/net/6lowpan/ |
D | iphc.c | 517 u8 dscp = tf[0] & 0x3f; in lowpan_iphc_tf_set_dscp() local 520 hdr->priority |= ((dscp & 0x3c) >> 2); in lowpan_iphc_tf_set_dscp() 522 hdr->flow_lbl[0] |= ((dscp & 0x03) << 6); in lowpan_iphc_tf_set_dscp() 993 u8 dscp, ecn; in lowpan_iphc_get_tc() local 998 dscp = (hdr->priority << 2) | ((hdr->flow_lbl[0] & 0xc0) >> 6); in lowpan_iphc_get_tc() 1002 pr_debug("ecn 0x%02x dscp 0x%02x\n", ecn >> 4, dscp); in lowpan_iphc_get_tc() 1004 return (ecn << 2) | dscp; in lowpan_iphc_get_tc()
|
/Linux-v6.6/drivers/net/ethernet/broadcom/bnxt/ |
D | bnxt_dcb.h | 40 u8 dscp; member
|
/Linux-v6.6/drivers/staging/rtl8723bs/os_dep/ |
D | os_intfs.c | 322 unsigned int dscp; in rtw_classify8021d() local 334 dscp = ip_hdr(skb)->tos & 0xfc; in rtw_classify8021d() 340 return dscp >> 5; in rtw_classify8021d() 361 unsigned int dscp; in rtw_recv_select_queue() local 373 dscp = piphdr->tos & 0xfc; in rtw_recv_select_queue() 375 priority = dscp >> 5; in rtw_recv_select_queue()
|
/Linux-v6.6/tools/testing/selftests/netfilter/ |
D | nft_flowtable.sh | 199 ip dscp cs3 counter name ip4dscp3 accept 200 ip dscp 0 counter name ip4dscp0 accept 410 ip dscp set cs3 427 ip dscp set cs3 442 ip netns exec $nsr1 nft -a insert rule inet filter forward ip dscp set cs3
|
/Linux-v6.6/net/sctp/ |
D | protocol.c | 431 if (t->dscp & SCTP_DSCP_SET_MASK) in sctp_v4_get_dst() 432 tos = t->dscp & SCTP_DSCP_VAL_MASK; in sctp_v4_get_dst() 1060 __u8 dscp = inet->tos; in sctp_v4_xmit() local 1066 if (t->dscp & SCTP_DSCP_SET_MASK) in sctp_v4_xmit() 1067 dscp = t->dscp & SCTP_DSCP_VAL_MASK; in sctp_v4_xmit() 1075 return __ip_queue_xmit(sk, skb, &t->fl, dscp); in sctp_v4_xmit() 1089 fl4->daddr, dscp, ip4_dst_hoplimit(dst), df, in sctp_v4_xmit()
|