{"push_id":1168694000,"size":2,"distinct_size":1,"ref":"refs/heads/shigeru_work","head":"8fd66992400e27e5b442bb537dbce3e953aefa11","before":"c119ff94165e2380393e5df729fd07848f2275af","commits":[{"sha":"7a1c0b1ad10703084b50a5b307bbd60603471e1c","author":{"name":"bz","email":"0882102703f32cc323693fb9c179adcb3c0e971b@FreeBSD.org"},"message":"Get closer to a VIMAGE network stack teardown from top to bottom rather\nthan removing the network interfaces first. This change is rather larger\nand convoluted as the ordering requirements cannot be separated.\n\nMove the pfil(9) framework to SI_SUB_PROTO_PFIL, move Firewalls and\nrelated modules to their own SI_SUB_PROTO_FIREWALL.\nMove initialization of \"physical\" interfaces to SI_SUB_DRIVERS,\nmove virtual (cloned) interfaces to SI_SUB_PSEUDO.\nMove Multicast to SI_SUB_PROTO_MC.\n\nRe-work parts of multicast initialisation and teardown, not taking the\nhuge amount of memory into account if used as a module yet.\n\nFor interface teardown we try to do as many of them as we can on\nSI_SUB_INIT_IF, but for some this makes no sense, e.g., when tunnelling\nover a higher layer protocol such as IP. In that case the interface\nhas to go along (or before) the higher layer protocol is shutdown.\n\nKernel hhooks need to go last on teardown as they may be used at various\nhigher layers and we cannot remove them before we cleaned up the higher\nlayers.\n\nFor interface teardown there are multiple paths:\n(a) a cloned interface is destroyed (inside a VIMAGE or in the base system),\n(b) any interface is moved from a virtual network stack to a different\nnetwork stack (\"vmove\"), or (c) a virtual network stack is being shut down.\nAll code paths go through if_detach_internal() where we, depending on the\nvmove flag or the vnet state, make a decision on how much to shut down;\nin case we are destroying a VNET the individual protocol layers will\ncleanup their own parts thus we cannot do so again for each interface as\nwe end up with, e.g., double-frees, destroying locks twice or acquiring\nalready destroyed locks.\nWhen calling into protocol cleanups we equally have to tell them\nwhether they need to detach upper layer protocols (\"ulp\") or not\n(e.g., in6_ifdetach()).\n\nProvide or enahnce helper functions to do proper cleanup at a protocol\nrather than at an interface level.\n\nApproved by:\t\tre (hrs)\nObtained from:\t\tprojects/vnet\nReviewed by:\t\tgnn, jhb\nSponsored by:\t\tThe FreeBSD Foundation\nMFC after:\t\t2 weeks\nDifferential Revision:\thttps://reviews.freebsd.org/D6747","distinct":false,"url":"https://api.github.com/repos/bsd-hacker/freebsd/commits/7a1c0b1ad10703084b50a5b307bbd60603471e1c"},{"sha":"8fd66992400e27e5b442bb537dbce3e953aefa11","author":{"name":"Jenkins CI","email":"61eb39d4445155efb6068840385577c11776cd20@jenkins-00.os-hackers.jp"},"message":"Merge branch 'master' into shigeru_work","distinct":true,"url":"https://api.github.com/repos/bsd-hacker/freebsd/commits/8fd66992400e27e5b442bb537dbce3e953aefa11"}]}
{"actor":{"display_login":"bsd-hacker"}}