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

Function fs_allmulticast_disable

dpdk/drivers/net/failsafe/failsafe_ops.c:821–853  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

819}
820
821static int
822fs_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
855static int
856fs_link_update(struct rte_eth_dev *dev,

Callers

nothing calls this directly

Calls 6

fs_lockFunction · 0.85
FOREACH_SUBDEV_STATEFunction · 0.85
fs_errFunction · 0.85
fs_unlockFunction · 0.85

Tested by

no test coverage detected