brintos

brintos / linux-shallow public Read only

0
0
Text · 1.5 KiB · bb3cedc Raw
50 lines · c
1/**********************************************************************2 * Author: Cavium, Inc.3 *4 * Contact: support@cavium.com5 *          Please include "LiquidIO" in the subject.6 *7 * Copyright (c) 2003-2017 Cavium, Inc.8 *9 * This file is free software; you can redistribute it and/or modify10 * it under the terms of the GNU General Public License, Version 2, as11 * published by the Free Software Foundation.12 *13 * This file is distributed in the hope that it will be useful, but14 * AS-IS and WITHOUT ANY WARRANTY; without even the implied warranty15 * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE, TITLE, or16 * NONINFRINGEMENT.  See the GNU General Public License for more17 * details.18 *19 * This file may also be available under a different license from Cavium.20 * Contact Cavium, Inc. for more information21 **********************************************************************/22 23/*! \file octeon_vf_main.h24 *  \brief Host Driver: This file defines vf_rep related macros and structures25 */26#ifndef __LIO_VF_REP_H__27#define __LIO_VF_REP_H__28#define LIO_VF_REP_REQ_TMO_MS 500029#define LIO_VF_REP_STATS_POLL_TIME_MS 20030 31struct lio_vf_rep_desc {32	struct net_device *parent_ndev;33	struct net_device *ndev;34	struct octeon_device *oct;35	struct lio_vf_rep_stats stats;36	struct cavium_wk stats_wk;37	atomic_t ifstate;38	int ifidx;39};40 41struct lio_vf_rep_sc_ctx {42	struct completion complete;43};44 45int lio_vf_rep_create(struct octeon_device *oct);46void lio_vf_rep_destroy(struct octeon_device *oct);47int lio_vf_rep_modinit(void);48void lio_vf_rep_modexit(void);49#endif50