0001
0002
0003
0004 #ifndef _ENIC_PP_H_
0005 #define _ENIC_PP_H_
0006
0007 #define ENIC_PP_BY_INDEX(enic, vf, pp, err) \
0008 do { \
0009 if (enic_is_valid_pp_vf(enic, vf, err)) \
0010 pp = (vf == PORT_SELF_VF) ? enic->pp : enic->pp + vf; \
0011 else \
0012 pp = NULL; \
0013 } while (0)
0014
0015 int enic_process_set_pp_request(struct enic *enic, int vf,
0016 struct enic_port_profile *prev_pp, int *restore_pp);
0017 int enic_process_get_pp_request(struct enic *enic, int vf,
0018 int request, u16 *response);
0019 int enic_is_valid_pp_vf(struct enic *enic, int vf, int *err);
0020
0021 #endif