instruction
stringlengths
82
202
input
stringclasses
1 value
output
stringlengths
73
23.9M
Linux kernel'inin 'drivers/net/ethernet/mellanox/mlx5/core/en/tc/act/drop' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB // Copyright (c) 2021, NVIDIA CORPORATION & AFFILIATES. All rights reserved. #include "act.h" #include "en/tc_priv.h" static int tc_act_parse_drop(struct mlx5e_tc_act_parse_state *parse_state, const struct flow_action_entry *act, struct mlx5e_priv *priv...
Linux kernel'inin 'drivers/net/ethernet/mellanox/mlx5/core/en/tc/act/tun' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB // Copyright (c) 2021, NVIDIA CORPORATION & AFFILIATES. All rights reserved. #include "act.h" #include "en/tc_tun_encap.h" #include "en/tc_priv.h" static bool tc_act_can_offload_tun_encap(struct mlx5e_tc_act_parse_state *parse_state, const struct flow_a...
Linux kernel'inin 'drivers/net/ethernet/mellanox/mlx5/core/en/tc/act/goto' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB // Copyright (c) 2021, NVIDIA CORPORATION & AFFILIATES. All rights reserved. #include "act.h" #include "en/tc_priv.h" #include "eswitch.h" static int validate_goto_chain(struct mlx5e_priv *priv, struct mlx5e_tc_flow *flow, struct mlx5_flow_attr *att...
Linux kernel'inin 'drivers/net/ethernet/mellanox/mlx5/core/en/tc/act/mpls' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB // Copyright (c) 2021, NVIDIA CORPORATION & AFFILIATES. All rights reserved. #include <net/bareudp.h> #include "act.h" #include "en/tc_priv.h" static bool tc_act_can_offload_mpls_push(struct mlx5e_tc_act_parse_state *parse_state, const struct flow_actio...
Linux kernel'inin 'drivers/net/ethernet/mellanox/mlx5/core/en/tc/act/redirect_ingress' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB // Copyright (c) 2021, NVIDIA CORPORATION & AFFILIATES. All rights reserved. #include "act.h" #include "en/tc_priv.h" static bool tc_act_can_offload_redirect_ingress(struct mlx5e_tc_act_parse_state *parse_state, const struct flow_action_entry *act, ...
Linux kernel'inin 'drivers/net/ethernet/mellanox/mlx5/core/en/tc/act/pedit' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB // Copyright (c) 2021, NVIDIA CORPORATION & AFFILIATES. All rights reserved. #include <linux/if_vlan.h> #include "act.h" #include "pedit.h" #include "en/tc_priv.h" #include "en/mod_hdr.h" static int pedit_header_offsets[] = { [FLOW_ACT_MANGLE_HDR_TYPE_ETH] = o...
Linux işletim sistemi çekirdeği için 'drivers/net/ethernet/mellanox/mlx5/core/en/tc/act/pedit' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB */ /* Copyright (c) 2021, NVIDIA CORPORATION & AFFILIATES. All rights reserved. */ #ifndef __MLX5_EN_TC_ACT_PEDIT_H__ #define __MLX5_EN_TC_ACT_PEDIT_H__ #include "en_tc.h" struct pedit_headers { struct ethhdr eth; struct vlan_hdr vlan; struct iphdr ip4...
Linux kernel'inin 'drivers/net/ethernet/mellanox/mlx5/core/en/tc/act/csum' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB // Copyright (c) 2021, NVIDIA CORPORATION & AFFILIATES. All rights reserved. #include <linux/tc_act/tc_csum.h> #include "act.h" #include "en/tc_priv.h" static bool csum_offload_supported(struct mlx5e_priv *priv, u32 action, u32 update_flags, ...
Linux kernel'inin 'drivers/net/ethernet/mellanox/mlx5/core/en/tc/act/act' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB // Copyright (c) 2021, NVIDIA CORPORATION & AFFILIATES. All rights reserved. #include "act.h" #include "en/tc/post_act.h" #include "en/tc_priv.h" #include "mlx5_core.h" static struct mlx5e_tc_act *tc_acts_fdb[NUM_FLOW_ACTIONS] = { [FLOW_ACTION_ACCEPT] = &mlx5e...
Linux kernel'inin 'drivers/net/ethernet/mellanox/mlx5/core/en/tc/act/mark' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB // Copyright (c) 2021, NVIDIA CORPORATION & AFFILIATES. All rights reserved. #include "act.h" #include "en_tc.h" static bool tc_act_can_offload_mark(struct mlx5e_tc_act_parse_state *parse_state, const struct flow_action_entry *act, int act_index, struc...
Linux kernel'inin 'drivers/net/ethernet/mellanox/mlx5/core/en/tc/act/vlan' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB // Copyright (c) 2021, NVIDIA CORPORATION & AFFILIATES. All rights reserved. #include <linux/if_vlan.h> #include "act.h" #include "vlan.h" #include "en/tc_priv.h" static int add_vlan_prio_tag_rewrite_action(struct mlx5e_priv *priv, struct mlx5e_tc_flow_par...
Linux kernel'inin 'drivers/net/ethernet/mellanox/mlx5/core/en/tc/act/mirred' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB // Copyright (c) 2021, NVIDIA CORPORATION & AFFILIATES. All rights reserved. #include <linux/if_macvlan.h> #include <linux/if_vlan.h> #include <net/bareudp.h> #include <net/bonding.h> #include "act.h" #include "vlan.h" #include "en/tc_tun_encap.h" #include "en/t...
Linux işletim sistemi çekirdeği için 'drivers/net/ethernet/mellanox/mlx5/core/en/tc/act/vlan' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB */ /* Copyright (c) 2021, NVIDIA CORPORATION & AFFILIATES. All rights reserved. */ #ifndef __MLX5_EN_TC_ACT_VLAN_H__ #define __MLX5_EN_TC_ACT_VLAN_H__ #include <net/flow_offload.h> #include "en/tc_priv.h" struct pedit_headers_action; int mlx5e_tc_act_vlan_add...
Linux kernel'inin 'drivers/net/ethernet/mellanox/mlx5/core/en/tc/act/trap' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB // Copyright (c) 2021, NVIDIA CORPORATION & AFFILIATES. All rights reserved. #include "act.h" #include "en/tc_priv.h" #include "eswitch.h" static int tc_act_parse_trap(struct mlx5e_tc_act_parse_state *parse_state, const struct flow_action_entry *act, st...
Linux kernel'inin 'drivers/net/ethernet/mellanox/mlx5/core/en/tc/act/vlan_mangle' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB // Copyright (c) 2021, NVIDIA CORPORATION & AFFILIATES. All rights reserved. #include <linux/if_vlan.h> #include "act.h" #include "vlan.h" #include "en/tc_priv.h" struct pedit_headers_action; int mlx5e_tc_act_vlan_add_rewrite_action(struct mlx5e_priv *priv, in...
Linux kernel'inin 'drivers/net/ethernet/mellanox/mlx5/core/en/tc/act/mirred_nic' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB // Copyright (c) 2021, NVIDIA CORPORATION & AFFILIATES. All rights reserved. #include "act.h" #include "en/tc_priv.h" static bool tc_act_can_offload_mirred_nic(struct mlx5e_tc_act_parse_state *parse_state, const struct flow_action_entry *act, ...
Linux işletim sistemi çekirdeği için 'drivers/net/ethernet/mellanox/mlx5/core/en/tc/act/sample' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB */ /* Copyright (c) 2021, NVIDIA CORPORATION & AFFILIATES. All rights reserved. */ #ifndef __MLX5_EN_TC_ACT_SAMPLE_H__ #define __MLX5_EN_TC_ACT_SAMPLE_H__ #include <net/flow_offload.h> #include "en/tc_priv.h" bool mlx5e_tc_act_sample_is_multi_table(struct mlx5...
Linux kernel'inin 'drivers/net/ethernet/mellanox/mlx5/core/en/tc/act/accept' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB // Copyright (c) 2021, NVIDIA CORPORATION & AFFILIATES. All rights reserved. #include "act.h" #include "en/tc_priv.h" static int tc_act_parse_accept(struct mlx5e_tc_act_parse_state *parse_state, const struct flow_action_entry *act, struct mlx5e_priv...
Linux kernel'inin 'drivers/net/ethernet/mellanox/mlx5/core/en/tc/act/ptype' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB // Copyright (c) 2021, NVIDIA CORPORATION & AFFILIATES. All rights reserved. #include "act.h" #include "en/tc_priv.h" static int tc_act_parse_ptype(struct mlx5e_tc_act_parse_state *parse_state, const struct flow_action_entry *act, struct mlx5e_priv *p...
Linux işletim sistemi çekirdeği için 'drivers/net/ethernet/mellanox/mlx5/core/en/tc/act/act' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB */ /* Copyright (c) 2021, NVIDIA CORPORATION & AFFILIATES. All rights reserved. */ #ifndef __MLX5_EN_TC_ACT_H__ #define __MLX5_EN_TC_ACT_H__ #include <net/tc_act/tc_pedit.h> #include <net/flow_offload.h> #include <linux/netlink.h> #include "eswitch.h" #include ...
Linux kernel'inin 'drivers/net/ethernet/mellanox/mlx5/core/en/tc/act/police' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB // Copyright (c) 2021, NVIDIA CORPORATION & AFFILIATES. All rights reserved. #include "act.h" #include "en/tc_priv.h" #include "fs_core.h" static bool police_act_validate_control(enum flow_action_id act_id, struct netlink_ext_ack *extack) { if (act_id != ...
Linux kernel'inin 'drivers/net/ethernet/mellanox/mlx5/core/steering/hws/bwc' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB /* Copyright (c) 2024 NVIDIA Corporation & Affiliates */ #include "internal.h" static u16 hws_bwc_gen_queue_idx(struct mlx5hws_context *ctx) { /* assign random queue */ return get_random_u8() % mlx5hws_bwc_queues(ctx); } static u16 hws_bwc_get_burst_th(struc...
Linux işletim sistemi çekirdeği için 'drivers/net/ethernet/mellanox/mlx5/core/steering/hws/fs_hws' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB */ /* Copyright (c) 2025 NVIDIA Corporation & Affiliates */ #ifndef _MLX5_FS_HWS_ #define _MLX5_FS_HWS_ #include "mlx5hws.h" #include "fs_hws_pools.h" struct mlx5_fs_hws_actions_pool { struct mlx5hws_action *tag_action; struct mlx5hws_action *pop_vlan_action...
Linux işletim sistemi çekirdeği için 'drivers/net/ethernet/mellanox/mlx5/core/steering/hws/pool' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB */ /* Copyright (c) 2024 NVIDIA Corporation & Affiliates */ #ifndef MLX5HWS_POOL_H_ #define MLX5HWS_POOL_H_ #define MLX5HWS_POOL_STC_LOG_SZ 15 enum mlx5hws_pool_type { MLX5HWS_POOL_TYPE_STE, MLX5HWS_POOL_TYPE_STC, }; struct mlx5hws_pool_chunk { int offset;...
Linux işletim sistemi çekirdeği için 'drivers/net/ethernet/mellanox/mlx5/core/steering/hws/prm' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB */ /* Copyright (c) 2024 NVIDIA Corporation & Affiliates */ #ifndef MLX5_PRM_H_ #define MLX5_PRM_H_ #define MLX5_MAX_ACTIONS_DATA_IN_HEADER_MODIFY 512 /* Action type of header modification. */ enum { MLX5_MODIFICATION_TYPE_SET = 0x1, MLX5_MODIFICATION_TYPE_A...
Linux kernel'inin 'drivers/net/ethernet/mellanox/mlx5/core/steering/hws/action' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB /* Copyright (c) 2024 NVIDIA Corporation & Affiliates */ #include "internal.h" #define MLX5HWS_ACTION_METER_INIT_COLOR_OFFSET 1 /* Header removal size limited to 128B (64 words) */ #define MLX5HWS_ACTION_REMOVE_HEADER_MAX_SIZE 128 /* This is the longest suppo...
Linux işletim sistemi çekirdeği için 'drivers/net/ethernet/mellanox/mlx5/core/steering/hws/internal' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB */ /* Copyright (c) 2024 NVIDIA Corporation & Affiliates */ #ifndef HWS_INTERNAL_H_ #define HWS_INTERNAL_H_ #include <linux/mlx5/transobj.h> #include <linux/mlx5/vport.h> #include "fs_core.h" #include "wq.h" #include "lib/mlx5.h" #include "prm.h" #include "mlx...
Linux işletim sistemi çekirdeği için 'drivers/net/ethernet/mellanox/mlx5/core/steering/hws/matcher' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB */ /* Copyright (c) 2024 NVIDIA Corporation & Affiliates */ #ifndef HWS_MATCHER_H_ #define HWS_MATCHER_H_ /* We calculated that concatenating a collision table to the main table with * 3% of the main table rows will be enough resources for high insertion * su...
Linux kernel'inin 'drivers/net/ethernet/mellanox/mlx5/core/steering/hws/cmd' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB /* Copyright (c) 2024 NVIDIA Corporation & Affiliates */ #include "internal.h" static enum mlx5_ifc_flow_destination_type hws_cmd_dest_type_to_ifc_dest_type(enum mlx5_flow_destination_type type) { switch (type) { case MLX5_FLOW_DESTINATION_TYPE_VPORT: retur...
Linux kernel'inin 'drivers/net/ethernet/mellanox/mlx5/core/steering/hws/send' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB /* Copyright (c) 2024 NVIDIA Corporation & Affiliates */ #include "internal.h" #include "lib/clock.h" enum { CQ_OK = 0, CQ_EMPTY = -1, CQ_POLL_ERR = -2 }; struct mlx5hws_send_ring_dep_wqe * mlx5hws_send_add_new_dep_wqe(struct mlx5hws_send_engine *queue) { str...
Linux kernel'inin 'drivers/net/ethernet/mellanox/mlx5/core/steering/hws/action_ste_pool' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB /* Copyright (c) 2025 NVIDIA Corporation & Affiliates */ #include "internal.h" static const char * hws_pool_opt_to_str(enum mlx5hws_pool_optimize opt) { switch (opt) { case MLX5HWS_POOL_OPTIMIZE_NONE: return "rx-and-tx"; case MLX5HWS_POOL_OPTIMIZE_ORIG: ...
Linux kernel'inin 'drivers/net/ethernet/mellanox/mlx5/core/steering/hws/bwc_complex' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB /* Copyright (c) 2024 NVIDIA Corporation & Affiliates */ #include "internal.h" /* We chain submatchers by applying three rules on a subrule: modify header (to * set register C6), jump to table (to the next submatcher) and the mandatory * last rule. */ #defin...
Linux kernel'inin 'drivers/net/ethernet/mellanox/mlx5/core/steering/hws/pool' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB /* Copyright (c) 2024 NVIDIA Corporation & Affiliates */ #include "internal.h" #include "buddy.h" static void hws_pool_free_one_resource(struct mlx5hws_pool_resource *resource) { switch (resource->pool->type) { case MLX5HWS_POOL_TYPE_STE: mlx5hws_cmd_ste_de...
Linux işletim sistemi çekirdeği için 'drivers/net/ethernet/mellanox/mlx5/core/steering/hws/send' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB */ /* Copyright (c) 2024 NVIDIA Corporation & Affiliates */ #ifndef MLX5HWS_SEND_H_ #define MLX5HWS_SEND_H_ /* As a single operation requires at least two WQEBBS. * This means a maximum of 16 such operations per rule. */ #define MAX_WQES_PER_RULE 32 enum mlx...
Linux işletim sistemi çekirdeği için 'drivers/net/ethernet/mellanox/mlx5/core/steering/hws/context' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB */ /* Copyright (c) 2024 NVIDIA Corporation & Affiliates */ #ifndef HWS_CONTEXT_H_ #define HWS_CONTEXT_H_ enum mlx5hws_context_flags { MLX5HWS_CONTEXT_FLAG_HWS_SUPPORT = 1 << 0, MLX5HWS_CONTEXT_FLAG_PRIVATE_PD = 1 << 1, MLX5HWS_CONTEXT_FLAG_BWC_SUPPORT = 1 <...
Linux kernel'inin 'drivers/net/ethernet/mellanox/mlx5/core/steering/hws/fs_hws_pools' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB /* Copyright (c) 2025 NVIDIA Corporation & Affiliates */ #include <mlx5_core.h> #include "fs_hws_pools.h" #define MLX5_FS_HWS_DEFAULT_BULK_LEN 65536 #define MLX5_FS_HWS_POOL_MAX_THRESHOLD BIT(18) #define MLX5_FS_HWS_POOL_USED_BUFF_RATIO 10 static struct mlx5hw...
Linux kernel'inin 'drivers/net/ethernet/mellanox/mlx5/core/steering/hws/fs_hws' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB /* Copyright (c) 2025 NVIDIA Corporation & Affiliates */ #include <linux/mlx5/vport.h> #include <mlx5_core.h> #include <fs_core.h> #include <fs_cmd.h> #include "fs_hws_pools.h" #include "mlx5hws.h" #define MLX5HWS_CTX_MAX_NUM_OF_QUEUES 16 #define MLX5HWS_CTX_QU...
Linux kernel'inin 'drivers/net/ethernet/mellanox/mlx5/core/steering/hws/context' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB /* Copyright (c) 2024 NVIDIA CORPORATION. All rights reserved. */ #include "internal.h" bool mlx5hws_context_cap_dynamic_reparse(struct mlx5hws_context *ctx) { return IS_BIT_SET(ctx->caps->rtc_reparse_mode, MLX5_IFC_RTC_REPARSE_BY_STC); } u8 mlx5hws_context_g...
Linux işletim sistemi çekirdeği için 'drivers/net/ethernet/mellanox/mlx5/core/steering/hws/pat_arg' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB */ /* Copyright (c) 2024 NVIDIA Corporation & Affiliates */ #ifndef MLX5HWS_PAT_ARG_H_ #define MLX5HWS_PAT_ARG_H_ /* Modify-header arg pool */ enum mlx5hws_arg_chunk_size { MLX5HWS_ARG_CHUNK_SIZE_1, /* Keep MIN updated when changing */ MLX5HWS_ARG_CHUNK_SIZE...
Linux kernel'inin 'drivers/net/ethernet/mellanox/mlx5/core/steering/hws/vport' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB /* Copyright (c) 2024 NVIDIA Corporation & Affiliates */ #include "internal.h" int mlx5hws_vport_init_vports(struct mlx5hws_context *ctx) { int ret; if (!ctx->caps->eswitch_manager) return 0; xa_init(&ctx->vports.vport_gvmi_xa); /* Set gvmi for eswitch...
Linux işletim sistemi çekirdeği için 'drivers/net/ethernet/mellanox/mlx5/core/steering/hws/rule' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB */ /* Copyright (c) 2024 NVIDIA Corporation & Affiliates */ #ifndef MLX5HWS_RULE_H_ #define MLX5HWS_RULE_H_ enum { MLX5HWS_STE_CTRL_SZ = 20, MLX5HWS_ACTIONS_SZ = 12, MLX5HWS_MATCH_TAG_SZ = 32, MLX5HWS_JUMBO_TAG_SZ = 44, }; enum mlx5hws_rule_status { MLX5H...
Linux kernel'inin 'drivers/net/ethernet/mellanox/mlx5/core/steering/hws/rule' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB /* Copyright (c) 2024 NVIDIA Corporation & Affiliates */ #include "internal.h" void mlx5hws_rule_skip(struct mlx5hws_matcher *matcher, u32 flow_source, bool *skip_rx, bool *skip_tx) { /* By default FDB rules are added to both RX and TX */ *skip_rx = ...
Linux işletim sistemi çekirdeği için 'drivers/net/ethernet/mellanox/mlx5/core/steering/hws/action_ste_pool' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB */ /* Copyright (c) 2025 NVIDIA Corporation & Affiliates */ #ifndef ACTION_STE_POOL_H_ #define ACTION_STE_POOL_H_ #define MLX5HWS_ACTION_STE_TABLE_INIT_LOG_SZ 10 #define MLX5HWS_ACTION_STE_TABLE_STEP_LOG_SZ 1 #define MLX5HWS_ACTION_STE_TABLE_MAX_LOG_SZ 20 #def...
Linux kernel'inin 'drivers/net/ethernet/mellanox/mlx5/core/steering/hws/buddy' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB /* Copyright (c) 2024 NVIDIA Corporation & Affiliates */ #include "internal.h" #include "buddy.h" static int hws_buddy_init(struct mlx5hws_buddy_mem *buddy, u32 max_order) { int i, s, ret = 0; buddy->max_order = max_order; buddy->bitmap = kcalloc(buddy->ma...
Linux işletim sistemi çekirdeği için 'drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB */ /* Copyright (c) 2024 NVIDIA Corporation & Affiliates */ #ifndef MLX5HWS_H_ #define MLX5HWS_H_ struct mlx5hws_context; struct mlx5hws_table; struct mlx5hws_matcher; struct mlx5hws_rule; enum mlx5hws_table_type { MLX5HWS_TABLE_TYPE_FDB, MLX5HWS_TABLE_TYPE_...
Linux işletim sistemi çekirdeği için 'drivers/net/ethernet/mellanox/mlx5/core/steering/hws/table' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB */ /* Copyright (c) 2024 NVIDIA Corporation & Affiliates */ #ifndef MLX5HWS_TABLE_H_ #define MLX5HWS_TABLE_H_ struct mlx5hws_default_miss { /* My miss table */ struct mlx5hws_table *miss_tbl; struct list_head next; /* Tables missing to my table */ struct l...
Linux işletim sistemi çekirdeği için 'drivers/net/ethernet/mellanox/mlx5/core/steering/hws/fs_hws_pools' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB */ /* Copyright (c) 2025 NVIDIA Corporation & Affiliates */ #ifndef __MLX5_FS_HWS_POOLS_H__ #define __MLX5_FS_HWS_POOLS_H__ #include <linux/if_vlan.h> #include "fs_pool.h" #include "fs_core.h" #define MLX5_FS_INSERT_HDR_VLAN_ANCHOR MLX5_REFORMAT_CONTEXT_ANCHOR...
Linux işletim sistemi çekirdeği için 'drivers/net/ethernet/mellanox/mlx5/core/steering/hws/bwc' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB */ /* Copyright (c) 2024 NVIDIA Corporation & Affiliates */ #ifndef HWS_BWC_H_ #define HWS_BWC_H_ #define MLX5HWS_BWC_MATCHER_INIT_SIZE_LOG 1 #define MLX5HWS_BWC_MATCHER_SIZE_LOG_STEP 1 #define MLX5HWS_BWC_MATCHER_REHASH_PERCENT_TH 70 #define MLX5HWS_BWC_MATCHE...
Linux işletim sistemi çekirdeği için 'drivers/net/ethernet/mellanox/mlx5/core/steering/hws/vport' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB */ /* Copyright (c) 2024 NVIDIA Corporation & Affiliates */ #ifndef MLX5HWS_VPORT_H_ #define MLX5HWS_VPORT_H_ int mlx5hws_vport_init_vports(struct mlx5hws_context *ctx); void mlx5hws_vport_uninit_vports(struct mlx5hws_context *ctx); int mlx5hws_vport_get_gvmi...
Linux kernel'inin 'drivers/net/ethernet/mellanox/mlx5/core/steering/hws/debug' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB /* Copyright (c) 2024 NVIDIA Corporation & Affiliates */ #include <linux/debugfs.h> #include <linux/kernel.h> #include <linux/seq_file.h> #include <linux/version.h> #include "internal.h" static int hws_debug_dump_matcher_template_definer(struct seq_file *f, ...
Linux işletim sistemi çekirdeği için 'drivers/net/ethernet/mellanox/mlx5/core/steering/hws/buddy' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB */ /* Copyright (c) 2024 NVIDIA Corporation & Affiliates */ #ifndef HWS_BUDDY_H_ #define HWS_BUDDY_H_ struct mlx5hws_buddy_mem { unsigned long **bitmap; unsigned int *num_free; u32 max_order; }; struct mlx5hws_buddy_mem *mlx5hws_buddy_create(u32 max_order);...
Linux işletim sistemi çekirdeği için 'drivers/net/ethernet/mellanox/mlx5/core/steering/hws/cmd' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB */ /* Copyright (c) 2024 NVIDIA Corporation & Affiliates */ #ifndef HWS_CMD_H_ #define HWS_CMD_H_ #define WIRE_PORT 0xFFFF #define ACCESS_KEY_LEN 32 enum mlx5hws_cmd_ext_dest_flags { MLX5HWS_CMD_EXT_DEST_REFORMAT = 1 << 0, MLX5HWS_CMD_EXT_DEST_ESW_OWNER_VHC...
Linux işletim sistemi çekirdeği için 'drivers/net/ethernet/mellanox/mlx5/core/steering/hws/debug' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB */ /* Copyright (c) 2024 NVIDIA Corporation & Affiliates */ #ifndef HWS_DEBUG_H_ #define HWS_DEBUG_H_ #define HWS_DEBUG_FORMAT_VERSION "1.0" #define HWS_PTR_TO_ID(p) ((u64)(uintptr_t)(p) & 0xFFFFFFFFULL) enum mlx5hws_debug_res_type { MLX5HWS_DEBUG_RES_TYPE_C...
Linux kernel'inin 'drivers/net/ethernet/mellanox/mlx5/core/steering/hws/definer' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB /* Copyright (c) 2024 NVIDIA Corporation & Affiliates */ #include "internal.h" /* Pattern tunnel Layer bits. */ #define MLX5_FLOW_LAYER_VXLAN BIT(12) #define MLX5_FLOW_LAYER_VXLAN_GPE BIT(13) #define MLX5_FLOW_LAYER_GRE BIT(14) #define MLX5_FLOW_LA...
Linux işletim sistemi çekirdeği için 'drivers/net/ethernet/mellanox/mlx5/core/steering/hws/definer' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB */ /* Copyright (c) 2024 NVIDIA Corporation & Affiliates */ #ifndef HWS_DEFINER_H_ #define HWS_DEFINER_H_ /* Max available selecotrs */ #define DW_SELECTORS 9 #define BYTE_SELECTORS 8 /* Selectors based on match TAG */ #define DW_SELECTORS_MATCH 6 #define DW_S...
Linux kernel'inin 'drivers/net/ethernet/mellanox/mlx5/core/steering/hws/pat_arg' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB /* Copyright (c) 2024 NVIDIA Corporation & Affiliates */ #include "internal.h" enum mlx5hws_arg_chunk_size mlx5hws_arg_data_size_to_arg_log_size(u16 data_size) { /* Return the roundup of log2(data_size) */ if (data_size <= MLX5HWS_ARG_DATA_SIZE) return MLX5...
Linux işletim sistemi çekirdeği için 'drivers/net/ethernet/mellanox/mlx5/core/steering/hws/action' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB */ /* Copyright (c) 2024 NVIDIA Corporation & Affiliates */ #ifndef HWS_ACTION_H_ #define HWS_ACTION_H_ /* Max number of STEs needed for a rule (including match) */ #define MLX5HWS_ACTION_MAX_STE 20 /* Max number of internal subactions of ipv6_ext */ #define M...
Linux kernel'inin 'drivers/net/ethernet/mellanox/mlx5/core/steering/hws/table' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB /* Copyright (c) 2024 NVIDIA Corporation & Affiliates */ #include "internal.h" u32 mlx5hws_table_get_id(struct mlx5hws_table *tbl) { return tbl->ft_id; } static void hws_table_init_next_ft_attr(struct mlx5hws_table *tbl, u16 uid, struct mlx5hws_cmd_...
Linux işletim sistemi çekirdeği için 'drivers/net/ethernet/mellanox/mlx5/core/steering/hws/bwc_complex' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB */ /* Copyright (c) 2024 NVIDIA Corporation & Affiliates */ #ifndef HWS_BWC_COMPLEX_H_ #define HWS_BWC_COMPLEX_H_ #define MLX5HWS_BWC_COMPLEX_MAX_SUBMATCHERS 4 /* A matcher can't contain two rules with the same match tag, but it is possible * that two differe...
Linux kernel'inin 'drivers/net/ethernet/mellanox/mlx5/core/steering/hws/matcher' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB /* Copyright (c) 2024 NVIDIA Corporation & Affiliates */ #include "internal.h" static bool hws_matcher_requires_col_tbl(u8 log_num_of_rules) { /* Collision table concatenation is done only for large rule tables */ return log_num_of_rules > MLX5HWS_MATCHER_ASS...
Linux kernel'inin 'drivers/net/ethernet/mellanox/mlx5/core/steering/sws/dr_fw' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB /* Copyright (c) 2019 Mellanox Technologies. */ #include <linux/types.h> #include "dr_types.h" struct mlx5dr_fw_recalc_cs_ft * mlx5dr_fw_create_recalc_cs_ft(struct mlx5dr_domain *dmn, u16 vport_num) { struct mlx5dr_cmd_create_flow_table_attr ft_attr = {}; str...
Linux işletim sistemi çekirdeği için 'drivers/net/ethernet/mellanox/mlx5/core/steering/sws/dr_types' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB */ /* Copyright (c) 2019, Mellanox Technologies */ #ifndef _DR_TYPES_ #define _DR_TYPES_ #include <linux/mlx5/vport.h> #include <linux/refcount.h> #include "fs_core.h" #include "wq.h" #include "lib/mlx5.h" #include "mlx5_ifc_dr.h" #include "mlx5dr.h" #include "...
Linux kernel'inin 'drivers/net/ethernet/mellanox/mlx5/core/steering/sws/fs_dr' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB /* Copyright (c) 2019 Mellanox Technologies */ #include <linux/mlx5/vport.h> #include "mlx5_core.h" #include "fs_core.h" #include "fs_cmd.h" #include "mlx5dr.h" #include "fs_dr.h" #include "dr_types.h" static int mlx5_cmd_dr_update_root_ft(struct mlx5_flow_root...
Linux kernel'inin 'drivers/net/ethernet/mellanox/mlx5/core/steering/sws/dr_send' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB /* Copyright (c) 2019 Mellanox Technologies. */ #include <linux/smp.h> #include "dr_types.h" #define QUEUE_SIZE 128 #define SIGNAL_PER_DIV_QUEUE 16 #define TH_NUMS_TO_DRAIN 2 #define DR_SEND_INFO_POOL_SIZE 1000 enum { CQ_OK = 0, CQ_EMPTY = -1, CQ_POLL_ERR = -2...
Linux kernel'inin 'drivers/net/ethernet/mellanox/mlx5/core/steering/sws/dr_domain' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB /* Copyright (c) 2019 Mellanox Technologies. */ #include <linux/mlx5/eswitch.h> #include <linux/err.h> #include "dr_types.h" #define DR_DOMAIN_SW_STEERING_SUPPORTED(dmn, dmn_type) \ ((dmn)->info.caps.dmn_type##_sw_owner || \ ((dmn)->info.caps.dmn_type##_sw_o...
Linux işletim sistemi çekirdeği için 'drivers/net/ethernet/mellanox/mlx5/core/steering/sws/mlx5_ifc_dr' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB */ /* Copyright (c) 2019, Mellanox Technologies */ #ifndef MLX5_IFC_DR_H #define MLX5_IFC_DR_H enum { MLX5DR_STE_LU_TYPE_DONT_CARE = 0x0f, }; struct mlx5_ifc_ste_general_bits { u8 entry_type[0x4]; u8 reserved_at_4[0x4]; u8 entry_s...
Linux kernel'inin 'drivers/net/ethernet/mellanox/mlx5/core/steering/sws/dr_ste' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB /* Copyright (c) 2019 Mellanox Technologies. */ #include <linux/types.h> #include <linux/crc32.h> #include "dr_ste.h" struct dr_hw_ste_format { u8 ctrl[DR_STE_SIZE_CTRL]; u8 tag[DR_STE_SIZE_TAG]; u8 mask[DR_STE_SIZE_MASK]; }; static u32 dr_ste_crc32_calc(co...
Linux kernel'inin 'drivers/net/ethernet/mellanox/mlx5/core/steering/sws/dr_rule' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB /* Copyright (c) 2019 Mellanox Technologies. */ #include "dr_types.h" #if defined(CONFIG_FRAME_WARN) && (CONFIG_FRAME_WARN < 2048) /* don't try to optimize STE allocation if the stack is too constaraining */ #define DR_RULE_MAX_STES_OPTIMIZED 0 #else #define DR...
Linux kernel'inin 'drivers/net/ethernet/mellanox/mlx5/core/steering/sws/dr_ste_v1' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB /* Copyright (c) 2020 NVIDIA CORPORATION. All rights reserved. */ #include <linux/types.h> #include "mlx5_ifc_dr_ste_v1.h" #include "dr_ste_v1.h" static const struct mlx5dr_ste_action_modify_field dr_ste_v1_action_modify_field_arr[] = { [MLX5_ACTION_IN_FIELD_O...
Linux kernel'inin 'drivers/net/ethernet/mellanox/mlx5/core/steering/sws/dr_arg' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB // Copyright (c) 2023, NVIDIA CORPORATION & AFFILIATES. All rights reserved. #include "dr_types.h" #define DR_ICM_MODIFY_HDR_GRANULARITY_4K 12 /* modify-header arg pool */ enum dr_arg_chunk_size { DR_ARG_CHUNK_SIZE_1, DR_ARG_CHUNK_SIZE_MIN = DR_ARG_CHUNK_SIZ...
Linux işletim sistemi çekirdeği için 'drivers/net/ethernet/mellanox/mlx5/core/steering/sws/dr_dbg' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB */ /* Copyright (c) 2021, NVIDIA CORPORATION & AFFILIATES. All rights reserved. */ #define MLX5DR_DEBUG_DUMP_BUFF_SIZE (64 * 1024 * 1024) #define MLX5DR_DEBUG_DUMP_BUFF_LENGTH 512 enum { MLX5DR_DEBUG_DUMP_STATE_FREE, MLX5DR_DEBUG_DUMP_STATE_IN_PROGRESS, }; s...
Linux kernel'inin 'drivers/net/ethernet/mellanox/mlx5/core/steering/sws/dr_action' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB /* Copyright (c) 2019 Mellanox Technologies. */ #include "dr_types.h" #include "dr_ste.h" enum dr_action_domain { DR_ACTION_DOMAIN_NIC_INGRESS, DR_ACTION_DOMAIN_NIC_EGRESS, DR_ACTION_DOMAIN_FDB_INGRESS, DR_ACTION_DOMAIN_FDB_EGRESS, DR_ACTION_DOMAIN_MAX, };...
Linux kernel'inin 'drivers/net/ethernet/mellanox/mlx5/core/steering/sws/dr_cmd' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB /* Copyright (c) 2019 Mellanox Technologies. */ #include "dr_types.h" #include "eswitch.h" int mlx5dr_cmd_query_esw_vport_context(struct mlx5_core_dev *mdev, bool other_vport, u16 vport_number, u64 *icm_address_rx, u6...
Linux işletim sistemi çekirdeği için 'drivers/net/ethernet/mellanox/mlx5/core/steering/sws/dr_ste_v2' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB */ /* Copyright (c) 2024, NVIDIA CORPORATION & AFFILIATES. All rights reserved. */ #ifndef _DR_STE_V2_ #define _DR_STE_V2_ enum { DR_STE_V2_ACTION_MDFY_FLD_L2_OUT_0 = 0x00, DR_STE_V2_ACTION_MDFY_FLD_L2_OUT_1 = 0x01, DR_STE_V2_ACTION_MDFY_FLD_L2_OUT_2 = 0x...
Linux işletim sistemi çekirdeği için 'drivers/net/ethernet/mellanox/mlx5/core/steering/sws/dr_ste' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB */ /* Copyright (c) 2020 NVIDIA CORPORATION. All rights reserved. */ #ifndef _DR_STE_ #define _DR_STE_ #include "dr_types.h" #define STE_IPV4 0x1 #define STE_IPV6 0x2 #define STE_TCP 0x1 #define STE_UDP 0x2 #define STE_SPI 0x3 #define IP_VERSION_IPV4 0x4 #defi...
Linux kernel'inin 'drivers/net/ethernet/mellanox/mlx5/core/steering/sws/dr_ste_v2' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB /* Copyright (c) 2022, NVIDIA CORPORATION & AFFILIATES. All rights reserved. */ #include "dr_ste_v1.h" #include "dr_ste_v2.h" static struct mlx5dr_ste_ctx ste_ctx_v2 = { /* Builders */ .build_eth_l2_src_dst_init = &dr_ste_v1_build_eth_l2_src_dst_init, .build...
Linux işletim sistemi çekirdeği için 'drivers/net/ethernet/mellanox/mlx5/core/steering/sws/mlx5_ifc_dr_ste_v1' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB */ /* Copyright (c) 2020 NVIDIA CORPORATION. All rights reserved. */ #ifndef MLX5_IFC_DR_STE_V1_H #define MLX5_IFC_DR_STE_V1_H enum mlx5_ifc_ste_v1_modify_hdr_offset { MLX5_MODIFY_HEADER_V1_QW_OFFSET = 0x20, }; struct mlx5_ifc_ste_single_action_flow_tag_v1_bi...
Linux kernel'inin 'drivers/net/ethernet/mellanox/mlx5/core/steering/sws/dr_icm_pool' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB /* Copyright (c) 2019 Mellanox Technologies. */ #include "dr_types.h" #define DR_ICM_MODIFY_HDR_ALIGN_BASE 64 #define DR_ICM_POOL_STE_HOT_MEM_PERCENT 25 #define DR_ICM_POOL_MODIFY_HDR_PTRN_HOT_MEM_PERCENT 50 #define DR_ICM_POOL_MODIFY_ACTION_HOT_MEM_PERCENT 90 ...
Linux kernel'inin 'drivers/net/ethernet/mellanox/mlx5/core/steering/sws/dr_ste_v3' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB /* Copyright (c) 2024, NVIDIA CORPORATION & AFFILIATES. All rights reserved. */ #include "dr_ste_v1.h" #include "dr_ste_v2.h" static void dr_ste_v3_set_encap(u8 *hw_ste_p, u8 *d_action, u32 reformat_id, int size) { MLX5_SET(ste_double_action_insert_with_pt...
Linux kernel'inin 'drivers/net/ethernet/mellanox/mlx5/core/steering/sws/dr_matcher' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB /* Copyright (c) 2019 Mellanox Technologies. */ #include "dr_types.h" static bool dr_mask_is_smac_set(struct mlx5dr_match_spec *spec) { return (spec->smac_47_16 || spec->smac_15_0); } static bool dr_mask_is_dmac_set(struct mlx5dr_match_spec *spec) { return (...
Linux kernel'inin 'drivers/net/ethernet/mellanox/mlx5/core/steering/sws/dr_dbg' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB // Copyright (c) 2021, NVIDIA CORPORATION & AFFILIATES. All rights reserved. #include <linux/debugfs.h> #include <linux/hex.h> #include <linux/kernel.h> #include <linux/seq_file.h> #include <linux/version.h> #include "dr_types.h" #define DR_DBG_PTR_TO_ID(p) ((u...
Linux işletim sistemi çekirdeği için 'drivers/net/ethernet/mellanox/mlx5/core/steering/sws/fs_dr' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB * Copyright (c) 2019 Mellanox Technologies */ #ifndef _MLX5_FS_DR_ #define _MLX5_FS_DR_ #include "mlx5dr.h" struct mlx5_flow_root_namespace; struct fs_fte; struct mlx5_fs_dr_action { struct mlx5dr_action *dr_action; }; struct mlx5_fs_dr_rule { struct mlx...
Linux kernel'inin 'drivers/net/ethernet/mellanox/mlx5/core/steering/sws/dr_ste_v0' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB /* Copyright (c) 2020 NVIDIA CORPORATION. All rights reserved. */ #include <linux/types.h> #include <linux/crc32.h> #include "dr_ste.h" #define SVLAN_ETHERTYPE 0x88a8 #define DR_STE_ENABLE_FLOW_TAG BIT(31) enum dr_ste_v0_entry_type { DR_STE_TYPE_TX ...
Linux işletim sistemi çekirdeği için 'drivers/net/ethernet/mellanox/mlx5/core/steering/sws/dr_ste_v1' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB */ /* Copyright (c) 2022, NVIDIA CORPORATION & AFFILIATES. All rights reserved. */ #ifndef _DR_STE_V1_ #define _DR_STE_V1_ #include "dr_types.h" #include "dr_ste.h" #define DR_STE_DECAP_L3_ACTION_NUM 8 #define DR_STE_L2_HDR_MAX_SZ 20 #define DR_STE_CALC_DFNR_...
Linux kernel'inin 'drivers/net/ethernet/mellanox/mlx5/core/steering/sws/dr_table' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB /* Copyright (c) 2019 Mellanox Technologies. */ #include "dr_types.h" static int dr_table_set_miss_action_nic(struct mlx5dr_domain *dmn, struct mlx5dr_table_rx_tx *nic_tbl, struct mlx5dr_action *action) { struct mlx5dr_matcher_rx_tx *last_nic_matcher...
Linux işletim sistemi çekirdeği için 'drivers/net/ethernet/mellanox/mlx5/core/steering/sws/mlx5dr' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB */ /* Copyright (c) 2019, Mellanox Technologies */ #ifndef _MLX5DR_H_ #define _MLX5DR_H_ struct mlx5dr_domain; struct mlx5dr_table; struct mlx5dr_matcher; struct mlx5dr_rule; struct mlx5dr_action; enum mlx5dr_domain_type { MLX5DR_DOMAIN_TYPE_NIC_RX, MLX5DR_D...
Linux kernel'inin 'drivers/net/ethernet/mellanox/mlx5/core/steering/sws/dr_buddy' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB /* Copyright (c) 2004 Topspin Communications. All rights reserved. * Copyright (c) 2005 - 2008 Mellanox Technologies. All rights reserved. * Copyright (c) 2006 - 2007 Cisco Systems, Inc. All rights reserved. * Copyright (c) 2020 NVIDIA CORPORATION. All rights ...
Linux kernel'inin 'drivers/net/ethernet/mellanox/mlx5/core/steering/sws/dr_definer' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB // Copyright (c) 2022, NVIDIA CORPORATION & AFFILIATES. All rights reserved. #include "dr_types.h" #include "dr_ste.h" struct dr_definer_object { u32 id; u16 format_id; u8 dw_selectors[MLX5_IFC_DEFINER_DW_SELECTORS_NUM]; u8 byte_selectors[MLX5_IFC_DEFINER_B...
Linux kernel'inin 'drivers/net/ethernet/mellanox/mlx5/core/steering/sws/dr_ptrn' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB // Copyright (c) 2023, NVIDIA CORPORATION & AFFILIATES. All rights reserved. #include "dr_types.h" #include "mlx5_ifc_dr_ste_v1.h" enum dr_ptrn_modify_hdr_action_id { DR_PTRN_MODIFY_HDR_ACTION_ID_NOP = 0x00, DR_PTRN_MODIFY_HDR_ACTION_ID_COPY = 0x05, DR_PTRN_...
Linux işletim sistemi çekirdeği için 'drivers/net/ethernet/mellanox/mlx5/core/lag/mp' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB */ /* Copyright (c) 2019 Mellanox Technologies. */ #ifndef __MLX5_LAG_MP_H__ #define __MLX5_LAG_MP_H__ #include "lag.h" #include "mlx5_core.h" enum mlx5_lag_port_affinity { MLX5_LAG_NORMAL_AFFINITY, MLX5_LAG_P1_AFFINITY, MLX5_LAG_P2_AFFINITY, }; struct lag...
Linux kernel'inin 'drivers/net/ethernet/mellanox/mlx5/core/lag/port_sel' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB /* Copyright (c) 2021, NVIDIA CORPORATION & AFFILIATES. */ #include <linux/netdevice.h> #include "lag.h" enum { MLX5_LAG_FT_LEVEL_TTC, MLX5_LAG_FT_LEVEL_INNER_TTC, MLX5_LAG_FT_LEVEL_DEFINER, }; static struct mlx5_flow_group * mlx5_create_hash_flow_group(str...
Linux kernel'inin 'drivers/net/ethernet/mellanox/mlx5/core/lag/lag' alt sistemi için gerekli C kaynak kodunu implemente et.
```c /* * Copyright (c) 2016, Mellanox Technologies. All rights reserved. * * This software is available to you under a choice of one of two * licenses. You may choose to be licensed under the terms of the GNU * General Public License (GPL) Version 2, available from the file * COPYING in the main directory of th...
Linux işletim sistemi çekirdeği için 'drivers/net/ethernet/mellanox/mlx5/core/lag/port_sel' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB */ /* Copyright (c) 2021, NVIDIA CORPORATION & AFFILIATES. */ #ifndef __MLX5_LAG_FS_H__ #define __MLX5_LAG_FS_H__ #include "lib/fs_ttc.h" struct mlx5_lag_definer { struct mlx5_flow_definer *definer; struct mlx5_flow_table *ft; struct mlx5_flow_group *fg; /...
Linux kernel'inin 'drivers/net/ethernet/mellanox/mlx5/core/lag/mp' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB /* Copyright (c) 2019 Mellanox Technologies. */ #include <linux/netdevice.h> #include <net/nexthop.h> #include "lag/lag.h" #include "lag/mp.h" #include "mlx5_core.h" #include "eswitch.h" #include "lib/events.h" static bool __mlx5_lag_is_multipath(struct mlx5_la...
Linux işletim sistemi çekirdeği için 'drivers/net/ethernet/mellanox/mlx5/core/lag/lag' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB */ /* Copyright (c) 2019 Mellanox Technologies. */ #ifndef __MLX5_LAG_H__ #define __MLX5_LAG_H__ #include <linux/debugfs.h> #include <linux/errno.h> #include <linux/xarray.h> #include <linux/mlx5/fs.h> #define MLX5_LAG_MAX_HASH_BUCKETS 16 /* XArray mark for th...
Linux kernel'inin 'drivers/net/ethernet/mellanox/mlx5/core/lag/mpesw' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB /* Copyright (c) 2022, NVIDIA CORPORATION & AFFILIATES. All rights reserved. */ #include <linux/netdevice.h> #include <net/nexthop.h> #include "lag/lag.h" #include "eswitch.h" #include "esw/acl/ofld.h" #include "lib/events.h" static void mlx5_mpesw_metadata_cle...
Linux kernel'inin 'drivers/net/ethernet/mellanox/mlx5/core/lag/debugfs' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB /* Copyright (c) 2022, NVIDIA CORPORATION & AFFILIATES. All rights reserved. */ #include "lag.h" static char *get_str_mode_type(struct mlx5_lag *ldev) { switch (ldev->mode) { case MLX5_LAG_MODE_ROCE: return "roce"; case MLX5_LAG_MODE_SRIOV: return "switchdev...
Linux işletim sistemi çekirdeği için 'drivers/net/ethernet/mellanox/mlx5/core/lag/mpesw' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB */ /* Copyright (c) 2022, NVIDIA CORPORATION & AFFILIATES. All rights reserved. */ #ifndef __MLX5_LAG_MPESW_H__ #define __MLX5_LAG_MPESW_H__ #include "lag.h" #include "mlx5_core.h" struct lag_mpesw { struct work_struct mpesw_work; u32 pf_metadata[MLX5_MAX_PO...
Linux kernel'inin 'drivers/net/ethernet/mellanox/mlx5/core/lib/dm' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB // Copyright (c) 2019 Mellanox Technologies #include <linux/mlx5/driver.h> #include <linux/mlx5/device.h> #include "mlx5_core.h" #include "lib/mlx5.h" struct mlx5_dm { /* protect access to icm bitmask */ spinlock_t lock; unsigned long *steering_sw_icm_alloc...
Linux kernel'inin 'drivers/net/ethernet/mellanox/mlx5/core/lib/macsec_fs' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB /* Copyright (c) 2022, NVIDIA CORPORATION & AFFILIATES. All rights reserved. */ #include <net/macsec.h> #include <linux/mlx5/qp.h> #include <linux/if_vlan.h> #include <linux/mlx5/fs_helpers.h> #include <linux/mlx5/macsec.h> #include "fs_core.h" #include "lib/mac...