[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20141209.144046.110046237866554513.davem@davemloft.net>
Date: Tue, 09 Dec 2014 14:40:46 -0500 (EST)
From: David Miller <davem@...emloft.net>
To: ogerlitz@...lanox.com
Cc: netdev@...r.kernel.org, matanb@...lanox.com, amirv@...lanox.com,
talal@...lanox.com, jackm@....mellanox.co.il
Subject: Re: [PATCH net-next 02/10] net/mlx4_core: Mask out host side
virtualization features for guests
From: Or Gerlitz <ogerlitz@...lanox.com>
Date: Thu, 4 Dec 2014 15:13:47 +0200
> @@ -1053,6 +1053,11 @@ int mlx4_QUERY_DEV_CAP_wrapper(struct mlx4_dev *dev, int slave,
> field &= ~0x80;
> MLX4_PUT(outbox->buf, field, QUERY_DEV_CAP_FLOW_STEERING_IPOIB_OFFSET);
>
> + /* turn off host side virt features (VST, FSM, etc) for guests */
> + MLX4_GET(field32, outbox->buf, QUERY_DEV_CAP_EXT_2_FLAGS_OFFSET);
> + field32 &= ~((1 << 26) | (1 << 21) | (1 << 20));
> + MLX4_PUT(outbox->buf, field32, QUERY_DEV_CAP_EXT_2_FLAGS_OFFSET);
> +
Please use mnenomics instead of magic constants for this, thanks.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists