src/dpdk/drivers/net/vmxnet3/vmxnet3_ethdev.c
static int
vmxnet3_dev_promiscuous_disable(struct rte_eth_dev *dev)
{
	struct vmxnet3_hw *hw = dev->data->dev_private;
	uint32_t *vf_table = hw->shared->devRead.rxFilterConf.vfTable;
	uint64_t rx_offloads = dev->data->dev_conf.rxmode.offloads;

	if (rx_offloads & DEV_RX_OFFLOAD_VLAN_FILTER)
		memcpy(vf_table, hw->shadow_vfta, VMXNET3_VFT_TABLE_SIZE);
	else
		memset(vf_table, 0xff, VMXNET3_VFT_TABLE_SIZE);
	vmxnet3_dev_set_rxmode(hw, VMXNET3_RXM_PROMISC, 0);
	VMXNET3_WRITE_BAR1_REG(hw, VMXNET3_REG_CMD,
			       VMXNET3_CMD_UPDATE_VLAN_FILTERS);

	return 0;
}
/* Promiscuous supported only if Vmxnet3_DriverShared is initialized in adapter */
Promiscuous supported only if Vmxnet3_DriverShared is initialized in adapter
Promiscuous supported only if Vmxnet3_DriverShared is initialized in adapter
static int
vmxnet3_dev_promiscuous_disable(struct rte_eth_dev *dev)
{
	struct vmxnet3_hw *hw = dev->data->dev_private;
	uint32_t *vf_table = hw->shared->devRead.rxFilterConf.vfTable;
	uint64_t rx_offloads = dev->data->dev_conf.rxmode.offloads;
	if (rx_offloads & DEV_RX_OFFLOAD_VLAN_FILTER)
		memcpy(vf_table, hw->shadow_vfta, VMXNET3_VFT_TABLE_SIZE);
	else
		memset(vf_table, 0xff, VMXNET3_VFT_TABLE_SIZE);
	vmxnet3_dev_set_rxmode(hw, VMXNET3_RXM_PROMISC, 0);
	VMXNET3_WRITE_BAR1_REG(hw, VMXNET3_REG_CMD,
			       VMXNET3_CMD_UPDATE_VLAN_FILTERS);
	return 0;
}
static int vmxnet3_dev_promiscuous_disable ( struct rte_eth_dev * dev ) { struct vmxnet3_hw * hw = dev -> data -> dev_private ; uint32_t * vf_table = hw -> shared -> devRead . rxFilterConf . vfTable ; uint64_t rx_offloads = dev -> data -> dev_conf . rxmode . offloads ; if ( rx_offloads & DEV_RX_OFFLOAD_VLAN_FILTER ) memcpy ( vf_table , hw -> shadow_vfta , VMXNET3_VFT_TABLE_SIZE ) ; else memset ( vf_table , 0xff , VMXNET3_VFT_TABLE_SIZE ) ; vmxnet3_dev_set_rxmode ( hw , VMXNET3_RXM_PROMISC , 0 ) ; VMXNET3_WRITE_BAR1_REG ( hw , VMXNET3_REG_CMD , VMXNET3_CMD_UPDATE_VLAN_FILTERS ) ; return 0 ; }
Promiscuous supported only if Vmxnet3_DriverShared is initialized in adapter
Promiscuous supported only if Vmxnet3_DriverShared is initialized in adapter