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

Function ixgbe_parse_devargs

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

Source from the content-addressed store, hash-verified

1044}
1045
1046static void
1047ixgbe_parse_devargs(struct ixgbe_adapter *adapter,
1048 struct rte_devargs *devargs)
1049{
1050 struct rte_kvargs *kvlist;
1051 uint16_t sdp3_no_tx_disable;
1052
1053 if (devargs == NULL)
1054 return;
1055
1056 kvlist = rte_kvargs_parse(devargs->args, ixgbe_valid_arguments);
1057 if (kvlist == NULL)
1058 return;
1059
1060 if (rte_kvargs_count(kvlist, IXGBE_DEVARG_FIBER_SDP3_NOT_TX_DISABLE) == 1 &&
1061 rte_kvargs_process(kvlist, IXGBE_DEVARG_FIBER_SDP3_NOT_TX_DISABLE,
1062 devarg_handle_int, &sdp3_no_tx_disable) == 0 &&
1063 sdp3_no_tx_disable == 1)
1064 adapter->sdp3_no_tx_disable = 1;
1065
1066 rte_kvargs_free(kvlist);
1067}
1068
1069/*
1070 * This function is based on code in ixgbe_attach() in base/ixgbe.c.

Callers 1

eth_ixgbe_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