instruction
stringlengths
82
202
input
stringclasses
1 value
output
stringlengths
73
23.9M
Linux işletim sistemi çekirdeği için 'drivers/net/ethernet/mellanox/mlx5/core/en_accel/ktls_utils' 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, Mellanox Technologies inc. All rights reserved. */ #ifndef __MLX5E_KTLS_UTILS_H__ #define __MLX5E_KTLS_UTILS_H__ #include <net/tls.h> #include "en.h" enum { MLX5E_TLS_PROGRESS_PARAMS_AUTH_STATE_NO_OFFLOAD = 0, MLX5E_TLS_PROGRESS...
Linux kernel'inin 'drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec_fs' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB /* Copyright (c) 2020, Mellanox Technologies inc. All rights reserved. */ #include <linux/netdevice.h> #include "en.h" #include "en/fs.h" #include "eswitch.h" #include "ipsec.h" #include "fs_core.h" #include "lib/ipsec_fs_roce.h" #include "lib/fs_chains.h" #incl...
Linux kernel'inin 'drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec_stats' alt sistemi için gerekli C kaynak kodunu implemente et.
```c /* * Copyright (c) 2017 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 thi...
Linux işletim sistemi çekirdeği için 'drivers/net/ethernet/mellanox/mlx5/core/en_accel/macsec' 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_EN_ACCEL_MACSEC_H__ #define __MLX5_EN_ACCEL_MACSEC_H__ #ifdef CONFIG_MLX5_MACSEC #include <linux/mlx5/driver.h> #include <net/macsec.h> #include <net/dst_metadata...
Linux kernel'inin 'drivers/net/ethernet/mellanox/mlx5/core/ipoib/ipoib_vlan' alt sistemi için gerekli C kaynak kodunu implemente et.
```c /* * Copyright (c) 2017, 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 kernel'inin 'drivers/net/ethernet/mellanox/mlx5/core/ipoib/ipoib' alt sistemi için gerekli C kaynak kodunu implemente et.
```c /* * Copyright (c) 2017, 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 kernel'inin 'drivers/net/ethernet/mellanox/mlx5/core/ipoib/ethtool' alt sistemi için gerekli C kaynak kodunu implemente et.
```c /* * Copyright (c) 2017, 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/ipoib/ipoib' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* * Copyright (c) 2017, 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/esw/ipsec_fs' 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) 2023, NVIDIA CORPORATION & AFFILIATES. All rights reserved. */ #ifndef __MLX5_ESW_IPSEC_FS_H__ #define __MLX5_ESW_IPSEC_FS_H__ struct mlx5e_ipsec; struct mlx5e_ipsec_sa_entry; #ifdef CONFIG_MLX5_ESWITCH void mlx5_esw_ipsec_rx_create_attr_se...
Linux kernel'inin 'drivers/net/ethernet/mellanox/mlx5/core/esw/vporttbl' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB // Copyright (c) 2021 Mellanox Technologies. #include "eswitch.h" /* This struct is used as a key to the hash table and we need it to be packed * so hash result is consistent */ struct mlx5_vport_key { u32 chain; u16 prio; u16 vport; u16 vhca_id; struct ...
Linux işletim sistemi çekirdeği için 'drivers/net/ethernet/mellanox/mlx5/core/esw/bridge_priv' 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 Mellanox Technologies. */ #ifndef _MLX5_ESW_BRIDGE_PRIVATE_ #define _MLX5_ESW_BRIDGE_PRIVATE_ #include <linux/netdevice.h> #include <linux/if_bridge.h> #include <linux/if_vlan.h> #include <linux/if_ether.h> #include <linux/rhashtable.h>...
Linux işletim sistemi çekirdeği için 'drivers/net/ethernet/mellanox/mlx5/core/esw/bridge' 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 Mellanox Technologies. */ #ifndef __MLX5_ESW_BRIDGE_H__ #define __MLX5_ESW_BRIDGE_H__ #include <linux/notifier.h> #include <linux/list.h> #include <linux/workqueue.h> #include <linux/xarray.h> #include "eswitch.h" struct dentry; struct...
Linux kernel'inin 'drivers/net/ethernet/mellanox/mlx5/core/esw/bridge_debugfs' 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 <linux/debugfs.h> #include "bridge.h" #include "bridge_priv.h" static void *mlx5_esw_bridge_debugfs_start(struct seq_file *seq, loff_t *pos); static void *mlx5_esw_bridge_d...
Linux kernel'inin 'drivers/net/ethernet/mellanox/mlx5/core/esw/adj_vport' 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. All rights reserved. #include "fs_core.h" #include "eswitch.h" int mlx5_esw_adj_vport_modify(struct mlx5_core_dev *dev, u16 vport, bool connect) { u32 in[MLX5_ST_SZ_DW(modify_vport_state_in)] = {...
Linux kernel'inin 'drivers/net/ethernet/mellanox/mlx5/core/esw/qos' 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 "eswitch.h" #include "lib/mlx5.h" #include "esw/qos.h" #include "en/port.h" #define CREATE_TRACE_POINTS #include "diag/qos_tracepoint.h" /* Minimum supported BW share value...
Linux işletim sistemi çekirdeği için 'drivers/net/ethernet/mellanox/mlx5/core/esw/legacy' 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 Mellanox Technologies Ltd */ #ifndef __MLX5_ESW_LEGACY_H__ #define __MLX5_ESW_LEGACY_H__ #define MLX5_LEGACY_SRIOV_VPORT_EVENTS (MLX5_VPORT_UC_ADDR_CHANGE | \ MLX5_VPORT_MC_ADDR_CHANGE | \ MLX5_VPORT_PROMISC_CHANGE) struct ml...
Linux işletim sistemi çekirdeği için 'drivers/net/ethernet/mellanox/mlx5/core/esw/indir_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) 2021 Mellanox Technologies. */ #ifndef __MLX5_ESW_FT_H__ #define __MLX5_ESW_FT_H__ #ifdef CONFIG_MLX5_CLS_ACT struct mlx5_esw_indir_table * mlx5_esw_indir_table_init(void); void mlx5_esw_indir_table_destroy(struct mlx5_esw_indir_table *indi...
Linux kernel'inin 'drivers/net/ethernet/mellanox/mlx5/core/esw/devlink_port' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB /* Copyright (c) 2020 Mellanox Technologies Ltd. */ #include <linux/mlx5/driver.h> #include "eswitch.h" #include "devlink.h" static void mlx5_esw_get_port_parent_id(struct mlx5_core_dev *dev, struct netdev_phys_item_id *ppid) { mlx5_query_nic_sw_system_image_g...
Linux kernel'inin 'drivers/net/ethernet/mellanox/mlx5/core/esw/bridge' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB /* Copyright (c) 2021 Mellanox Technologies. */ #include <linux/build_bug.h> #include <linux/list.h> #include <linux/notifier.h> #include <net/netevent.h> #include <net/switchdev.h> #include "lib/devcom.h" #include "bridge.h" #include "eswitch.h" #include "bridg...
Linux işletim sistemi çekirdeği için 'drivers/net/ethernet/mellanox/mlx5/core/esw/qos' 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_ESW_QOS_H__ #define __MLX5_ESW_QOS_H__ #ifdef CONFIG_MLX5_ESWITCH int mlx5_esw_qos_init(struct mlx5_eswitch *esw); void mlx5_esw_qos_cleanup(struct mlx5_eswitch *...
Linux kernel'inin 'drivers/net/ethernet/mellanox/mlx5/core/esw/indir_table' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB /* Copyright (c) 2021 Mellanox Technologies. */ #include <linux/etherdevice.h> #include <linux/idr.h> #include <linux/mlx5/driver.h> #include <linux/mlx5/mlx5_ifc.h> #include <linux/mlx5/vport.h> #include <linux/mlx5/fs.h> #include "mlx5_core.h" #include "eswitc...
Linux kernel'inin 'drivers/net/ethernet/mellanox/mlx5/core/esw/bridge_mcast' 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 "lib/devcom.h" #include "bridge.h" #include "eswitch.h" #include "bridge_priv.h" #include "diag/bridge_tracepoint.h" static const struct rhashtable_params mdb_ht_params = {...
Linux kernel'inin 'drivers/net/ethernet/mellanox/mlx5/core/esw/ipsec' 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 <linux/mlx5/device.h> #include <linux/mlx5/vport.h> #include "mlx5_core.h" #include "eswitch.h" static int esw_ipsec_vf_query_generic(struct mlx5_core_dev *dev, u16 vport_num,...
Linux kernel'inin 'drivers/net/ethernet/mellanox/mlx5/core/esw/legacy' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB /* Copyright (c) 2021 Mellanox Technologies Ltd */ #include <linux/etherdevice.h> #include <linux/mlx5/driver.h> #include <linux/mlx5/mlx5_ifc.h> #include <linux/mlx5/vport.h> #include <linux/mlx5/fs.h> #include "esw/acl/lgcy.h" #include "esw/legacy.h" #include ...
Linux kernel'inin 'drivers/net/ethernet/mellanox/mlx5/core/esw/ipsec_fs' 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 "fs_core.h" #include "eswitch.h" #include "en_accel/ipsec.h" #include "esw/ipsec_fs.h" #if IS_ENABLED(CONFIG_MLX5_CLS_ACT) #include "en/tc_priv.h" #endif enum { MLX5_ESW_IPSE...
Linux kernel'inin 'drivers/net/ethernet/mellanox/mlx5/core/esw/acl/egress_ofld' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB /* Copyright (c) 2020 Mellanox Technologies Inc. All rights reserved. */ #include "mlx5_core.h" #include "eswitch.h" #include "helper.h" #include "ofld.h" static void esw_acl_egress_ofld_fwd2vport_destroy(struct mlx5_vport *vport) { if (!vport->egress.offloads...
Linux kernel'inin 'drivers/net/ethernet/mellanox/mlx5/core/esw/acl/egress_lgcy' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB /* Copyright (c) 2020 Mellanox Technologies Inc. All rights reserved. */ #include "mlx5_core.h" #include "eswitch.h" #include "helper.h" #include "lgcy.h" static void esw_acl_egress_lgcy_rules_destroy(struct mlx5_vport *vport) { esw_acl_egress_vlan_destroy(vpo...
Linux kernel'inin 'drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_ofld' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB /* Copyright (c) 2020 Mellanox Technologies Inc. All rights reserved. */ #include "mlx5_core.h" #include "eswitch.h" #include "helper.h" #include "ofld.h" static int acl_ingress_ofld_setup(struct mlx5_eswitch *esw, struct mlx5_vport *vport); static bool esw_ac...
Linux işletim sistemi çekirdeği için 'drivers/net/ethernet/mellanox/mlx5/core/esw/acl/helper' 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 Mellanox Technologies Inc. All rights reserved. */ #ifndef __MLX5_ESWITCH_ACL_HELPER_H__ #define __MLX5_ESWITCH_ACL_HELPER_H__ #include "eswitch.h" /* General acl helper functions */ struct mlx5_flow_table * esw_acl_table_create(struct...
Linux kernel'inin 'drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_lgcy' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB /* Copyright (c) 2020 Mellanox Technologies Inc. All rights reserved. */ #include "mlx5_core.h" #include "eswitch.h" #include "helper.h" #include "lgcy.h" static void esw_acl_ingress_lgcy_rules_destroy(struct mlx5_vport *vport) { if (vport->ingress.legacy.drop...
Linux işletim sistemi çekirdeği için 'drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ofld' 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 Mellanox Technologies Inc. All rights reserved. */ #ifndef __MLX5_ESWITCH_ACL_OFLD_H__ #define __MLX5_ESWITCH_ACL_OFLD_H__ #include "eswitch.h" #ifdef CONFIG_MLX5_ESWITCH /* Eswitch acl egress external APIs */ int esw_acl_egress_ofld_s...
Linux kernel'inin 'drivers/net/ethernet/mellanox/mlx5/core/esw/acl/helper' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB /* Copyright (c) 2020 Mellanox Technologies Inc. All rights reserved. */ #include "mlx5_core.h" #include "eswitch.h" #include "helper.h" struct mlx5_flow_table * esw_acl_table_create(struct mlx5_eswitch *esw, struct mlx5_vport *vport, int ns, int size) { struc...
Linux işletim sistemi çekirdeği için 'drivers/net/ethernet/mellanox/mlx5/core/esw/acl/lgcy' 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 Mellanox Technologies Inc. All rights reserved. */ #ifndef __MLX5_ESWITCH_ACL_LGCY_H__ #define __MLX5_ESWITCH_ACL_LGCY_H__ #include "eswitch.h" /* Eswitch acl egress external APIs */ int esw_acl_egress_lgcy_setup(struct mlx5_eswitch *e...
Linux işletim sistemi çekirdeği için 'drivers/net/ethernet/mellanox/mlx5/core/esw/diag/bridge_tracepoint' 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 Mellanox Technologies. */ #undef TRACE_SYSTEM #define TRACE_SYSTEM mlx5 #if !defined(_MLX5_ESW_BRIDGE_TRACEPOINT_) || defined(TRACE_HEADER_MULTI_READ) #define _MLX5_ESW_BRIDGE_TRACEPOINT_ #include <linux/tracepoint.h> #include "../brid...
Linux işletim sistemi çekirdeği için 'drivers/net/ethernet/mellanox/mlx5/core/esw/diag/qos_tracepoint' 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. */ #undef TRACE_SYSTEM #define TRACE_SYSTEM mlx5 #if !defined(_MLX5_ESW_TP_) || defined(TRACE_HEADER_MULTI_READ) #define _MLX5_ESW_TP_ #include <linux/tracepoint.h> #include "eswit...
Linux işletim sistemi çekirdeği için 'drivers/net/ethernet/mellanox/mlxsw/resources' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 */ /* Copyright (c) 2016-2018 Mellanox Technologies. All rights reserved */ #ifndef _MLXSW_RESOURCES_H #define _MLXSW_RESOURCES_H #include <linux/kernel.h> #include <linux/types.h> enum mlxsw_res_id { MLXSW_RES_ID_KVD_SIZE, MLXSW_RES_ID_KVD_SINGLE_MIN_SIZE, ...
Linux kernel'inin 'drivers/net/ethernet/mellanox/mlxsw/spectrum_mr' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 /* Copyright (c) 2017-2018 Mellanox Technologies. All rights reserved */ #include <linux/mutex.h> #include <linux/rhashtable.h> #include <net/ipv6.h> #include "spectrum_mr.h" #include "spectrum_router.h" struct mlxsw_sp_mr { const struct mlxsw_sp_mr_ops *mr_o...
Linux kernel'inin 'drivers/net/ethernet/mellanox/mlxsw/spectrum_nve_vxlan' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 /* Copyright (c) 2018 Mellanox Technologies. All rights reserved */ #include <linux/netdevice.h> #include <linux/netlink.h> #include <linux/random.h> #include <net/vxlan.h> #include "reg.h" #include "spectrum.h" #include "spectrum_nve.h" #define MLXSW_SP_NVE_V...
Linux kernel'inin 'drivers/net/ethernet/mellanox/mlxsw/spectrum_dcb' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 /* Copyright (c) 2016-2018 Mellanox Technologies. All rights reserved */ #include <linux/netdevice.h> #include <linux/string.h> #include <linux/bitops.h> #include <net/dcbnl.h> #include "spectrum.h" #include "reg.h" static u8 mlxsw_sp_dcbnl_getdcbx(struct net_...
Linux işletim sistemi çekirdeği için 'drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_flex_actions' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 */ /* Copyright (c) 2017-2018 Mellanox Technologies. All rights reserved */ #ifndef _MLXSW_SPECTRUM_ACL_FLEX_ACTIONS_H #define _MLXSW_SPECTRUM_ACL_FLEX_ACTIONS_H #include "spectrum.h" int mlxsw_sp_afa_init(struct mlxsw_sp *mlxsw_sp); void mlxsw_sp_afa_fini(str...
Linux kernel'inin 'drivers/net/ethernet/mellanox/mlxsw/spectrum2_acl_tcam' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 /* Copyright (c) 2018 Mellanox Technologies. All rights reserved */ #include <linux/kernel.h> #include "spectrum.h" #include "spectrum_acl_tcam.h" #include "core_acl_flex_actions.h" struct mlxsw_sp2_acl_tcam { struct mlxsw_sp_acl_atcam atcam; u32 kvdl_index;...
Linux işletim sistemi çekirdeği için 'drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 */ /* Copyright (c) 2018 Mellanox Technologies. All rights reserved */ #include <linux/netdevice.h> struct mlxsw_sp_bridge; struct mlxsw_sp_bridge_port; struct mlxsw_sp_bridge_port * mlxsw_sp_bridge_port_find(struct mlxsw_sp_bridge *bridge, struct net_dev...
Linux işletim sistemi çekirdeği için 'drivers/net/ethernet/mellanox/mlxsw/reg' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 */ /* Copyright (c) 2015-2018 Mellanox Technologies. All rights reserved */ #ifndef _MLXSW_REG_H #define _MLXSW_REG_H #include <linux/kernel.h> #include <linux/string.h> #include <linux/bitops.h> #include <linux/if_vlan.h> #include "item.h" #include "port.h" ...
Linux kernel'inin 'drivers/net/ethernet/mellanox/mlxsw/spectrum_buffers' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 /* Copyright (c) 2015-2018 Mellanox Technologies. All rights reserved */ #include <linux/kernel.h> #include <linux/types.h> #include <linux/dcbnl.h> #include <linux/if_ether.h> #include <linux/list.h> #include <linux/netlink.h> #include "spectrum.h" #include "c...
Linux kernel'inin 'drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 /* Copyright (c) 2015-2018 Mellanox Technologies. All rights reserved */ #include <linux/kernel.h> #include <linux/types.h> #include <linux/netdevice.h> #include <linux/etherdevice.h> #include <linux/slab.h> #include <linux/device.h> #include <linux/skbuff.h> #i...
Linux kernel'inin 'drivers/net/ethernet/mellanox/mlxsw/spectrum1_acl_tcam' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 /* Copyright (c) 2017-2018 Mellanox Technologies. All rights reserved */ #include <linux/kernel.h> #include <linux/slab.h> #include "reg.h" #include "core.h" #include "spectrum.h" #include "spectrum_acl_tcam.h" struct mlxsw_sp1_acl_tcam_region { struct mlxsw_...
Linux işletim sistemi çekirdeği için 'drivers/net/ethernet/mellanox/mlxsw/emad' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 */ /* Copyright (c) 2015-2018 Mellanox Technologies. All rights reserved */ #ifndef _MLXSW_EMAD_H #define _MLXSW_EMAD_H #define MLXSW_EMAD_MAX_FRAME_LEN 1518 /* Length in u8 */ #define MLXSW_EMAD_MAX_RETRY 5 /* EMAD Ethernet header */ #define MLXSW_EMAD_ETH_HD...
Linux kernel'inin 'drivers/net/ethernet/mellanox/mlxsw/spectrum_acl' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 /* Copyright (c) 2017-2018 Mellanox Technologies. All rights reserved */ #include <linux/kernel.h> #include <linux/slab.h> #include <linux/errno.h> #include <linux/list.h> #include <linux/string.h> #include <linux/rhashtable.h> #include <linux/netdevice.h> #incl...
Linux kernel'inin 'drivers/net/ethernet/mellanox/mlxsw/spectrum2_mr_tcam' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 /* Copyright (c) 2018 Mellanox Technologies. All rights reserved */ #include <linux/kernel.h> #include "core_acl_flex_actions.h" #include "spectrum.h" #include "spectrum_mr.h" struct mlxsw_sp2_mr_tcam { struct mlxsw_sp *mlxsw_sp; struct mlxsw_sp_flow_block *...
Linux işletim sistemi çekirdeği için 'drivers/net/ethernet/mellanox/mlxsw/i2c' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 */ /* Copyright (c) 2016-2018 Mellanox Technologies. All rights reserved */ #ifndef _MLXSW_I2C_H #define _MLXSW_I2C_H #include <linux/i2c.h> #if IS_ENABLED(CONFIG_MLXSW_I2C) int mlxsw_i2c_driver_register(struct i2c_driver *i2c_driver); void mlxsw_i2c_driver_u...
Linux kernel'inin 'drivers/net/ethernet/mellanox/mlxsw/core_linecards' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 /* Copyright (c) 2022 NVIDIA Corporation and Mellanox Technologies. All rights reserved */ #include <linux/kernel.h> #include <linux/module.h> #include <linux/err.h> #include <linux/types.h> #include <linux/string.h> #include <linux/workqueue.h> #include <linux/...
Linux kernel'inin 'drivers/net/ethernet/mellanox/mlxsw/spectrum_flow' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 /* Copyright (c) 2017-2020 Mellanox Technologies. All rights reserved */ #include <linux/kernel.h> #include <linux/slab.h> #include <linux/errno.h> #include <linux/list.h> #include <net/net_namespace.h> #include "spectrum.h" struct mlxsw_sp_flow_block * mlxsw_...
Linux kernel'inin 'drivers/net/ethernet/mellanox/mlxsw/spectrum_dpipe' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 /* Copyright (c) 2017-2018 Mellanox Technologies. All rights reserved */ #include <linux/kernel.h> #include <linux/mutex.h> #include <net/devlink.h> #include "spectrum.h" #include "spectrum_dpipe.h" #include "spectrum_router.h" enum mlxsw_sp_field_metadata_id ...
Linux kernel'inin 'drivers/net/ethernet/mellanox/mlxsw/spectrum_kvdl' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 /* Copyright (c) 2016-2018 Mellanox Technologies. All rights reserved */ #include <linux/kernel.h> #include <linux/mutex.h> #include <linux/slab.h> #include "spectrum.h" struct mlxsw_sp_kvdl { const struct mlxsw_sp_kvdl_ops *kvdl_ops; struct mutex kvdl_lock;...
Linux kernel'inin 'drivers/net/ethernet/mellanox/mlxsw/spectrum_ipip' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 /* Copyright (c) 2017-2018 Mellanox Technologies. All rights reserved */ #include <net/ip_tunnels.h> #include <net/ip6_tunnel.h> #include <net/inet_ecn.h> #include "spectrum_ipip.h" #include "reg.h" struct ip_tunnel_parm_kern mlxsw_sp_ipip_netdev_parms4(const ...
Linux işletim sistemi çekirdeği için 'drivers/net/ethernet/mellanox/mlxsw/trap' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 */ /* Copyright (c) 2015-2018 Mellanox Technologies. All rights reserved */ #ifndef _MLXSW_TRAP_H #define _MLXSW_TRAP_H enum { /* Ethernet EMAD and FDB miss */ MLXSW_TRAP_ID_FDB_MC = 0x01, MLXSW_TRAP_ID_ETHEMAD = 0x05, /* L2 traps for specific packet types ...
Linux kernel'inin 'drivers/net/ethernet/mellanox/mlxsw/spectrum_span' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 /* Copyright (c) 2018 Mellanox Technologies. All rights reserved */ #include <linux/if_bridge.h> #include <linux/list.h> #include <linux/mutex.h> #include <linux/refcount.h> #include <linux/rtnetlink.h> #include <linux/workqueue.h> #include <net/arp.h> #include ...
Linux işletim sistemi çekirdeği için 'drivers/net/ethernet/mellanox/mlxsw/txheader' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 */ /* Copyright (c) 2015-2018 Mellanox Technologies. All rights reserved */ #ifndef _MLXSW_TXHEADER_H #define _MLXSW_TXHEADER_H /* tx_hdr_version * Tx header version. * Must be set to 1. */ MLXSW_ITEM32(tx, hdr, version, 0x00, 28, 4); /* tx_hdr_ctl * Packe...
Linux işletim sistemi çekirdeği için 'drivers/net/ethernet/mellanox/mlxsw/spectrum_dpipe' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 */ /* Copyright (c) 2017-2018 Mellanox Technologies. All rights reserved */ #ifndef _MLXSW_PIPELINE_H_ #define _MLXSW_PIPELINE_H_ int mlxsw_sp_dpipe_init(struct mlxsw_sp *mlxsw_sp); void mlxsw_sp_dpipe_fini(struct mlxsw_sp *mlxsw_sp); #define MLXSW_SP_DPIPE_TA...
Linux kernel'inin 'drivers/net/ethernet/mellanox/mlxsw/spectrum_cnt' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 /* Copyright (c) 2017-2018 Mellanox Technologies. All rights reserved */ #include <linux/kernel.h> #include <linux/bitops.h> #include <linux/spinlock.h> #include "spectrum_cnt.h" struct mlxsw_sp_counter_sub_pool { u64 size; unsigned int base_index; enum mlx...
Linux işletim sistemi çekirdeği için 'drivers/net/ethernet/mellanox/mlxsw/core_env' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 */ /* Copyright (c) 2018 Mellanox Technologies. All rights reserved */ #ifndef _MLXSW_CORE_ENV_H #define _MLXSW_CORE_ENV_H #include <linux/ethtool.h> struct ethtool_modinfo; struct ethtool_eeprom; int mlxsw_env_module_temp_thresholds_get(struct mlxsw_core *co...
Linux işletim sistemi çekirdeği için 'drivers/net/ethernet/mellanox/mlxsw/port' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 */ /* Copyright (c) 2015-2018 Mellanox Technologies. All rights reserved */ #ifndef _MLXSW_PORT_H #define _MLXSW_PORT_H #include <linux/types.h> #define MLXSW_PORT_MAX_MTU (10 * 1024) #define MLXSW_PORT_ETH_FRAME_HDR (ETH_HLEN + VLAN_HLEN + ETH_FCS_LEN) #def...
Linux kernel'inin 'drivers/net/ethernet/mellanox/mlxsw/core_thermal' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 /* Copyright (c) 2016-2018 Mellanox Technologies. All rights reserved * Copyright (c) 2016 Ivan Vecera <cera@cera.cz> */ #include <linux/kernel.h> #include <linux/types.h> #include <linux/device.h> #include <linux/sysfs.h> #include <linux/thermal.h> #include <...
Linux kernel'inin 'drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_ctcam' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 /* Copyright (c) 2017-2018 Mellanox Technologies. All rights reserved */ #include <linux/kernel.h> #include <linux/errno.h> #include <linux/parman.h> #include "reg.h" #include "core.h" #include "spectrum.h" #include "spectrum_acl_tcam.h" static int mlxsw_sp_ac...
Linux işletim sistemi çekirdeği için 'drivers/net/ethernet/mellanox/mlxsw/spectrum_span' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 */ /* Copyright (c) 2018 Mellanox Technologies. All rights reserved */ #ifndef _MLXSW_SPECTRUM_SPAN_H #define _MLXSW_SPECTRUM_SPAN_H #include <linux/types.h> #include <linux/if_ether.h> #include <linux/refcount.h> #include "spectrum_router.h" struct mlxsw_sp;...
Linux kernel'inin 'drivers/net/ethernet/mellanox/mlxsw/spectrum_qdisc' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 /* Copyright (c) 2017-2018 Mellanox Technologies. All rights reserved */ #include <linux/kernel.h> #include <linux/errno.h> #include <linux/netdevice.h> #include <net/pkt_cls.h> #include <net/red.h> #include "spectrum.h" #include "spectrum_span.h" #include "reg...
Linux kernel'inin 'drivers/net/ethernet/mellanox/mlxsw/core_linecard_dev' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 /* Copyright (c) 2022 NVIDIA Corporation and Mellanox Technologies. All rights reserved */ #include <linux/kernel.h> #include <linux/module.h> #include <linux/err.h> #include <linux/types.h> #include <linux/auxiliary_bus.h> #include <linux/idr.h> #include <linux...
Linux kernel'inin 'drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_flex_keys' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 /* Copyright (c) 2017-2018 Mellanox Technologies. All rights reserved */ #include <linux/kernel.h> #include <linux/module.h> #include "spectrum.h" #include "item.h" #include "core_acl_flex_keys.h" static const struct mlxsw_afk_element_inst mlxsw_sp_afk_element_...
Linux işletim sistemi çekirdeği için 'drivers/net/ethernet/mellanox/mlxsw/spectrum_mr_tcam' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 */ /* Copyright (c) 2017-2018 Mellanox Technologies. All rights reserved */ #ifndef _MLXSW_SPECTRUM_MCROUTER_TCAM_H #define _MLXSW_SPECTRUM_MCROUTER_TCAM_H #include "spectrum.h" #include "spectrum_mr.h" extern const struct mlxsw_sp_mr_ops mlxsw_sp_mr_tcam_ops;...
Linux kernel'inin 'drivers/net/ethernet/mellanox/mlxsw/spectrum_mr_tcam' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 /* Copyright (c) 2017-2018 Mellanox Technologies. All rights reserved */ #include <linux/kernel.h> #include <linux/list.h> #include <linux/netdevice.h> #include "spectrum_mr_tcam.h" #include "reg.h" #include "spectrum.h" #include "core_acl_flex_actions.h" #incl...
Linux kernel'inin 'drivers/net/ethernet/mellanox/mlxsw/spectrum_port_range' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 /* Copyright (c) 2023, NVIDIA CORPORATION & AFFILIATES. All rights reserved. */ #include <linux/bits.h> #include <linux/netlink.h> #include <linux/refcount.h> #include <linux/xarray.h> #include <net/devlink.h> #include "spectrum.h" struct mlxsw_sp_port_range_r...
Linux işletim sistemi çekirdeği için 'drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_tcam' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 */ /* Copyright (c) 2017-2018 Mellanox Technologies. All rights reserved */ #ifndef _MLXSW_SPECTRUM_ACL_TCAM_H #define _MLXSW_SPECTRUM_ACL_TCAM_H #include <linux/list.h> #include <linux/parman.h> #include <linux/idr.h> #include "reg.h" #include "spectrum.h" #i...
Linux işletim sistemi çekirdeği için 'drivers/net/ethernet/mellanox/mlxsw/spectrum_ptp' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 */ /* Copyright (c) 2019 Mellanox Technologies. All rights reserved */ #ifndef _MLXSW_SPECTRUM_PTP_H #define _MLXSW_SPECTRUM_PTP_H #include <linux/device.h> #include <linux/rhashtable.h> struct mlxsw_sp; struct mlxsw_sp_port; struct mlxsw_sp_ptp_clock; #if IS...
Linux kernel'inin 'drivers/net/ethernet/mellanox/mlxsw/minimal' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 /* Copyright (c) 2016-2019 Mellanox Technologies. All rights reserved */ #include <linux/netdevice.h> #include <linux/etherdevice.h> #include <linux/ethtool.h> #include <linux/i2c.h> #include <linux/kernel.h> #include <linux/module.h> #include <linux/mod_devicet...
Linux kernel'inin 'drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_atcam' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 /* Copyright (c) 2018 Mellanox Technologies. All rights reserved */ #include <linux/kernel.h> #include <linux/err.h> #include <linux/errno.h> #include <linux/gfp.h> #include <linux/refcount.h> #include <linux/rhashtable.h> #define CREATE_TRACE_POINTS #include <t...
Linux işletim sistemi çekirdeği için 'drivers/net/ethernet/mellanox/mlxsw/core' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 */ /* Copyright (c) 2015-2018 Mellanox Technologies. All rights reserved */ #ifndef _MLXSW_CORE_H #define _MLXSW_CORE_H #include <linux/module.h> #include <linux/device.h> #include <linux/slab.h> #include <linux/gfp.h> #include <linux/types.h> #include <linux/s...
Linux kernel'inin 'drivers/net/ethernet/mellanox/mlxsw/spectrum_router' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 /* Copyright (c) 2016-2018 Mellanox Technologies. All rights reserved */ #include <linux/kernel.h> #include <linux/types.h> #include <linux/rhashtable.h> #include <linux/bitops.h> #include <linux/in6.h> #include <linux/notifier.h> #include <linux/inetdevice.h> #...
Linux işletim sistemi çekirdeği için 'drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_actions' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 */ /* Copyright (c) 2017-2018 Mellanox Technologies. All rights reserved */ #ifndef _MLXSW_CORE_ACL_FLEX_ACTIONS_H #define _MLXSW_CORE_ACL_FLEX_ACTIONS_H #include <linux/types.h> #include <linux/netdevice.h> #include <net/flow_offload.h> struct mlxsw_afa; stru...
Linux kernel'inin 'drivers/net/ethernet/mellanox/mlxsw/core' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 /* Copyright (c) 2015-2018 Mellanox Technologies. All rights reserved */ #include <linux/kernel.h> #include <linux/module.h> #include <linux/device.h> #include <linux/export.h> #include <linux/err.h> #include <linux/if_link.h> #include <linux/netdevice.h> #inclu...
Linux işletim sistemi çekirdeği için 'drivers/net/ethernet/mellanox/mlxsw/spectrum_ipip' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 */ /* Copyright (c) 2017-2018 Mellanox Technologies. All rights reserved */ #ifndef _MLXSW_IPIP_H_ #define _MLXSW_IPIP_H_ #include "spectrum_router.h" #include <net/ip_fib.h> #include <linux/if_tunnel.h> #include <net/ip6_tunnel.h> struct ip_tunnel_parm_kern m...
Linux işletim sistemi çekirdeği için 'drivers/net/ethernet/mellanox/mlxsw/spectrum_trap' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 */ /* Copyright (c) 2020 Mellanox Technologies. All rights reserved */ #ifndef _MLXSW_SPECTRUM_TRAP_H #define _MLXSW_SPECTRUM_TRAP_H #include <linux/list.h> #include <net/devlink.h> struct mlxsw_sp_trap { struct mlxsw_sp_trap_policer_item *policer_items_arr; ...
Linux işletim sistemi çekirdeği için 'drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_keys' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 */ /* Copyright (c) 2017-2018 Mellanox Technologies. All rights reserved */ #ifndef _MLXSW_CORE_ACL_FLEX_KEYS_H #define _MLXSW_CORE_ACL_FLEX_KEYS_H #include <linux/types.h> #include <linux/bitmap.h> #include "item.h" enum mlxsw_afk_element { MLXSW_AFK_ELEMEN...
Linux kernel'inin 'drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_keys' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 /* Copyright (c) 2017-2018 Mellanox Technologies. All rights reserved */ #include <linux/kernel.h> #include <linux/slab.h> #include <linux/list.h> #include <linux/errno.h> #include <linux/refcount.h> #include "item.h" #include "core_acl_flex_keys.h" /* For the...
Linux kernel'inin 'drivers/net/ethernet/mellanox/mlxsw/spectrum_matchall' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 /* Copyright (c) 2017-2020 Mellanox Technologies. All rights reserved */ #include <linux/kernel.h> #include <linux/errno.h> #include <linux/netdevice.h> #include <net/flow_offload.h> #include "spectrum.h" #include "spectrum_span.h" #include "reg.h" static stru...
Linux işletim sistemi çekirdeği için 'drivers/net/ethernet/mellanox/mlxsw/spectrum_nve' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 */ /* Copyright (c) 2018 Mellanox Technologies. All rights reserved */ #ifndef _MLXSW_SPECTRUM_NVE_H #define _MLXSW_SPECTRUM_NVE_H #include <linux/netlink.h> #include <linux/rhashtable.h> #include "spectrum.h" struct mlxsw_sp_nve_config { enum mlxsw_sp_nve_t...
Linux işletim sistemi çekirdeği için 'drivers/net/ethernet/mellanox/mlxsw/spectrum_mr' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 */ /* Copyright (c) 2017-2018 Mellanox Technologies. All rights reserved */ #ifndef _MLXSW_SPECTRUM_MCROUTER_H #define _MLXSW_SPECTRUM_MCROUTER_H #include <linux/mroute.h> #include <linux/mroute6.h> #include "spectrum_router.h" #include "spectrum.h" enum mlxsw...
Linux kernel'inin 'drivers/net/ethernet/mellanox/mlxsw/pci' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 /* Copyright (c) 2015-2018 Mellanox Technologies. All rights reserved */ #include <linux/kernel.h> #include <linux/module.h> #include <linux/export.h> #include <linux/err.h> #include <linux/device.h> #include <linux/pci.h> #include <linux/interrupt.h> #include <...
Linux kernel'inin 'drivers/net/ethernet/mellanox/mlxsw/spectrum2_kvdl' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 /* Copyright (c) 2018 Mellanox Technologies. All rights reserved */ #include <linux/kernel.h> #include <linux/bitops.h> #include "spectrum.h" #include "core.h" #include "reg.h" #include "resources.h" struct mlxsw_sp2_kvdl_part_info { u8 res_type; /* For each...
Linux işletim sistemi çekirdeği için 'drivers/net/ethernet/mellanox/mlxsw/spectrum_cnt' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 */ /* Copyright (c) 2017-2018 Mellanox Technologies. All rights reserved */ #ifndef _MLXSW_SPECTRUM_CNT_H #define _MLXSW_SPECTRUM_CNT_H #include "core.h" #include "spectrum.h" enum mlxsw_sp_counter_sub_pool_id { MLXSW_SP_COUNTER_SUB_POOL_RIF, MLXSW_SP_COUNTE...
Linux kernel'inin 'drivers/net/ethernet/mellanox/mlxsw/spectrum_ethtool' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 /* Copyright (c) 2020 Mellanox Technologies. All rights reserved */ #include "reg.h" #include "core.h" #include "spectrum.h" #include "core_env.h" static const char mlxsw_sp_driver_version[] = "1.0"; static void mlxsw_sp_port_get_drvinfo(struct net_device *dev...
Linux kernel'inin 'drivers/net/ethernet/mellanox/mlxsw/core_env' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 /* Copyright (c) 2018 Mellanox Technologies. All rights reserved */ #include <linux/kernel.h> #include <linux/err.h> #include <linux/ethtool.h> #include <linux/sfp.h> #include <linux/mutex.h> #include "core.h" #include "core_env.h" #include "item.h" #include "r...
Linux işletim sistemi çekirdeği için 'drivers/net/ethernet/mellanox/mlxsw/spectrum' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 */ /* Copyright (c) 2015-2018 Mellanox Technologies. All rights reserved */ #ifndef _MLXSW_SPECTRUM_H #define _MLXSW_SPECTRUM_H #include <linux/ethtool.h> #include <linux/types.h> #include <linux/netdevice.h> #include <linux/rhashtable.h> #include <linux/bitops...
Linux kernel'inin 'drivers/net/ethernet/mellanox/mlxsw/spectrum_trap' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 /* Copyright (c) 2019 Mellanox Technologies. All rights reserved */ #include <linux/bitops.h> #include <linux/kernel.h> #include <linux/netlink.h> #include <net/devlink.h> #include <uapi/linux/devlink.h> #include "core.h" #include "reg.h" #include "spectrum.h" ...
Linux kernel'inin 'drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_tcam' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 /* Copyright (c) 2017-2018 Mellanox Technologies. All rights reserved */ #include <linux/kernel.h> #include <linux/slab.h> #include <linux/errno.h> #include <linux/bitops.h> #include <linux/list.h> #include <linux/rhashtable.h> #include <linux/netdevice.h> #incl...
Linux işletim sistemi çekirdeği için 'drivers/net/ethernet/mellanox/mlxsw/cmd' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 */ /* Copyright (c) 2015-2018 Mellanox Technologies. All rights reserved */ #ifndef _MLXSW_CMD_H #define _MLXSW_CMD_H #include "item.h" #define MLXSW_CMD_MBOX_SIZE 4096 static inline char *mlxsw_cmd_mbox_alloc(void) { return kzalloc(MLXSW_CMD_MBOX_SIZE, GFP_...
Linux kernel'inin 'drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_bloom_filter' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 /* Copyright (c) 2018 Mellanox Technologies. All rights reserved */ #include <linux/errno.h> #include <linux/gfp.h> #include <linux/kernel.h> #include <linux/refcount.h> #include <linux/mutex.h> #include "spectrum.h" #include "spectrum_acl_tcam.h" struct mlxsw...
Linux kernel'inin 'drivers/net/ethernet/mellanox/mlxsw/spectrum1_kvdl' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 /* Copyright (c) 2018 Mellanox Technologies. All rights reserved */ #include <linux/kernel.h> #include <linux/bitops.h> #include "spectrum.h" #define MLXSW_SP1_KVDL_SINGLE_BASE 0 #define MLXSW_SP1_KVDL_SINGLE_SIZE 16384 #define MLXSW_SP1_KVDL_SINGLE_END \ (ML...
Linux işletim sistemi çekirdeği için 'drivers/net/ethernet/mellanox/mlxsw/pci_hw' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 */ /* Copyright (c) 2015-2018 Mellanox Technologies. All rights reserved */ #ifndef _MLXSW_PCI_HW_H #define _MLXSW_PCI_HW_H #include <linux/bitops.h> #include "item.h" #define MLXSW_PCI_BAR0_SIZE (1024 * 1024) /* 1MB */ #define MLXSW_PCI_PAGE_SIZE 4096 #de...
Linux kernel'inin 'drivers/net/ethernet/mellanox/mlxsw/spectrum1_mr_tcam' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 /* Copyright (c) 2017-2018 Mellanox Technologies. All rights reserved */ #include <linux/kernel.h> #include <linux/parman.h> #include "reg.h" #include "spectrum.h" #include "core_acl_flex_actions.h" #include "spectrum_mr.h" struct mlxsw_sp1_mr_tcam_region { s...
Linux kernel'inin 'drivers/net/ethernet/mellanox/mlxsw/spectrum_ptp' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 /* Copyright (c) 2019 Mellanox Technologies. All rights reserved */ #include <linux/ptp_clock_kernel.h> #include <linux/clocksource.h> #include <linux/timecounter.h> #include <linux/spinlock.h> #include <linux/device.h> #include <linux/rhashtable.h> #include <li...