2022-07-20 19:29:28 +01:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
|
|
|
/****************************************************************************
|
|
|
|
|
* Driver for Solarflare network controllers and boards
|
|
|
|
|
* Copyright 2019 Solarflare Communications Inc.
|
|
|
|
|
* Copyright 2020-2022 Xilinx Inc.
|
|
|
|
|
*
|
|
|
|
|
* This program is free software; you can redistribute it and/or modify it
|
|
|
|
|
* under the terms of the GNU General Public License version 2 as published
|
|
|
|
|
* by the Free Software Foundation, incorporated herein by reference.
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
/* Handling for ef100 representor netdevs */
|
|
|
|
|
#ifndef EF100_REP_H
|
|
|
|
|
#define EF100_REP_H
|
|
|
|
|
|
|
|
|
|
#include "net_driver.h"
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* struct efx_rep - Private data for an Efx representor
|
|
|
|
|
*
|
|
|
|
|
* @parent: the efx PF which manages this representor
|
|
|
|
|
* @net_dev: representor netdevice
|
|
|
|
|
* @msg_enable: log message enable flags
|
2022-07-20 19:29:34 +01:00
|
|
|
* @mport: m-port ID of corresponding VF
|
2022-07-20 19:29:33 +01:00
|
|
|
* @idx: VF index
|
2022-07-20 19:29:28 +01:00
|
|
|
* @list: entry on efx->vf_reps
|
|
|
|
|
*/
|
|
|
|
|
struct efx_rep {
|
|
|
|
|
struct efx_nic *parent;
|
|
|
|
|
struct net_device *net_dev;
|
|
|
|
|
u32 msg_enable;
|
2022-07-20 19:29:34 +01:00
|
|
|
u32 mport;
|
2022-07-20 19:29:33 +01:00
|
|
|
unsigned int idx;
|
2022-07-20 19:29:28 +01:00
|
|
|
struct list_head list;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
int efx_ef100_vfrep_create(struct efx_nic *efx, unsigned int i);
|
|
|
|
|
void efx_ef100_vfrep_destroy(struct efx_nic *efx, struct efx_rep *efv);
|
|
|
|
|
void efx_ef100_fini_vfreps(struct efx_nic *efx);
|
|
|
|
|
|
|
|
|
|
#endif /* EF100_REP_H */
|