MCPcopy Create free account
hub / github.com/F-Stack/f-stack / ixgbevf_parse_devargs

Function ixgbevf_parse_devargs

dpdk/drivers/net/ixgbe/ixgbe_ethdev.c:1562–1583  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1560}
1561
1562static void
1563ixgbevf_parse_devargs(struct ixgbe_adapter *adapter,
1564 struct rte_devargs *devargs)
1565{
1566 struct rte_kvargs *kvlist;
1567 uint16_t pflink_fullchk;
1568
1569 if (devargs == NULL)
1570 return;
1571
1572 kvlist = rte_kvargs_parse(devargs->args, ixgbevf_valid_arguments);
1573 if (kvlist == NULL)
1574 return;
1575
1576 if (rte_kvargs_count(kvlist, IXGBEVF_DEVARG_PFLINK_FULLCHK) == 1 &&
1577 rte_kvargs_process(kvlist, IXGBEVF_DEVARG_PFLINK_FULLCHK,
1578 devarg_handle_int, &pflink_fullchk) == 0 &&
1579 pflink_fullchk == 1)
1580 adapter->pflink_fullchk = 1;
1581
1582 rte_kvargs_free(kvlist);
1583}
1584
1585/*
1586 * Virtual Function device init

Callers 1

eth_ixgbevf_dev_initFunction · 0.85

Calls 4

rte_kvargs_parseFunction · 0.85
rte_kvargs_countFunction · 0.85
rte_kvargs_processFunction · 0.85
rte_kvargs_freeFunction · 0.85

Tested by

no test coverage detected