]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx4_core: Add HW enforcement to VF link state
authorRony Efraim <ronye@mellanox.com>
Thu, 27 Jun 2013 16:05:22 +0000 (19:05 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 1 Jul 2013 20:10:57 +0000 (13:10 -0700)
commitd9e32dd8d4fbe6fc662824f270206d588b060f9c
treec314d372854be62218ccaccfc93ebcd9cae29efb
parent3424f5c081722b81499e8f9b2a07182a4184e164
net/mlx4_core: Add HW enforcement to VF link state

When the firmware supports the UPDATE_QP command, if the VF link is disabled,
block all QPs opened by the VF, by programming the UPDATE_QP command to drop
all RX & TX traffic to/from these QPs. Operates only in VST mode.

Signed-off-by: Rony Efraim <ronye@mellanox.com>
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/cmd.c
drivers/net/ethernet/mellanox/mlx4/mlx4.h
drivers/net/ethernet/mellanox/mlx4/resource_tracker.c
include/linux/mlx4/qp.h