/* ib_modify_port() changes a port's attributes as specified by the @port_modify_mask and @port_modify structure.  */
int ib_modify_port(struct ib_device *device, u8 port_num, int port_modify_mask, struct ib_port_modify *port_modify)
/* ib_modify_port() changes a port's attributes as specified by the @port_modify_mask and @port_modify structure.  */
int ib_modify_port(struct ib_device *device, u8 port_num, int port_modify_mask, struct ib_port_modify *port_modify)
{
	if (port_num < start_port(device) || port_num > end_port(device))
		return -EINVAL;
	return device->modify_port(device, port_num, port_modify_mask,
				   port_modify);
}