blob: 1ab72e4820af18bde648c992f8ced320ca35fe1b [file] [log] [blame]
Michael Chanc0c050c2015-10-22 16:01:17 -04001/* Broadcom NetXtreme-C/E network driver.
2 *
Michael Chan11f15ed2016-04-05 14:08:55 -04003 * Copyright (c) 2014-2016 Broadcom Corporation
Michael Chanc0c050c2015-10-22 16:01:17 -04004 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation.
8 */
9
10#ifndef BNXT_SRIOV_H
11#define BNXT_SRIOV_H
12
13int bnxt_get_vf_config(struct net_device *, int, struct ifla_vf_info *);
14int bnxt_set_vf_mac(struct net_device *, int, u8 *);
Moshe Shemesh79aab092016-09-22 12:11:15 +030015int bnxt_set_vf_vlan(struct net_device *, int, u16, u8, __be16);
Michael Chanc0c050c2015-10-22 16:01:17 -040016int bnxt_set_vf_bw(struct net_device *, int, int, int);
17int bnxt_set_vf_link_state(struct net_device *, int, int);
18int bnxt_set_vf_spoofchk(struct net_device *, int, bool);
19int bnxt_sriov_configure(struct pci_dev *pdev, int num_vfs);
20void bnxt_sriov_disable(struct bnxt *);
21void bnxt_hwrm_exec_fwd_req(struct bnxt *);
Michael Chan379a80a2015-10-23 15:06:19 -040022void bnxt_update_vf_mac(struct bnxt *);
Michael Chan84c33dd2016-04-11 04:11:13 -040023int bnxt_approve_mac(struct bnxt *, u8 *);
Michael Chanc0c050c2015-10-22 16:01:17 -040024#endif