Lines Matching refs:ivt

2492 static int handle_infiniband_guid(struct net_device *dev, struct ifla_vf_guid *ivt,  in handle_infiniband_guid()  argument
2497 return ops->ndo_set_vf_guid(dev, ivt->vf, ivt->guid, guid_type); in handle_infiniband_guid()
2500 static int handle_vf_guid(struct net_device *dev, struct ifla_vf_guid *ivt, int guid_type) in handle_vf_guid() argument
2505 return handle_infiniband_guid(dev, ivt, guid_type); in handle_vf_guid()
2572 struct ifla_vf_tx_rate *ivt = nla_data(tb[IFLA_VF_TX_RATE]); in do_setvfinfo() local
2575 if (ivt->vf >= INT_MAX) in do_setvfinfo()
2579 err = ops->ndo_get_vf_config(dev, ivt->vf, &ivf); in do_setvfinfo()
2583 err = rtnl_set_vf_rate(dev, ivt->vf, in do_setvfinfo()
2584 ivf.min_tx_rate, ivt->rate); in do_setvfinfo()
2590 struct ifla_vf_rate *ivt = nla_data(tb[IFLA_VF_RATE]); in do_setvfinfo() local
2592 if (ivt->vf >= INT_MAX) in do_setvfinfo()
2595 err = rtnl_set_vf_rate(dev, ivt->vf, in do_setvfinfo()
2596 ivt->min_tx_rate, ivt->max_tx_rate); in do_setvfinfo()
2642 struct ifla_vf_trust *ivt = nla_data(tb[IFLA_VF_TRUST]); in do_setvfinfo() local
2644 if (ivt->vf >= INT_MAX) in do_setvfinfo()
2648 err = ops->ndo_set_vf_trust(dev, ivt->vf, ivt->setting); in do_setvfinfo()
2654 struct ifla_vf_guid *ivt = nla_data(tb[IFLA_VF_IB_NODE_GUID]); in do_setvfinfo() local
2656 if (ivt->vf >= INT_MAX) in do_setvfinfo()
2660 return handle_vf_guid(dev, ivt, IFLA_VF_IB_NODE_GUID); in do_setvfinfo()
2664 struct ifla_vf_guid *ivt = nla_data(tb[IFLA_VF_IB_PORT_GUID]); in do_setvfinfo() local
2666 if (ivt->vf >= INT_MAX) in do_setvfinfo()
2671 return handle_vf_guid(dev, ivt, IFLA_VF_IB_PORT_GUID); in do_setvfinfo()