Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F102655200
D22243.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
943 B
Referenced Files
None
Subscribers
None
D22243.diff
View Options
Index: head/sys/net/if_vlan.c
===================================================================
--- head/sys/net/if_vlan.c
+++ head/sys/net/if_vlan.c
@@ -1459,11 +1459,19 @@
* Set up our interface address to reflect the underlying
* physical interface's.
*/
- bcopy(IF_LLADDR(p), IF_LLADDR(ifp), p->if_addrlen);
+ TASK_INIT(&ifv->lladdr_task, 0, vlan_lladdr_fn, ifv);
((struct sockaddr_dl *)ifp->if_addr->ifa_addr)->sdl_alen =
p->if_addrlen;
- TASK_INIT(&ifv->lladdr_task, 0, vlan_lladdr_fn, ifv);
+ /*
+ * Do not schedule link address update if it was the same
+ * as previous parent's. This helps avoid updating for each
+ * associated llentry.
+ */
+ if (memcmp(IF_LLADDR(p), IF_LLADDR(ifp), p->if_addrlen) != 0) {
+ bcopy(IF_LLADDR(p), IF_LLADDR(ifp), p->if_addrlen);
+ taskqueue_enqueue(taskqueue_thread, &ifv->lladdr_task);
+ }
/* We are ready for operation now. */
ifp->if_drv_flags |= IFF_DRV_RUNNING;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Nov 16, 10:15 AM (21 h, 37 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14657062
Default Alt Text
D22243.diff (943 B)
Attached To
Mode
D22243: Schedule link address update when vlan's parent interface is changed
Attached
Detach File
Event Timeline
Log In to Comment