| 819 | } |
| 820 | |
| 821 | static int |
| 822 | fs_allmulticast_disable(struct rte_eth_dev *dev) |
| 823 | { |
| 824 | struct sub_device *sdev; |
| 825 | uint8_t i; |
| 826 | int ret = 0; |
| 827 | |
| 828 | ret = fs_lock(dev, 0); |
| 829 | if (ret != 0) |
| 830 | return ret; |
| 831 | FOREACH_SUBDEV_STATE(sdev, i, dev, DEV_ACTIVE) { |
| 832 | ret = rte_eth_allmulticast_disable(PORT_ID(sdev)); |
| 833 | ret = fs_err(sdev, ret); |
| 834 | if (ret != 0) { |
| 835 | ERROR("All-multicast mode disable failed for subdevice %d", |
| 836 | PORT_ID(sdev)); |
| 837 | break; |
| 838 | } |
| 839 | } |
| 840 | if (ret != 0) { |
| 841 | /* Rollback in the case of failure */ |
| 842 | FOREACH_SUBDEV_STATE(sdev, i, dev, DEV_ACTIVE) { |
| 843 | ret = rte_eth_allmulticast_enable(PORT_ID(sdev)); |
| 844 | ret = fs_err(sdev, ret); |
| 845 | if (ret != 0) |
| 846 | ERROR("All-multicast mode enable during rollback failed for subdevice %d", |
| 847 | PORT_ID(sdev)); |
| 848 | } |
| 849 | } |
| 850 | fs_unlock(dev, 0); |
| 851 | |
| 852 | return ret; |
| 853 | } |
| 854 | |
| 855 | static int |
| 856 | fs_link_update(struct rte_eth_dev *dev, |
nothing calls this directly
no test coverage detected