Home
last modified time | relevance | path

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

123

/linux-6.1.9/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.1.9/include/net/
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()
/linux-6.1.9/net/ipv4/
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()
Dfib_trie.c85 .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-6.1.9/tools/testing/selftests/net/forwarding/
Dpedit_dsfield.sh189 local dscp
191 for dscp in 0 1 2 3 32 61 62 63; do
269 local dscp
271 for dscp in 0 1 2 3 32 61 62 63; do
/linux-6.1.9/net/ipv6/
Dfib6_rules.c29 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-6.1.9/net/sched/
Dact_ctinfo.c33 u8 dscp, newdscp; in tcf_ctinfo_dscp_set() local
40 dscp = ipv4_get_dsfield(ip_hdr(skb)) & ~INET_ECN_MASK; in tcf_ctinfo_dscp_set()
41 if (dscp != newdscp) { in tcf_ctinfo_dscp_set()
53 dscp = ipv6_get_dsfield(ipv6_hdr(skb)) & ~INET_ECN_MASK; in tcf_ctinfo_dscp_set()
54 if (dscp != newdscp) { in tcf_ctinfo_dscp_set()
/linux-6.1.9/tools/testing/selftests/drivers/net/mlxsw/
Dqos_dscp_router.sh181 local dscp=$((prio << 2)) # ICMP Request ingress DSCP
192 ${PING} -Q $dscp ${sip:+-I $sip} $dip \
219 log_test "DSCP rewrite: $dscp-(prio $prio2)-$dscp2-(prio $prio3)-$dscp3"
/linux-6.1.9/include/uapi/linux/netfilter/
Dxt_DSCP.h19 __u8 dscp; member
Dxt_dscp.h22 __u8 dscp; member
/linux-6.1.9/drivers/staging/r8188eu/os_dep/
Dos_intfs.c258 unsigned int dscp; in rtw_classify8021d() local
270 dscp = ip_hdr(skb)->tos & 0xfc; in rtw_classify8021d()
276 return dscp >> 5; in rtw_classify8021d()
295 unsigned int dscp; in rtw_recv_select_queue() local
305 dscp = piphdr->tos & 0xfc; in rtw_recv_select_queue()
306 priority = dscp >> 5; in rtw_recv_select_queue()
/linux-6.1.9/tools/testing/selftests/drivers/net/ocelot/
Dbasic_qos.sh227 dcb app add dev ${swp1} dscp-prio CS4:4
229 dcb app del dev ${swp1} dscp-prio CS4:4
/linux-6.1.9/net/6lowpan/
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()
/linux-6.1.9/drivers/net/ethernet/broadcom/bnxt/
Dbnxt_dcb.h39 u8 dscp; member
/linux-6.1.9/drivers/staging/rtl8723bs/os_dep/
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()
/linux-6.1.9/net/sctp/
Dprotocol.c428 if (t->dscp & SCTP_DSCP_SET_MASK) in sctp_v4_get_dst()
429 tos = t->dscp & SCTP_DSCP_VAL_MASK; in sctp_v4_get_dst()
1055 __u8 dscp = inet->tos; in sctp_v4_xmit() local
1061 if (t->dscp & SCTP_DSCP_SET_MASK) in sctp_v4_xmit()
1062 dscp = t->dscp & SCTP_DSCP_VAL_MASK; in sctp_v4_xmit()
1070 return __ip_queue_xmit(sk, skb, &t->fl, dscp); in sctp_v4_xmit()
1084 fl4->daddr, dscp, ip4_dst_hoplimit(dst), df, in sctp_v4_xmit()
/linux-6.1.9/drivers/staging/rtl8192u/ieee80211/
Drtl819x_TS.h42 u8 dscp; member
/linux-6.1.9/drivers/net/netdevsim/
Dfib.c84 dscp_t dscp; member
289 fib4_rt->dscp = fen_info->dscp; in nsim_fib4_rt_create()
328 fri.dscp = fen_info->dscp; in nsim_fib4_rt_offload_failed_flag_set()
348 fri.dscp = fib4_rt->dscp; in nsim_fib4_rt_hw_flags_set()
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/steering/
Dmlx5_ifc_dr_ste_v1.h276 u8 dscp[0x6]; member
322 u8 dscp[0x6]; member
/linux-6.1.9/drivers/net/ethernet/mellanox/mlxsw/
Dcore_acl_flex_actions.c1499 MLXSW_ITEM32(afa, qos, dscp, 0x04, 0, 6);
1538 enum mlxsw_afa_qos_dscp_cmd dscp_cmd, u8 dscp) in mlxsw_afa_qos_dscp_pack() argument
1541 mlxsw_afa_qos_dscp_set(payload, dscp); in mlxsw_afa_qos_dscp_pack()
1554 bool set_dscp, u8 dscp, in __mlxsw_afa_block_append_qos_dsfield() argument
1571 dscp); in __mlxsw_afa_block_append_qos_dsfield()
1590 u8 dscp, struct netlink_ext_ack *extack) in mlxsw_afa_block_append_qos_dscp() argument
1593 true, dscp, in mlxsw_afa_block_append_qos_dscp()
/linux-6.1.9/drivers/net/ethernet/intel/ice/
Dice_dcb_nl.c782 int dscp, offset; in ice_dcbnl_setapp() local
784 dscp = (i * max_tc) + j; in ice_dcbnl_setapp()
787 new_cfg->dscp_map[dscp] = i; in ice_dcbnl_setapp()
790 new_cfg->dscp_map[dscp + offset] = i; in ice_dcbnl_setapp()
/linux-6.1.9/drivers/net/ethernet/mscc/
Docelot.c2434 int ocelot_port_get_dscp_prio(struct ocelot *ocelot, int port, u8 dscp) in ocelot_port_get_dscp_prio() argument
2437 int dscp_cfg = ocelot_read_rix(ocelot, ANA_DSCP_CFG, dscp); in ocelot_port_get_dscp_prio()
2444 dscp = ANA_DSCP_CFG_DSCP_TRANSLATE_VAL_X(dscp_cfg); in ocelot_port_get_dscp_prio()
2446 dscp_cfg = ocelot_read_rix(ocelot, ANA_DSCP_CFG, dscp); in ocelot_port_get_dscp_prio()
2459 int ocelot_port_add_dscp_prio(struct ocelot *ocelot, int port, u8 dscp, u8 prio) in ocelot_port_add_dscp_prio() argument
2480 ocelot_write_rix(ocelot, val, ANA_DSCP_CFG, dscp); in ocelot_port_add_dscp_prio()
2486 int ocelot_port_del_dscp_prio(struct ocelot *ocelot, int port, u8 dscp, u8 prio) in ocelot_port_del_dscp_prio() argument
2488 int dscp_cfg = ocelot_read_rix(ocelot, ANA_DSCP_CFG, dscp); in ocelot_port_del_dscp_prio()
2503 ocelot_write_rix(ocelot, 0, ANA_DSCP_CFG, dscp); in ocelot_port_del_dscp_prio()

123