]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/commit
MFC r234163
authorthompsa <thompsa@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sat, 26 May 2012 07:41:05 +0000 (07:41 +0000)
committerthompsa <thompsa@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sat, 26 May 2012 07:41:05 +0000 (07:41 +0000)
commitc4fdc30ba05b408f8ae02c44131003fbca58ec65
tree2f6a38cf6c4d8bc60d71c7923a4faf068058b33a
parente5c2292aca48bd03c266ee5c5266538c8b750232
MFC r234163

 Set the proto to LAGG_PROTO_NONE before calling the detach routine so packets
 are discarded, this is an issue because lacp drops the lock which may allow
 network threads to access freed memory. Expand the lock coverage so the
 detach/attach happen atomically.

Submitted by: Andrew Boyer (earlier version)

git-svn-id: svn://svn.freebsd.org/base/stable/9@236050 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/net/if_lagg.c