Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Linux/drivers/net/ethernet/huawei/hinic3/   (Open Source Betriebssystem Version 6.17.9©)  Datei vom 24.10.2025 mit Größe 2 kB image not shown  

Quelle  hinic3_nic_dev.h   Sprache: C

 
/* SPDX-License-Identifier: GPL-2.0 */
/* Copyright (c) Huawei Technologies Co., Ltd. 2025. All rights reserved. */

#ifndef _HINIC3_NIC_DEV_H_
#define _HINIC3_NIC_DEV_H_

#include <linux/netdevice.h>

#include "hinic3_hw_cfg.h"
#include "hinic3_mgmt_interface.h"

enum hinic3_flags {
 HINIC3_RSS_ENABLE,
};

enum hinic3_rss_hash_type {
 HINIC3_RSS_HASH_ENGINE_TYPE_XOR  = 0,
 HINIC3_RSS_HASH_ENGINE_TYPE_TOEP = 1,
};

struct hinic3_rss_type {
 u8 tcp_ipv6_ext;
 u8 ipv6_ext;
 u8 tcp_ipv6;
 u8 ipv6;
 u8 tcp_ipv4;
 u8 ipv4;
 u8 udp_ipv6;
 u8 udp_ipv4;
};

struct hinic3_irq_cfg {
 struct net_device  *netdev;
 u16                msix_entry_idx;
 /* provided by OS */
 u32                irq_id;
 char               irq_name[IFNAMSIZ + 16];
 struct napi_struct napi;
 cpumask_t          affinity_mask;
 struct hinic3_txq  *txq;
 struct hinic3_rxq  *rxq;
};

struct hinic3_dyna_txrxq_params {
 u16                        num_qps;
 u32                        sq_depth;
 u32                        rq_depth;

 struct hinic3_dyna_txq_res *txqs_res;
 struct hinic3_dyna_rxq_res *rxqs_res;
 struct hinic3_irq_cfg      *irq_cfg;
};

struct hinic3_nic_dev {
 struct pci_dev                  *pdev;
 struct net_device               *netdev;
 struct hinic3_hwdev             *hwdev;
 struct hinic3_nic_io            *nic_io;

 u16                             max_qps;
 u16                             rx_buf_len;
 u32                             lro_replenish_thld;
 unsigned long                   flags;
 struct hinic3_nic_service_cap   nic_svc_cap;

 struct hinic3_dyna_txrxq_params q_params;
 struct hinic3_txq               *txqs;
 struct hinic3_rxq               *rxqs;

 u16                             num_qp_irq;
 struct msix_entry               *qps_msix_entries;

 bool                            link_status_up;
};

void hinic3_set_netdev_ops(struct net_device *netdev);

/* Temporary prototypes. Functions become static in later submission. */
void qp_add_napi(struct hinic3_irq_cfg *irq_cfg);
void qp_del_napi(struct hinic3_irq_cfg *irq_cfg);

#endif

Messung V0.5
C=99 H=91 G=94

¤ Dauer der Verarbeitung: 0.0 Sekunden  (vorverarbeitet)  ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

Beweissystem der NASA

Beweissystem Isabelle

NIST Cobol Testsuite

Cephes Mathematical Library

Wiener Entwicklungsmethode

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.