Skip to content
  • Pyun YongHyeon's avatar
    Do not allocate multicast array memory in multicast filter · dd20cce1
    Pyun YongHyeon authored
    configuration function. For failed memory allocations, em(4)/lem(4)
    called panic(9) which is not acceptable on production box.
    igb(4)/ixgb(4)/ix(4) allocated the required memory in stack which
    consumed 768 bytes of stack memory which looks too big.
    
    To address these issues, allocate multicast array memory in device
    attach time and make multicast configuration success under any
    conditions. This change also removes the excessive use of memory in
    stack.
    
    Reviewed by:	jfv
    dd20cce1