Re: [dpdk-dev] [PATCH v2] ethdev: fix MAC address replay

2017-01-23 Thread Steve Shin (jonshin)
Dear Igor, Yes, you’re right. We need to handle a case (ex, SR-IOV) where multiple pools exist in the mac_pool_sel array. A new diff file will be uploaded with PATCH v3. Thanks & Regards, Steve From: Igor Ryzhov Date: Monday, January 23, 2017 at 12:50 AM To: Steve Shin Cc: "dev@dpdk.org" , Fe

Re: [dpdk-dev] [PATCH v2] ethdev: fix MAC address replay

2017-01-23 Thread Igor Ryzhov
Hello Steve, Thank you for all the fixes. But I think I noticed another one issue in MAC replay process. Pool number is extracted only once: if (RTE_ETH_DEV_SRIOV(dev).active) pool = RTE_ETH_DEV_SRIOV(dev).def_vmdq_idx; But when MAC address is added using rte_eth_dev_mac_addr_add several differ

[dpdk-dev] [PATCH v2] ethdev: fix MAC address replay

2017-01-20 Thread Steve Shin
This patch fixes a bug in replaying MAC address to the hardware in rte_eth_dev_config_restore() routine. Added default MAC replay as well. Fixes: 4bdefaade6d1 ("ethdev: VMDQ enhancements") --- v2: Added default MAC replay & Code optimization Signed-off-by: Steve Shin --- lib/librte_ether/rte_e