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

Function mlx5_set_mtu

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

* Set device MTU. * * @param dev * Pointer to Ethernet device. * @param mtu * MTU value to set. * * @return * 0 on success, a negative errno value otherwise and rte_errno is set. */

Source from the content-addressed store, hash-verified

278 * 0 on success, a negative errno value otherwise and rte_errno is set.
279 */
280int
281mlx5_set_mtu(struct rte_eth_dev *dev, uint16_t mtu)
282{
283 struct ifreq request = { .ifr_mtu = mtu, };
284
285 return mlx5_ifreq(dev, SIOCSIFMTU, &request);
286}
287
288/**
289 * Set device flags.

Callers 1

mlx5_dev_set_mtuFunction · 0.50

Calls 1

mlx5_ifreqFunction · 0.85

Tested by

no test coverage detected