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

Function mlx5_ifreq

dpdk/drivers/net/mlx5/linux/mlx5_ethdev_os.c:234–244  ·  view source on GitHub ↗

* Perform ifreq ioctl() on associated Ethernet device. * * @param[in] dev * Pointer to Ethernet device. * @param req * Request number to pass to ioctl(). * @param[out] ifr * Interface request structure output buffer. * * @return * 0 on success, a negative errno value otherwise and rte_errno is set. */

Source from the content-addressed store, hash-verified

232 * 0 on success, a negative errno value otherwise and rte_errno is set.
233 */
234static int
235mlx5_ifreq(const struct rte_eth_dev *dev, int req, struct ifreq *ifr)
236{
237 char ifname[sizeof(ifr->ifr_name)];
238 int ret;
239
240 ret = mlx5_get_ifname(dev, &ifname);
241 if (ret)
242 return -rte_errno;
243 return mlx5_ifreq_by_ifname(ifname, req, ifr);
244}
245
246/**
247 * Get device MTU.

Callers 14

mlx5_get_mtuFunction · 0.85
mlx5_set_mtuFunction · 0.85
mlx5_set_flagsFunction · 0.85
mlx5_dev_get_flow_ctrlFunction · 0.85
mlx5_dev_set_flow_ctrlFunction · 0.85
mlx5_get_module_infoFunction · 0.85
mlx5_get_module_eepromFunction · 0.85
mlx5_os_get_stats_nFunction · 0.85

Calls 2

mlx5_ifreq_by_ifnameFunction · 0.85
mlx5_get_ifnameFunction · 0.70

Tested by

no test coverage detected