Home
last modified time | relevance | path

Searched refs:tc_index (Results 1 - 25 of 70) sorted by relevance

123

/kernel/linux/linux-6.6/net/devlink/
H A Dsb.c654 struct devlink_sb *devlink_sb, u16 tc_index, in devlink_nl_sb_tc_pool_bind_fill()
666 tc_index, pool_type, in devlink_nl_sb_tc_pool_bind_fill()
681 if (nla_put_u16(msg, DEVLINK_ATTR_SB_TC_INDEX, tc_index)) in devlink_nl_sb_tc_pool_bind_fill()
696 tc_index, pool_type, in devlink_nl_sb_tc_pool_bind_fill()
724 u16 tc_index; in devlink_nl_sb_tc_pool_bind_get_doit() local
736 pool_type, &tc_index); in devlink_nl_sb_tc_pool_bind_get_doit()
748 devlink_sb, tc_index, pool_type, in devlink_nl_sb_tc_pool_bind_get_doit()
768 u16 tc_index; in __sb_tc_pool_bind_get_dumpit() local
772 for (tc_index = 0; in __sb_tc_pool_bind_get_dumpit()
773 tc_index < devlink_s in __sb_tc_pool_bind_get_dumpit()
652 devlink_nl_sb_tc_pool_bind_fill(struct sk_buff *msg, struct devlink *devlink, struct devlink_port *devlink_port, struct devlink_sb *devlink_sb, u16 tc_index, enum devlink_sb_pool_type pool_type, enum devlink_command cmd, u32 portid, u32 seq, int flags) devlink_nl_sb_tc_pool_bind_fill() argument
848 devlink_sb_tc_pool_bind_set(struct devlink_port *devlink_port, unsigned int sb_index, u16 tc_index, enum devlink_sb_pool_type pool_type, u16 pool_index, u32 threshold, struct netlink_ext_ack *extack) devlink_sb_tc_pool_bind_set() argument
871 u16 tc_index; devlink_nl_cmd_sb_tc_pool_bind_set_doit() local
[all...]
/kernel/linux/linux-6.6/drivers/net/ethernet/mscc/
H A Docelot_devlink.c676 unsigned int sb_index, u16 tc_index, in ocelot_sb_tc_pool_bind_get()
685 wm_index = BUF_Q_RSRV_I(port, tc_index); in ocelot_sb_tc_pool_bind_get()
687 wm_index = BUF_Q_RSRV_E(port, tc_index); in ocelot_sb_tc_pool_bind_get()
691 wm_index = REF_Q_RSRV_I(port, tc_index); in ocelot_sb_tc_pool_bind_get()
693 wm_index = REF_Q_RSRV_E(port, tc_index); in ocelot_sb_tc_pool_bind_get()
713 unsigned int sb_index, u16 tc_index, in ocelot_sb_tc_pool_bind_set()
732 wm_index = BUF_Q_RSRV_I(port, tc_index); in ocelot_sb_tc_pool_bind_set()
734 wm_index = BUF_Q_RSRV_E(port, tc_index); in ocelot_sb_tc_pool_bind_set()
738 wm_index = REF_Q_RSRV_I(port, tc_index); in ocelot_sb_tc_pool_bind_set()
740 wm_index = REF_Q_RSRV_E(port, tc_index); in ocelot_sb_tc_pool_bind_set()
675 ocelot_sb_tc_pool_bind_get(struct ocelot *ocelot, int port, unsigned int sb_index, u16 tc_index, enum devlink_sb_pool_type pool_type, u16 *p_pool_index, u32 *p_threshold) ocelot_sb_tc_pool_bind_get() argument
712 ocelot_sb_tc_pool_bind_set(struct ocelot *ocelot, int port, unsigned int sb_index, u16 tc_index, enum devlink_sb_pool_type pool_type, u16 pool_index, u32 threshold, struct netlink_ext_ack *extack) ocelot_sb_tc_pool_bind_set() argument
850 ocelot_sb_occ_tc_port_bind_get(struct ocelot *ocelot, int port, unsigned int sb_index, u16 tc_index, enum devlink_sb_pool_type pool_type, u32 *p_cur, u32 *p_max) ocelot_sb_occ_tc_port_bind_get() argument
[all...]
/kernel/linux/linux-5.10/net/sched/
H A Dact_meta_skbtcindex.c3 * net/sched/act_meta_tc_index.c IFE skb->tc_index metadata module
24 u32 ifetc_index = skb->tc_index; in skbtcindex_encode()
33 skb->tc_index = ntohs(ifetc_index); in skbtcindex_decode()
39 return ife_check_meta_u16(skb->tc_index, e); in skbtcindex_check()
45 .name = "tc_index",
46 .synopsis = "skb tc_index 16 bit metadata",
71 MODULE_DESCRIPTION("Inter-FE skb tc_index metadata module");
H A Dsch_dsmark.c220 skb->tc_index = ipv4_get_dsfield(ip_hdr(skb)) in dsmark_enqueue()
230 skb->tc_index = ipv6_get_dsfield(ipv6_hdr(skb)) in dsmark_enqueue()
234 skb->tc_index = 0; in dsmark_enqueue()
240 skb->tc_index = TC_H_MIN(skb->priority); in dsmark_enqueue()
260 skb->tc_index = TC_H_MIN(res.classid); in dsmark_enqueue()
265 skb->tc_index = p->default_index; in dsmark_enqueue()
303 index = skb->tc_index & (p->indices - 1); in dsmark_dequeue()
304 pr_debug("index %d->%d\n", skb->tc_index, index); in dsmark_dequeue()
/kernel/linux/linux-6.6/net/sched/
H A Dact_meta_skbtcindex.c3 * net/sched/act_meta_tc_index.c IFE skb->tc_index metadata module
24 u32 ifetc_index = skb->tc_index; in skbtcindex_encode()
33 skb->tc_index = ntohs(ifetc_index); in skbtcindex_decode()
39 return ife_check_meta_u16(skb->tc_index, e); in skbtcindex_check()
45 .name = "tc_index",
46 .synopsis = "skb tc_index 16 bit metadata",
71 MODULE_DESCRIPTION("Inter-FE skb tc_index metadata module");
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/prog_tests/
H A Dskb_ctx.c53 /* non-zero [len, tc_index] fields should be rejected*/ in test_skb_ctx()
60 skb.tc_index = 1; in test_skb_ctx()
62 ASSERT_NEQ(err, 0, "tc_index"); in test_skb_ctx()
63 skb.tc_index = 0; in test_skb_ctx()
/kernel/linux/linux-6.6/net/dsa/
H A Ddevlink.c81 unsigned int sb_index, u16 tc_index, in dsa_devlink_sb_tc_pool_bind_get()
92 tc_index, pool_type, in dsa_devlink_sb_tc_pool_bind_get()
98 unsigned int sb_index, u16 tc_index, in dsa_devlink_sb_tc_pool_bind_set()
110 tc_index, pool_type, in dsa_devlink_sb_tc_pool_bind_set()
154 unsigned int sb_index, u16 tc_index, in dsa_devlink_sb_occ_tc_port_bind_get()
165 sb_index, tc_index, in dsa_devlink_sb_occ_tc_port_bind_get()
80 dsa_devlink_sb_tc_pool_bind_get(struct devlink_port *dlp, unsigned int sb_index, u16 tc_index, enum devlink_sb_pool_type pool_type, u16 *p_pool_index, u32 *p_threshold) dsa_devlink_sb_tc_pool_bind_get() argument
97 dsa_devlink_sb_tc_pool_bind_set(struct devlink_port *dlp, unsigned int sb_index, u16 tc_index, enum devlink_sb_pool_type pool_type, u16 pool_index, u32 threshold, struct netlink_ext_ack *extack) dsa_devlink_sb_tc_pool_bind_set() argument
153 dsa_devlink_sb_occ_tc_port_bind_get(struct devlink_port *dlp, unsigned int sb_index, u16 tc_index, enum devlink_sb_pool_type pool_type, u32 *p_cur, u32 *p_max) dsa_devlink_sb_occ_tc_port_bind_get() argument
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/prog_tests/
H A Dskb_ctx.c52 /* non-zero [len, tc_index] fields should be rejected*/ in test_skb_ctx()
59 skb.tc_index = 1; in test_skb_ctx()
61 CHECK_ATTR(err == 0, "tc_index", "err %d errno %d\n", err, errno); in test_skb_ctx()
62 skb.tc_index = 0; in test_skb_ctx()
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/progs/
H A Dtest_global_func7.c10 skb->tc_index = 0; in foo()
H A Dtest_verif_scale3.c24 ctx->tc_index = jhash(ptr, nh_off, ctx->cb[0] + i++); \ in balancer_ingress()
H A Dtest_verif_scale1.c24 ctx->tc_index = jhash(ptr, nh_off, ctx->cb[0] + i++); \ in balancer_ingress()
H A Dtest_verif_scale2.c24 ctx->tc_index = jhash(ptr, nh_off, ctx->cb[0] + i++); \ in balancer_ingress()
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/progs/
H A Dtest_global_func7.c11 skb->tc_index = 0; in foo()
H A Dtest_verif_scale3.c24 ctx->tc_index = jhash(ptr, nh_off, ctx->cb[0] + i++); \ in balancer_ingress()
H A Dtest_verif_scale1.c24 ctx->tc_index = jhash(ptr, nh_off, ctx->cb[0] + i++); \ in balancer_ingress()
H A Dtest_verif_scale2.c24 ctx->tc_index = jhash(ptr, nh_off, ctx->cb[0] + i++); \ in balancer_ingress()
H A Dcore_kern.c89 ctx->tc_index = jhash(ptr, nh_off, ctx->cb[0] + i++); \ in balancer_ingress()
/kernel/linux/linux-5.10/drivers/scsi/aic94xx/
H A Daic94xx_hwi.h133 int tc_index; member
277 ascb->tc_index = -1; in asd_init_ascb()
327 asd_tc_index_release(&ascb->ha->seq, ascb->tc_index); in asd_ascb_free()
H A Daic94xx_tmf.c239 scb->clear_nexus.index = cpu_to_le16(tascb->tc_index); in asd_clear_nexus_index()
452 scb->abort_task.index = cpu_to_le16((u16)tascb->tc_index); in asd_abort_task()
690 index = ascb->tc_index; in asd_query_task()
/kernel/linux/linux-6.6/drivers/scsi/aic94xx/
H A Daic94xx_hwi.h133 int tc_index; member
277 ascb->tc_index = -1; in asd_init_ascb()
327 asd_tc_index_release(&ascb->ha->seq, ascb->tc_index); in asd_ascb_free()
H A Daic94xx_tmf.c239 scb->clear_nexus.index = cpu_to_le16(tascb->tc_index); in asd_clear_nexus_index()
452 scb->abort_task.index = cpu_to_le16((u16)tascb->tc_index); in asd_abort_task()
681 index = ascb->tc_index; in asd_query_task()
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlxsw/
H A Dcore.h314 unsigned int sb_index, u16 tc_index,
318 unsigned int sb_index, u16 tc_index,
330 unsigned int sb_index, u16 tc_index,
H A Dspectrum_buffers.c1454 unsigned int sb_index, u16 tc_index, in mlxsw_sp_sb_tc_pool_bind_get()
1462 u8 pg_buff = tc_index; in mlxsw_sp_sb_tc_pool_bind_get()
1474 unsigned int sb_index, u16 tc_index, in mlxsw_sp_sb_tc_pool_bind_set()
1484 u8 pg_buff = tc_index; in mlxsw_sp_sb_tc_pool_bind_set()
1500 cm = &mlxsw_sp->sb_vals->cms_ingress[tc_index]; in mlxsw_sp_sb_tc_pool_bind_set()
1502 cm = &mlxsw_sp->sb_vals->cms_egress[tc_index]; in mlxsw_sp_sb_tc_pool_bind_set()
1728 unsigned int sb_index, u16 tc_index, in mlxsw_sp_sb_occ_tc_port_bind_get()
1736 u8 pg_buff = tc_index; in mlxsw_sp_sb_occ_tc_port_bind_get()
1453 mlxsw_sp_sb_tc_pool_bind_get(struct mlxsw_core_port *mlxsw_core_port, unsigned int sb_index, u16 tc_index, enum devlink_sb_pool_type pool_type, u16 *p_pool_index, u32 *p_threshold) mlxsw_sp_sb_tc_pool_bind_get() argument
1473 mlxsw_sp_sb_tc_pool_bind_set(struct mlxsw_core_port *mlxsw_core_port, unsigned int sb_index, u16 tc_index, enum devlink_sb_pool_type pool_type, u16 pool_index, u32 threshold, struct netlink_ext_ack *extack) mlxsw_sp_sb_tc_pool_bind_set() argument
1727 mlxsw_sp_sb_occ_tc_port_bind_get(struct mlxsw_core_port *mlxsw_core_port, unsigned int sb_index, u16 tc_index, enum devlink_sb_pool_type pool_type, u32 *p_cur, u32 *p_max) mlxsw_sp_sb_occ_tc_port_bind_get() argument
/kernel/linux/linux-6.6/include/net/
H A Dtcx.h150 skb->tc_index = qdisc_skb_cb(skb)->tc_classid; in tcx_action_code()
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlxsw/
H A Dcore.h373 unsigned int sb_index, u16 tc_index,
377 unsigned int sb_index, u16 tc_index,
389 unsigned int sb_index, u16 tc_index,

Completed in 17 milliseconds

123