[dpdk-dev] [PATCH 31/56] net/sfc: implement dummy callback to get device information
Andrew Rybchenko
arybchenko at solarflare.com
Mon Nov 21 16:00:45 CET 2016
Just a stub to be filled in when corresponding functionality is
implemented.
Reviewed-by: Andy Moreton <amoreton at solarflare.com>
Signed-off-by: Andrew Rybchenko <arybchenko at solarflare.com>
---
drivers/net/sfc/efx/sfc_ethdev.c | 11 +++++++++--
1 file changed, 9 insertions(+), 2 deletions(-)
diff --git a/drivers/net/sfc/efx/sfc_ethdev.c b/drivers/net/sfc/efx/sfc_ethdev.c
index ff20a13..0deff07 100644
--- a/drivers/net/sfc/efx/sfc_ethdev.c
+++ b/drivers/net/sfc/efx/sfc_ethdev.c
@@ -37,9 +37,16 @@
#include "sfc_kvargs.h"
+static void
+sfc_dev_infos_get(struct rte_eth_dev *dev, struct rte_eth_dev_info *dev_info)
+{
+ struct sfc_adapter *sa = dev->data->dev_private;
+
+ sfc_log_init(sa, "entry");
+}
+
static const struct eth_dev_ops sfc_eth_dev_ops = {
- /* Just dummy init to avoid build-time warning */
- .dev_configure = NULL,
+ .dev_infos_get = sfc_dev_infos_get,
};
static int
--
2.5.5
More information about the dev
mailing list