| 2942 | } |
| 2943 | |
| 2944 | int |
| 2945 | rte_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 | |
| 2971 | int |
| 2972 | rte_eth_allmulticast_get(uint16_t port_id) |
no test coverage detected