DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] vmxnet3 ethernet driver
@ 2017-09-14 11:32 Mukunda Naresh
  2017-09-18  8:25 ` Ferruh Yigit
  0 siblings, 1 reply; 2+ messages in thread
From: Mukunda Naresh @ 2017-09-14 11:32 UTC (permalink / raw)
  To: dev

Hi All,

Need your inputs on below functions.

Vmxnet3 driver in dpdk does not have the whitelist filter for unicast mac
addresses. So addition/removal of MAC addresses using
rte_eth_dev_mac_addr_add and rte_eth_dev_mac_addr_remove will always fail
in case of vmxnet3. These functions will always return -95 (or -ENOTSUP).



2.2.0-r0/dpdk-2.2.0/drivers/net/vmxnet3/vmxnet3_ethdev.c

static const struct eth_dev_ops vmxnet3_eth_dev_ops = {

    .dev_configure        = vmxnet3_dev_configure,

    .dev_start            = vmxnet3_dev_start,

    .dev_stop             = vmxnet3_dev_stop,

    .dev_close            = vmxnet3_dev_close,

    .promiscuous_enable   = vmxnet3_dev_promiscuous_enable,

    .promiscuous_disable  = vmxnet3_dev_promiscuous_disable,

    .allmulticast_enable  = vmxnet3_dev_allmulticast_enable,

    .allmulticast_disable = vmxnet3_dev_allmulticast_disable,

    .link_update          = vmxnet3_dev_link_update,

    .stats_get            = vmxnet3_dev_stats_get,

    .dev_infos_get        = vmxnet3_dev_info_get,

    .vlan_filter_set      = vmxnet3_dev_vlan_filter_set,

    .vlan_offload_set     = vmxnet3_dev_vlan_offload_set,

    .rx_queue_setup       = vmxnet3_dev_rx_queue_setup,

    .rx_queue_release     = vmxnet3_dev_rx_queue_release,

    .tx_queue_setup       = vmxnet3_dev_tx_queue_setup,

    .tx_queue_release     = vmxnet3_dev_tx_queue_release,

};

2.2.0-r0/dpdk-2.2.0/drivers/net/virtio/virtio_ethdev.c

static const struct eth_dev_ops virtio_eth_dev_ops = {

    .dev_configure           = virtio_dev_configure,

    .dev_start               = virtio_dev_start,

    .dev_stop                = virtio_dev_stop,

    .dev_close               = virtio_dev_close,

    .promiscuous_enable      = virtio_dev_promiscuous_enable,

    .promiscuous_disable     = virtio_dev_promiscuous_disable,

    .allmulticast_enable     = virtio_dev_allmulticast_enable,

    .allmulticast_disable    = virtio_dev_allmulticast_disable,


    .dev_infos_get           = virtio_dev_info_get,

    .stats_get               = virtio_dev_stats_get,

    .xstats_get              = virtio_dev_xstats_get,

    .stats_reset             = virtio_dev_stats_reset,

    .xstats_reset            = virtio_dev_stats_reset,

    .link_update             = virtio_dev_link_update,

    .rx_queue_setup          = virtio_dev_rx_queue_setup,

    .rx_queue_release        = virtio_dev_rx_queue_release,

    .tx_queue_setup          = virtio_dev_tx_queue_setup,

    .tx_queue_release        = virtio_dev_tx_queue_release,

    /* collect stats per queue */

    .queue_stats_mapping_set = virtio_dev_queue_stats_mapping_set,

    .vlan_filter_set         = virtio_vlan_filter_set,

    .mac_addr_add            = virtio_mac_addr_add,

    .mac_addr_remove         = virtio_mac_addr_remove,

    .mac_addr_set            = virtio_mac_addr_set,

};


Regards
Mukunda Naresh

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [dpdk-dev] vmxnet3 ethernet driver
  2017-09-14 11:32 [dpdk-dev] vmxnet3 ethernet driver Mukunda Naresh
@ 2017-09-18  8:25 ` Ferruh Yigit
  0 siblings, 0 replies; 2+ messages in thread
From: Ferruh Yigit @ 2017-09-18  8:25 UTC (permalink / raw)
  To: Mukunda Naresh, dev; +Cc: Shrikrishna Khare

On 9/14/2017 12:32 PM, Mukunda Naresh wrote:
> Hi All,
> 
> Need your inputs on below functions.
> 
> Vmxnet3 driver in dpdk does not have the whitelist filter for unicast mac
> addresses. So addition/removal of MAC addresses using
> rte_eth_dev_mac_addr_add and rte_eth_dev_mac_addr_remove will always fail
> in case of vmxnet3. These functions will always return -95 (or -ENOTSUP).

Hi Mukunda,

mac_addr_set seems added in v16.04 [1] to vmxnet3,
but mac_addr_add & mac_addr_remove are still missing, a patch is welcome
to add those features.


[1]
Commit: 139f39a97859 ("vmxnet3: support setting MAC address")

<...>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-09-18  8:25 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-09-14 11:32 [dpdk-dev] vmxnet3 ethernet driver Mukunda Naresh
2017-09-18  8:25 ` Ferruh Yigit

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).