net/iavf: fix adding multicast MAC address
authorGuinan Sun <guinanx.sun@intel.com>
Thu, 15 Oct 2020 08:43:05 +0000 (08:43 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 3 Nov 2020 22:24:13 +0000 (23:24 +0100)
commitb0cd767a75b7b8f54f33f8b642a715ffdbe73514
tree94df2667d61f8ed61ece5532bf26fe3deeaec14c
parentd5a7d04c795ace8e9d22182a3318f981b4f7833f
net/iavf: fix adding multicast MAC address

When the multicast address list is added, it will flush
previous addresses first, and then add new ones.
If the number of multicast address in the list exceeds
the upper limit, it will cause failure, then need to
roll back previous addresses. This patch fixes the issue.

Fixes: 05e4c3aff35f ("net/iavf: support multicast configuration")
Cc: stable@dpdk.org
Signed-off-by: Guinan Sun <guinanx.sun@intel.com>
Tested-by: Yuan Peng <yuan.peng@intel.com>
Acked-by: Beilei Xing <beilei.xing@intel.com>
drivers/net/iavf/iavf_ethdev.c
drivers/net/iavf/iavf_vchnl.c