Thread (23 messages) 23 messages, 5 authors, 2017-08-08
STALE3276d
Revisions (2)
  1. v1 [diff vs current]
  2. v2 current

[PATCH v2 3/6] net/mlx4: advertize the detach capability

From: Gaetan Rivet <hidden>
Date: 2017-07-26 13:36:14
Subsystem: networking drivers, the rest · Maintainers: Andrew Lunn, "David S. Miller", Eric Dumazet, Jakub Kicinski, Paolo Abeni, Linus Torvalds

This PMD supports hotplug, it is able to be detached.

Signed-off-by: Gaetan Rivet <redacted>
---
 drivers/net/mlx4/mlx4.c | 1 +
 1 file changed, 1 insertion(+)
diff --git a/drivers/net/mlx4/mlx4.c b/drivers/net/mlx4/mlx4.c
index d41552b..8451f5b 100644
--- a/drivers/net/mlx4/mlx4.c
+++ b/drivers/net/mlx4/mlx4.c
@@ -6376,6 +6376,7 @@ mlx4_pci_probe(struct rte_pci_driver *pci_drv, struct rte_pci_device *pci_dev)
 
 		priv->dev = eth_dev;
 		eth_dev->dev_ops = &mlx4_dev_ops;
+		eth_dev->data->dev_flags |= RTE_ETH_DEV_DETACHABLE;
 
 		/* Bring Ethernet device up. */
 		DEBUG("forcing Ethernet interface up");
-- 
2.1.4
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help