src/dpdk/drivers/net/hinic/hinic_pmd_ethdev.c
static int hinic_dev_allmulticast_enable(struct rte_eth_dev *dev)
{
	int ret = HINIC_OK;
	struct hinic_nic_dev *nic_dev = HINIC_ETH_DEV_TO_PRIVATE_NIC_DEV(dev);

	ret = hinic_set_dev_allmulticast(nic_dev, true);
	if (ret) {
		PMD_DRV_LOG(ERR, "Enable allmulticast failed, error: %d", ret);
		return ret;
	}

	PMD_DRV_LOG(INFO, "Enable allmulticast succeed, nic_dev: %s, port_id: %d",
		nic_dev->proc_dev_name, dev->data->port_id);
	return 0;
}
/**
 * DPDK callback to enable allmulticast mode.
 *
 * @param dev
 *   Pointer to Ethernet device structure.
 *
 * @return
 *   0 on success,
 *   negative error value otherwise.
 */
DPDK callback to enable allmulticast mode.
@param dev
Pointer to Ethernet device structure.

@return
0 on success,
negative error value otherwise.
DPDK callback to enable allmulticast mode . @param dev Pointer to Ethernet device structure . @return 0 on success negative error value otherwise .
static int hinic_dev_allmulticast_enable(struct rte_eth_dev *dev)
{
	int ret = HINIC_OK;
	struct hinic_nic_dev *nic_dev = HINIC_ETH_DEV_TO_PRIVATE_NIC_DEV(dev);
	ret = hinic_set_dev_allmulticast(nic_dev, true);
	if (ret) {
		PMD_DRV_LOG(ERR, "Enable allmulticast failed, error: %d", ret);
		return ret;
	}
	PMD_DRV_LOG(INFO, "Enable allmulticast succeed, nic_dev: %s, port_id: %d",
		nic_dev->proc_dev_name, dev->data->port_id);
	return 0;
}
static int hinic_dev_allmulticast_enable ( struct rte_eth_dev * dev ) { int ret = HINIC_OK ; struct hinic_nic_dev * nic_dev = HINIC_ETH_DEV_TO_PRIVATE_NIC_DEV ( dev ) ; ret = hinic_set_dev_allmulticast ( nic_dev , true ) ; if ( ret ) { PMD_DRV_LOG ( ERR , " " , ret ) ; return ret ; } PMD_DRV_LOG ( INFO , " " , nic_dev -> proc_dev_name , dev -> data -> port_id ) ; return 0 ; }
DPDK callback to enable allmulticast mode.
DPDK callback to enable allmulticast mode .