Home
last modified time | relevance | path

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

1234

/linux-6.12.1/tools/testing/selftests/drivers/net/microchip/
Dksz9477_qos.sh125 local dscp=$5;
215 -B ${H2_IPV4} -t icmp unreach,code=1,dscp=${dscp}"
218 -B ${H2_IPV6} -t icmp6 type=1,code=0,dscp=${dscp}"
389 local dscp
414 dscp=4
417 dcb app replace dev ${swp1} dscp-prio ${dscp}:${dscp_prio}
423 run_test_dscp "Apptrust, all disabled. DSCP-prio ${dscp}:${dscp_prio}" \
424 "${apptrust_order}" ${port_prio} ${dscp_prio} ${dscp}
431 run_test_dscp "Apptrust, PCP enabled. DSCP-prio ${dscp}:${dscp_prio}" \
432 "${apptrust_order}" ${port_prio} ${dscp_prio} ${dscp}
[all …]
/linux-6.12.1/drivers/net/wireless/ath/ath12k/
Dhal_tx.c27 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-6.12.1/net/netfilter/
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()
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()
/linux-6.12.1/drivers/net/dsa/microchip/
Dksz_dcb.c272 int ksz_port_get_dscp_prio(struct dsa_switch *ds, int port, u8 dscp) in ksz_port_get_dscp_prio() argument
293 dscp); in ksz_port_get_dscp_prio()
299 reg += dscp / per_reg; in ksz_port_get_dscp_prio()
304 shift = (dscp % per_reg) * (8 / per_reg); in ksz_port_get_dscp_prio()
320 static int ksz_set_global_dscp_entry(struct ksz_device *dev, u8 dscp, u8 ipm) in ksz_set_global_dscp_entry() argument
327 shift = (dscp % per_reg) * (8 / per_reg); in ksz_set_global_dscp_entry()
329 return ksz_rmw8(dev, reg + (dscp / per_reg), mask << shift, in ksz_set_global_dscp_entry()
344 int ret, dscp; in ksz_init_global_dscp_map() local
358 for (dscp = 0; dscp < DSCP_MAX; dscp++) { in ksz_init_global_dscp_map()
365 ipm = ietf_dscp_to_ieee8021q_tt(dscp); in ksz_init_global_dscp_map()
[all …]
Dksz_dcb.h13 int ksz_port_get_dscp_prio(struct dsa_switch *ds, int port, u8 dscp);
14 int ksz_port_add_dscp_prio(struct dsa_switch *ds, int port, u8 dscp, u8 prio);
15 int ksz_port_del_dscp_prio(struct dsa_switch *ds, int port, u8 dscp, u8 prio);
/linux-6.12.1/net/ipv4/
Dfib_rules.c39 dscp_t dscp; member
54 if (r->dst_len || r->src_len || r->dscp) in fib4_rule_matchall()
195 if (r->dscp_full && r->dscp != inet_dsfield_to_dscp(fl4->flowi4_tos)) in fib4_rule_match()
197 else if (!r->dscp_full && r->dscp && in fib4_rule_match()
198 !fib_dscp_masked_match(r->dscp, fl4)) in fib4_rule_match()
232 if (rule4->dscp) { in fib4_nl2rule_dscp()
237 rule4->dscp = inet_dsfield_to_dscp(nla_get_u8(nla) << 2); in fib4_nl2rule_dscp()
262 rule4->dscp = inet_dsfield_to_dscp(frh->tos); in fib4_rule_configure()
352 inet_dscp_to_dsfield(rule4->dscp) != frh->tos)) in fib4_rule_compare()
356 dscp_t dscp; in fib4_rule_compare() local
[all …]
Dfib_trie.c86 .dscp = fa->fa_dscp, in call_fib_entry_notifier()
103 .dscp = fa->fa_dscp, in call_fib_entry_notifiers()
984 dscp_t dscp, u32 prio, u32 tb_id, in fib_find_alias() argument
995 u8 __dscp = inet_dscp_to_dsfield(dscp); in fib_find_alias()
1036 fa->fa_dscp == fri->dscp && fa->fa_info == fri->fi && in fib_find_matching_alias()
1226 dscp_t dscp; in fib_table_insert() local
1243 dscp = cfg->fc_dscp; in fib_table_insert()
1245 fa = l ? fib_find_alias(&l->leaf, slen, dscp, fi->fib_priority, in fib_table_insert()
1257 if (fa && fa->fa_dscp == dscp && in fib_table_insert()
1277 (fa->fa_dscp != dscp)) in fib_table_insert()
[all …]
/linux-6.12.1/tools/testing/selftests/drivers/net/mlxsw/
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
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
/linux-6.12.1/include/net/
Dieee8021q.h36 #define SIMPLE_IETF_DSCP_TO_IEEE8021Q_TT(dscp) ((dscp >> 3) & 0x7) argument
40 int ietf_dscp_to_ieee8021q_tt(u8 dscp);
45 static inline int ietf_dscp_to_ieee8021q_tt(u8 dscp) in ietf_dscp_to_ieee8021q_tt() argument
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()
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()
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()
Dip_fib.h178 dscp_t dscp; member
219 dscp_t dscp; member
232 dscp_t dscp; member
439 static inline bool fib_dscp_masked_match(dscp_t dscp, const struct flowi4 *fl4) in fib_dscp_masked_match() argument
441 return dscp == inet_dsfield_to_dscp(RT_TOS(fl4->flowi4_tos)); in fib_dscp_masked_match()
/linux-6.12.1/drivers/net/ethernet/microchip/sparx5/
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()
/linux-6.12.1/net/ipv6/
Dfib6_rules.c29 dscp_t dscp; member
37 if (r->dst.plen || r->src.plen || r->dscp) in fib6_rule_matchall()
332 if (r->dscp && r->dscp != ip6_dscp(fl6->flowlabel)) in fib6_rule_match()
352 if (rule6->dscp) { in fib6_nl2rule_dscp()
357 rule6->dscp = inet_dsfield_to_dscp(nla_get_u8(nla) << 2); in fib6_nl2rule_dscp()
377 rule6->dscp = inet_dsfield_to_dscp(frh->tos); in fib6_rule_configure()
436 inet_dscp_to_dsfield(rule6->dscp) != frh->tos)) in fib6_rule_compare()
440 dscp_t dscp; in fib6_rule_compare() local
442 dscp = inet_dsfield_to_dscp(nla_get_u8(tb[FRA_DSCP]) << 2); in fib6_rule_compare()
443 if (!rule6->dscp_full || rule6->dscp != dscp) in fib6_rule_compare()
[all …]
/linux-6.12.1/net/core/
Dieee8021q_helpers.c169 int ietf_dscp_to_ieee8021q_tt(u8 dscp) in ietf_dscp_to_ieee8021q_tt() argument
171 switch (dscp) { in ietf_dscp_to_ieee8021q_tt()
240 return SIMPLE_IETF_DSCP_TO_IEEE8021Q_TT(dscp); in ietf_dscp_to_ieee8021q_tt()
/linux-6.12.1/tools/testing/selftests/net/forwarding/
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
/linux-6.12.1/tools/testing/selftests/net/
Dfib_rule_tests.sh340 ip rule help 2>&1 | grep -q dscp
347 $IP -6 rule add dscp 0x3f table $RTABLE_PEER
365 $IP -6 rule del dscp 0x3f table $RTABLE_PEER
579 ip rule help 2>&1 | grep -q dscp
586 $IP -4 rule add dscp 0x3f table $RTABLE_PEER
604 $IP -4 rule del dscp 0x3f table $RTABLE_PEER
/linux-6.12.1/net/sched/
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()
/linux-6.12.1/include/uapi/linux/netfilter/
Dxt_DSCP.h19 __u8 dscp; member
Dxt_dscp.h22 __u8 dscp; member
/linux-6.12.1/drivers/net/ethernet/microchip/lan966x/
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()
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()

1234