linux/drivers/net/ethernet/broadcom/bnx2x/bnx2x_stats.c

/* bnx2x_stats.c: QLogic Everest network driver.
 *
 * Copyright (c) 2007-2013 Broadcom Corporation
 * Copyright (c) 2014 QLogic Corporation
 * All rights reserved
 *
 * 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.
 *
 * Maintained by: Ariel Elior <[email protected]>
 * Written by: Eliezer Tamir
 * Based on code from Michael Chan's bnx2 driver
 * UDP CSUM errata workaround by Arik Gendelman
 * Slowpath and fastpath rework by Vladislav Zolotarov
 * Statistics and Link management by Yitchak Gertner
 *
 */

#define pr_fmt(fmt)

#include "bnx2x_stats.h"
#include "bnx2x_cmn.h"
#include "bnx2x_sriov.h"

/* Statistics */

/*
 * General service functions
 */

static inline long bnx2x_hilo(u32 *hiref)
{}

static inline u16 bnx2x_get_port_stats_dma_len(struct bnx2x *bp)
{}

/*
 * Init service functions
 */

static void bnx2x_dp_stats(struct bnx2x *bp)
{}

/* Post the next statistics ramrod. Protect it with the spin in
 * order to ensure the strict order between statistics ramrods
 * (each ramrod has a sequence number passed in a
 * bp->fw_stats_req->hdr.drv_stats_counter and ramrods must be
 * sent in order).
 */
static void bnx2x_storm_stats_post(struct bnx2x *bp)
{}

static void bnx2x_hw_stats_post(struct bnx2x *bp)
{}

static void bnx2x_stats_comp(struct bnx2x *bp)
{}

/*
 * Statistics service functions
 */

/* should be called under stats_sema */
static void bnx2x_stats_pmf_update(struct bnx2x *bp)
{}

static void bnx2x_port_stats_init(struct bnx2x *bp)
{}

static void bnx2x_func_stats_init(struct bnx2x *bp)
{}

/* should be called under stats_sema */
static void bnx2x_stats_start(struct bnx2x *bp)
{}

static void bnx2x_stats_pmf_start(struct bnx2x *bp)
{}

static void bnx2x_stats_restart(struct bnx2x *bp)
{}

static void bnx2x_bmac_stats_update(struct bnx2x *bp)
{}

static void bnx2x_mstat_stats_update(struct bnx2x *bp)
{}

static void bnx2x_emac_stats_update(struct bnx2x *bp)
{}

static int bnx2x_hw_stats_update(struct bnx2x *bp)
{}

static int bnx2x_storm_stats_validate_counters(struct bnx2x *bp)
{}

static int bnx2x_storm_stats_update(struct bnx2x *bp)
{}

static void bnx2x_net_stats_update(struct bnx2x *bp)
{}

static void bnx2x_drv_stats_update(struct bnx2x *bp)
{}

static bool bnx2x_edebug_stats_stopped(struct bnx2x *bp)
{}

static void bnx2x_stats_update(struct bnx2x *bp)
{}

static void bnx2x_port_stats_stop(struct bnx2x *bp)
{}

static void bnx2x_stats_stop(struct bnx2x *bp)
{}

static void bnx2x_stats_do_nothing(struct bnx2x *bp)
{}

static const struct {} bnx2x_stats_stm[STATS_STATE_MAX][STATS_EVENT_MAX] =;

void bnx2x_stats_handle(struct bnx2x *bp, enum bnx2x_stats_event event)
{}

static void bnx2x_port_stats_base_init(struct bnx2x *bp)
{}

/* This function will prepare the statistics ramrod data the way
 * we will only have to increment the statistics counter and
 * send the ramrod each time we have to.
 */
static void bnx2x_prep_fw_stats_req(struct bnx2x *bp)
{}

void bnx2x_memset_stats(struct bnx2x *bp)
{}

void bnx2x_stats_init(struct bnx2x *bp)
{}

void bnx2x_save_statistics(struct bnx2x *bp)
{}

void bnx2x_afex_collect_stats(struct bnx2x *bp, void *void_afex_stats,
			      u32 stats_type)
{}

int bnx2x_stats_safe_exec(struct bnx2x *bp,
			  void (func_to_exec)(void *cookie),
			  void *cookie)
{}