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

Function rte_eth_allmulticast_enable

dpdk/lib/ethdev/rte_ethdev.c:2919–2942  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2917}
2918
2919int
2920rte_eth_allmulticast_enable(uint16_t port_id)
2921{
2922 struct rte_eth_dev *dev;
2923 int diag;
2924
2925 RTE_ETH_VALID_PORTID_OR_ERR_RET(port_id, -ENODEV);
2926 dev = &rte_eth_devices[port_id];
2927
2928 if (dev->data->all_multicast == 1)
2929 return 0;
2930
2931 if (*dev->dev_ops->allmulticast_enable == NULL)
2932 return -ENOTSUP;
2933 diag = (*dev->dev_ops->allmulticast_enable)(dev);
2934 dev->data->all_multicast = (diag == 0) ? 1 : 0;
2935
2936 diag = eth_err(port_id, diag);
2937
2938 rte_eth_trace_allmulticast_enable(port_id, dev->data->all_multicast,
2939 diag);
2940
2941 return diag;
2942}
2943
2944int
2945rte_eth_allmulticast_disable(uint16_t port_id)

Callers 8

fs_allmulticast_enableFunction · 0.85
fs_allmulticast_disableFunction · 0.85
fs_eth_dev_conf_applyFunction · 0.85
mainFunction · 0.85

Calls 1

eth_errFunction · 0.85

Tested by

no test coverage detected