1 /* SPDX-License-Identifier: GPL-2.0-only */ 2 /**************************************************************************** 3 * Driver for Solarflare network controllers and boards 4 * Copyright 2019 Solarflare Communications Inc. 5 * Copyright 2020-2022 Xilinx Inc. 6 * 7 * This program is free software; you can redistribute it and/or modify it 8 * under the terms of the GNU General Public License version 2 as published 9 * by the Free Software Foundation, incorporated herein by reference. 10 */ 11 12 /* Handling for ef100 representor netdevs */ 13 #ifndef EF100_REP_H 14 #define EF100_REP_H 15 16 #include "net_driver.h" 17 18 /** 19 * struct efx_rep - Private data for an Efx representor 20 * 21 * @parent: the efx PF which manages this representor 22 * @net_dev: representor netdevice 23 * @msg_enable: log message enable flags 24 * @idx: VF index 25 * @list: entry on efx->vf_reps 26 */ 27 struct efx_rep { 28 struct efx_nic *parent; 29 struct net_device *net_dev; 30 u32 msg_enable; 31 unsigned int idx; 32 struct list_head list; 33 }; 34 35 int efx_ef100_vfrep_create(struct efx_nic *efx, unsigned int i); 36 void efx_ef100_vfrep_destroy(struct efx_nic *efx, struct efx_rep *efv); 37 void efx_ef100_fini_vfreps(struct efx_nic *efx); 38 39 #endif /* EF100_REP_H */ 40