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

Function rte_eth_allmulticast_disable

dpdk/lib/ethdev/rte_ethdev.c:2944–2969  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2942}
2943
2944int
2945rte_eth_allmulticast_disable(uint16_t port_id)
2946{
2947 struct rte_eth_dev *dev;
2948 int diag;
2949
2950 RTE_ETH_VALID_PORTID_OR_ERR_RET(port_id, -ENODEV);
2951 dev = &rte_eth_devices[port_id];
2952
2953 if (dev->data->all_multicast == 0)
2954 return 0;
2955
2956 if (*dev->dev_ops->allmulticast_disable == NULL)
2957 return -ENOTSUP;
2958
2959 diag = (*dev->dev_ops->allmulticast_disable)(dev);
2960 if (diag == 0)
2961 dev->data->all_multicast = 0;
2962
2963 diag = eth_err(port_id, diag);
2964
2965 rte_eth_trace_allmulticast_disable(port_id, dev->data->all_multicast,
2966 diag);
2967
2968 return diag;
2969}
2970
2971int
2972rte_eth_allmulticast_get(uint16_t port_id)

Calls 1

eth_errFunction · 0.85

Tested by

no test coverage detected