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

	PMD_DRV_LOG(INFO, "Disable promiscuous, nic_dev: %s, port_id: %d, promisc: %d",
		    nic_dev->proc_dev_name, dev->data->port_id,
		    dev->data->promiscuous);

	rc = hinic_set_dev_promiscuous(nic_dev, false);
	if (rc)
		PMD_DRV_LOG(ERR, "Disable promiscuous failed");

	return rc;
}
/**
 * DPDK callback to disable promiscuous mode.
 *
 * @param dev
 *   Pointer to Ethernet device structure.
 *
 * @return
 *   0 on success,
 *   negative error value otherwise.
 */
DPDK callback to disable promiscuous mode.
@param dev
Pointer to Ethernet device structure.

@return
0 on success,
negative error value otherwise.
DPDK callback to disable promiscuous mode . @param dev Pointer to Ethernet device structure . @return 0 on success negative error value otherwise .
static int hinic_dev_promiscuous_disable(struct rte_eth_dev *dev)
{
	int rc = HINIC_OK;
	struct hinic_nic_dev *nic_dev = HINIC_ETH_DEV_TO_PRIVATE_NIC_DEV(dev);
	PMD_DRV_LOG(INFO, "Disable promiscuous, nic_dev: %s, port_id: %d, promisc: %d",
		    nic_dev->proc_dev_name, dev->data->port_id,
		    dev->data->promiscuous);
	rc = hinic_set_dev_promiscuous(nic_dev, false);
	if (rc)
		PMD_DRV_LOG(ERR, "Disable promiscuous failed");
	return rc;
}
static int hinic_dev_promiscuous_disable ( struct rte_eth_dev * dev ) { int rc = HINIC_OK ; struct hinic_nic_dev * nic_dev = HINIC_ETH_DEV_TO_PRIVATE_NIC_DEV ( dev ) ; PMD_DRV_LOG ( INFO , " " , nic_dev -> proc_dev_name , dev -> data -> port_id , dev -> data -> promiscuous ) ; rc = hinic_set_dev_promiscuous ( nic_dev , false ) ; if ( rc ) PMD_DRV_LOG ( ERR , " " ) ; return rc ; }
DPDK callback to disable promiscuous mode.
DPDK callback to disable promiscuous mode .