]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
e1000: fix multicast setting in VF
authorYong Wang <wang.yong19@zte.com.cn>
Tue, 21 Feb 2017 09:33:23 +0000 (04:33 -0500)
committerKevin Bowling <kbowling@FreeBSD.org>
Fri, 24 Sep 2021 01:40:08 +0000 (18:40 -0700)
commitdf90074502a0034fd54c84da48ce632d4fade6f1
tree970a4c4e5849900175f2977d092f5a07773c9aec
parent0f843e05137962827ec84216e6d3340b765c5497
e1000: fix multicast setting in VF

In function e1000_update_mc_addr_list_vf(), "msgbuf[0]" is used prior
to initialization at "msgbuf[0] |= E1000_VF_SET_MULTICAST_OVERFLOW".
And "msgbuf[0]" is overwritten at "msgbuf[0] = E1000_VF_SET_MULTICAST".

Fix it by moving the second line prior to the first one that mentioned
above.

Fixes: dffbaf7880a8 ("e1000: revert fix for multicast in VF")
Cc: stable@dpdk.org
Signed-off-by: Yong Wang <wang.yong19@zte.com.cn>
Acked-by: Wenzhuo Lu <wenzhuo.lu@intel.com>
Approved by: imp
Obtained from: DPDK (f58ca2f9ef6)
MFC after: 1 week

(cherry picked from commit ecf2a89a997ad4a14339b6a2f544e44b422620a0)
sys/dev/e1000/e1000_vf.c