1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /* Copyright 2011 Cisco Systems, Inc. All rights reserved. */
7 #define ENIC_PP_BY_INDEX(enic, vf, pp, err) \
9 if (enic_is_valid_pp_vf(enic, vf, err)) \
10 pp = (vf == PORT_SELF_VF) ? enic->pp : enic->pp + vf; \
15 int enic_process_set_pp_request(struct enic *enic, int vf,
16 struct enic_port_profile *prev_pp, int *restore_pp);
17 int enic_process_get_pp_request(struct enic *enic, int vf,
18 int request, u16 *response);
19 int enic_is_valid_pp_vf(struct enic *enic, int vf, int *err);
21 #endif /* _ENIC_PP_H_ */