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

Quelle  bnxt_dim.c   Sprache: C

 
/* Broadcom NetXtreme-C/E network driver.
 *
 * Copyright (c) 2017-2018 Broadcom Limited
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation.
 */


#include <linux/dim.h>
#include <linux/bnxt/hsi.h>
#include "bnxt.h"

void bnxt_dim_work(struct work_struct *work)
{
 struct dim *dim = container_of(work, struct dim, work);
 struct bnxt_cp_ring_info *cpr = container_of(dim,
           struct bnxt_cp_ring_info,
           dim);
 struct bnxt_napi *bnapi = container_of(cpr,
            struct bnxt_napi,
            cp_ring);
 struct dim_cq_moder cur_moder =
  net_dim_get_rx_moderation(dim->mode, dim->profile_ix);

 cpr->rx_ring_coal.coal_ticks = cur_moder.usec;
 cpr->rx_ring_coal.coal_bufs = cur_moder.pkts;

 bnxt_hwrm_set_ring_coal(bnapi->bp, bnapi);
 dim->state = DIM_START_MEASURE;
}

Messung V0.5
C=97 H=100 G=98

¤ Dauer der Verarbeitung: 0.3 Sekunden  ¤

*© 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.