Home
last modified time | relevance | path

Searched refs:dscp (Results 1 – 25 of 74) sorted by relevance

123

/openbmc/linux/drivers/net/wireless/ath/ath12k/
H A Dhal_tx.c29 return dscp >> 3; in dscp2tid()
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()
101 dscp++; in ath12k_hal_tx_set_dscp_tid_map()
105 dscp++; in ath12k_hal_tx_set_dscp_tid_map()
109 dscp++; in ath12k_hal_tx_set_dscp_tid_map()
113 dscp++; in ath12k_hal_tx_set_dscp_tid_map()
117 dscp++; in ath12k_hal_tx_set_dscp_tid_map()
[all …]
/openbmc/linux/net/netfilter/
H A Dxt_DSCP.c33 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()
H A Dxt_dscp.c28 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()
/openbmc/linux/tools/testing/selftests/drivers/net/mlxsw/
H A Dqos_dscp_router.sh105 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
H A Dqos_dscp_bridge.sh75 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
/openbmc/linux/drivers/net/ethernet/microchip/sparx5/
H A Dsparx5_dcb.c146 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()
/openbmc/linux/include/net/
H A Dinet_ecn.h120 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()
H A Dinet_dscp.h47 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()
H A Derspan.h166 u8 dscp, cos; in tos_to_cos() local
168 dscp = tos >> 2; in tos_to_cos()
169 cos = dscp >> 3; in tos_to_cos()
/openbmc/linux/net/ipv4/
H A Dfib_rules.c39 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()
H A Dfib_trie.c85 .dscp = fa->fa_dscp, in call_fib_entry_notifier()
102 .dscp = fa->fa_dscp, in call_fib_entry_notifiers()
1225 dscp_t dscp; in fib_table_insert() local
1242 dscp = cfg->fc_dscp; in fib_table_insert()
1276 (fa->fa_dscp != dscp)) in fib_table_insert()
1367 new_fa->fa_dscp = dscp; in fib_table_insert()
1631 res->dscp = fa->fa_dscp; in fib_table_lookup()
1721 dscp_t dscp; in fib_table_delete() local
1733 dscp = cfg->fc_dscp; in fib_table_delete()
1747 (fa->fa_dscp != dscp)) in fib_table_delete()
[all …]
/openbmc/linux/tools/testing/selftests/net/forwarding/
H A Dpedit_dsfield.sh191 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
/openbmc/linux/net/ipv6/
H A Dfib6_rules.c29 dscp_t dscp; member
36 if (r->dst.plen || r->src.plen || r->dscp) in fib6_rule_matchall()
331 if (r->dscp && r->dscp != ip6_dscp(fl6->flowlabel)) in fib6_rule_match()
362 rule6->dscp = inet_dsfield_to_dscp(frh->tos); in fib6_rule_configure()
416 if (frh->tos && inet_dscp_to_dsfield(rule6->dscp) != frh->tos) in fib6_rule_compare()
437 frh->tos = inet_dscp_to_dsfield(rule6->dscp); in fib6_rule_fill()
/openbmc/linux/net/sched/
H A Dact_ctinfo.c34 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()
/openbmc/linux/include/uapi/linux/netfilter/
H A Dxt_DSCP.h19 __u8 dscp; member
H A Dxt_dscp.h22 __u8 dscp; member
/openbmc/linux/drivers/net/ethernet/microchip/lan966x/
H A Dlan966x_dcb.c65 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()
H A Dlan966x_port.c506 u16 dscp; in lan966x_port_qos_dscp_rewr_set() local
521 dscp = qos->map[i]; in lan966x_port_qos_dscp_rewr_set()
523 lan_rmw(ANA_DSCP_REWR_CFG_DSCP_QOS_REWR_VAL_SET(dscp), in lan966x_port_qos_dscp_rewr_set()
541 lan966x_port_qos_dscp_set(port, &qos->dscp); in lan966x_port_qos_set()
/openbmc/linux/drivers/net/ethernet/broadcom/bnxt/
H A Dbnxt_dcb.h40 u8 dscp; member
/openbmc/linux/tools/testing/selftests/drivers/net/ocelot/
H A Dbasic_qos.sh227 dcb app add dev ${swp1} dscp-prio CS4:4
229 dcb app del dev ${swp1} dscp-prio CS4:4
/openbmc/linux/net/6lowpan/
H A Diphc.c517 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()
/openbmc/linux/drivers/staging/rtl8723bs/os_dep/
H A Dos_intfs.c322 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()
/openbmc/linux/tools/testing/selftests/netfilter/
H A Dnft_flowtable.sh199 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
/openbmc/linux/drivers/staging/rtl8192u/ieee80211/
H A Drtl819x_TS.h42 u8 dscp; member
/openbmc/linux/net/sctp/
H A Dprotocol.c431 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()

123